function fullpage(id,cGameName,oriwidth,oriheight,notes)
{
   
   nAvailW = parseInt(oriwidth)+(navigator.appName == 'Microsoft Internet Explorer' ? 254 : 240);
   nAvailH = parseInt(oriheight)+(navigator.appName == 'Microsoft Internet Explorer' ? 32 : 20);;
   notes=notes.replace('&lt;br /&gt;','~enter~');
   cVars = '?id='+id+'&title='+cGameName+'&width='+oriwidth+'&height='+oriheight+'&notes='+notes;
   //alert(cVars);
   window.open('http://www.topshootinggames.com/u/game_playfullpage.php'+cVars,'_blank','menubar=0,status=0,titlebar=1,toolbar=0,scrollbars=0,resizable=1,width='+nAvailW.toString()+',height='+nAvailH.toString()+',top=0, left=0');
}


var newwindow;
function poptastic(url,oriwidth,oriheight)
{

	var lyr1 = document.getElementById('showSWF');
	var lyr2 = document.getElementById('onFull');

    nAvailW = parseInt(oriwidth)+(navigator.appName == 'Microsoft Internet Explorer' ? 380 : 380);
    nAvailH = parseInt(oriheight)+(navigator.appName == 'Microsoft Internet Explorer' ? 80 : 70);

	newwindow=window.open(url,'name','height='+nAvailH.toString()+',width='+nAvailW.toString()+',menubar=0,status=0,titlebar=1,toolbar=0,scrollbars=0,resizable=1,top=0,left=0');
	if (window.focus) {newwindow.focus()}
	
	lyr1.style.display="none";
	lyr2.style.display="block";
}
