	
//Fenster mit Flashgames öffnen und Params durchreichen
	function openGameWindow(pGSID,pSite)
	{
		// lPath=window.location.pathname.substring(0,window.location.pathname.length-8);
		lPath='../../';
		lUrl = lPath+"games/startgame.php?GSID=" + pGSID+'&site='+pSite+'&Fremd='+pSite;
		if (document.all) stats = 'width=750,height=510,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no';
		else stats = 'width=754,height=514,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no';
		GameWindow = window.open(lUrl,'GameWindow',stats);
		GameWindow.moveTo(100,100);	
		GameWindow.focus();	
	}
	
//Fenster mit Highscoreliste öffnen und Params durchreichen
	function openHSWindow(pGSID)
	{
		// lPath=window.location.pathname.substring(0,window.location.pathname.length-8);
		lPath='';
		lUrl = lPath+"hs.php?GSID=" + pGSID;
		if (document.all) stats = 'width=460,height=500,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no';
		else stats = 'width=464,height=514,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no';
		HSWindow = window.open(lUrl,'HSWindow',stats);
		HSWindow.moveTo(100,100);	
		HSWindow.focus();	
	}

	//Fenster mit MyZone öffnen und Params durchreichen
	function openMyZone(pSite)
	{
		lUrl = "myzone.php";
		if (document.all) stats = 'width=650,height=510,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no';
		else stats = 'width=650,height=484,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no';
		MyZone = window.open(lUrl,'MyZone',stats);
		MyZone.moveTo(100,100);	
	}

