 IE = (navigator.appName=="Microsoft Internet Explorer" ? 1 : 0);
 NS = (navigator.appName=="Netscape" ? 1 : 0);
 bVer = parseInt(navigator.appVersion);
 
 var newWin=null;
 var browserName = navigator.appName;
 var browserVersion = parseInt (navigator.appVersion);
 var bMac = (window.navigator.userAgent.indexOf("Mac")>=0);
 var bNetscape4Mac = (browserName == "Netscape" && browserVersion == 4 && bMac);
 var bIE5 = (navigator.appVersion.indexOf ("MSIE 5.0") > 0)
 var bIE5Mac = (browserName == "Microsoft Internet Explorer" && bIE5 && bMac);
 
 function penaltyshootoutpop(htmlURL) {
          var htmlURLPath = '' + htmlURL + '.html';
          _params = "width=458,height=327,resizable=no,status=no,scrollbars=no";
 
         if (bVer >= 4) {
                  _left = ( (screen.width-458) >>1 );
                  _top = ( (screen.height-327) >>1 );
         } else {
                  _top=150, _left=230;
         }
         if (IE) _params += ",top=" + _top + ",left=" + _left;
         else if (NS) _params += ",screenX=" + _left + ",screenY=" + _top;
 
                 
         	if (!bNetscape4Mac && !bIE5Mac)
	 	{
	 		if (newWin && !newWin.closed)
	 			newWin.close();
	 	
	 	}
	 
	 newWin = window.open(htmlURLPath,"penaltyshootoutpop", _params);
	 
	 	if (!bIE5Mac)
	 		newWin.focus();
}
 
 function gardenslidepop(htmlURL) {
          var htmlURLPath = '' + htmlURL + '.html';
          _params = "width=458,height=327,resizable=no,status=no,scrollbars=no";
 
         if (bVer >= 4) {
                  _left = ( (screen.width-458) >>1 );
                  _top = ( (screen.height-327) >>1 );
         } else {
                  _top=150, _left=230;
         }
         if (IE) _params += ",top=" + _top + ",left=" + _left;
         else if (NS) _params += ",screenX=" + _left + ",screenY=" + _top;
 
                 
         	if (!bNetscape4Mac && !bIE5Mac)
	 	{
	 		if (newWin && !newWin.closed)
	 			newWin.close();
	 	
	 	}
	 
	 newWin = window.open(htmlURLPath,"gardenslidepop", _params);
	 
	 	if (!bIE5Mac)
	 		newWin.focus();
}

 function bungeepop(htmlURL) {
          var htmlURLPath = '' + htmlURL + '.html';
          _params = "width=458,height=327,resizable=no,status=no,scrollbars=no";
 
         if (bVer >= 4) {
                  _left = ( (screen.width-458) >>1 );
                  _top = ( (screen.height-327) >>1 );
         } else {
                  _top=150, _left=230;
         }
         if (IE) _params += ",top=" + _top + ",left=" + _left;
         else if (NS) _params += ",screenX=" + _left + ",screenY=" + _top;
 
                 
         	if (!bNetscape4Mac && !bIE5Mac)
	 	{
	 		if (newWin && !newWin.closed)
	 			newWin.close();
	 	
	 	}
	 
	 newWin = window.open(htmlURLPath,"bungeepop", _params);
	 
	 	if (!bIE5Mac)
	 		newWin.focus();
}

function leavePage()
{
	
if (newWin)
	newWin.close();

} 
 
