
function WriteGoogleAdd(){
	var ScreenW;
	ScreenW = GetScreenSize();
	if (ScreenW > 1024){
		google_ad_width = 160;
		google_ad_format = "160x600_as";
		document.write('<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>');
	}else if (ScreenW > 800){
		google_ad_width = 120;
		google_ad_format = "120x600_as";
		document.write('<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>');
	}
}

function GetScreenSize(){
	if (parseInt(navigator.appVersion)>3) {
	 screenW = screen.width;
	 screenH = screen.height;
	}
	else if (navigator.appName == "Netscape" 
		&& parseInt(navigator.appVersion)==3
		&& navigator.javaEnabled()
	   ) 
	{
	 var jToolkit = java.awt.Toolkit.getDefaultToolkit();
	 var jScreenSize = jToolkit.getScreenSize();
	 screenW = jScreenSize.width;
	 screenH = jScreenSize.height;
	}
	return screenW;
}

function LuisterRadio(){
	window.open('http://www.games-server.nl/webradio.php', 'webradio', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=464,height=300,left=270,top=230'); 
	document.luisterradio.submit();
}

function mOvr(src) {
	  src.className="ContentRowHover";
	  window.status='  ';
  }
  function mOut(src,clrIn) {
      src.className="ContentRow";
  }
  
 function GoToURL(strURL){
 	document.location = strURL;
 }
 

var bookmarkurl="http://www.games-server.nl/"
var bookmarktitel="Games-server.nl - Online games spelen"

function favorieten(){
	if (document.all)
		window.external.AddFavorite(bookmarkurl,bookmarktitel)
	}
 
function OpenInPopup(strURL){ 
	window.open (strURL,'supportpop','toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=640,height=480,top=250,left=250');
} 
function OpenZigiz(strURL){ 
	window.open (strURL,'supportpop','toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=800,height=600,top=250,left=250');
} 
function PopUpScherm(URL, Titel, Width, Height){
	if (Width=="")
	{
		Width = "640";
	}
	if (Height=="")
	{
		Height = "480";
	}
		
	window.open (URL,Titel,'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width='+Width+',height='+Height+',top=250,left=250');
}

function mobilemoneysale(ordernumber,pos)
{
 mmrefname = 'gamesserver';
 mmlanguage = 'xx';
 mmpskin = 'GSGoedkoop';

 window.open('http://www.mobilemoney.com/salespopup.asp?pos='+escape(pos)+'&ordernumber='+escape(ordernumber)+'&refname='+escape(mmrefname)+'&language='+escape(mmlanguage)+'&popupskin='+escape(mmpskin),'popup','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=468,height=550,left='+eval((screen.availWidth/2)-234)+',top=50');

}

function listenwindow(listenurl)
{
 window.open(listenurl, 'Listen', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=150,height=150,left='+eval((screen.availWidth/2)-75)+',top=50');
}

function getparam(lookfor)
{
 var st  = new String(document.location);
 var start  = st.indexOf (lookfor);
 if (start != -1) {
   st = st.substring (start);
   start = st.indexOf ('=');
   st = st.substring (start+1);
   eind = st.indexOf ('&');
   if (eind == -1) {
	eind = st.length;
   }
   st = st.replace (/\+/g, ' ');
   var st = unescape (st.substring (0, eind));
 } else {
   st = ""
 }
 return st;
}
function helpform()
{
 mmrefname = 'gamesserver';
 mmlanguage = 'xx';
 mmpskin = 'GSGoedkoop';
 window.open('http://www.mobilemoney.com/salespopup.asp?refname='+mmrefname+'&language='+mmlanguage+'&action=help&popupskin='+mmpskin,'helppopup','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=468,height=550,left='+eval((screen.availWidth/2)-234)+',top=50');
}
