function Portal_getCookie(CookieName){var lf="\n";var CookieString=document.cookie;var CookieSet=CookieString.split('; ');var SetSize=CookieSet.length;var CookiePieces;var ReturnValue="";var x=0;for(x=0;((x<SetSize)&&(ReturnValue==""));x++){CookiePieces=CookieSet[x].split('=');if(CookiePieces[0].substring(0,1)==' ')CookiePieces[0]=CookiePieces[0].substring(1,CookiePieces[0].length);if(CookiePieces[0]==CookieName)ReturnValue=CookiePieces[1];}return ReturnValue;}
function Standard() 
	{
	
			 
      
}


function popUp(popupURL)
      {
      width = 700; height = 550; leftPosition = (screen.width) ? (screen.width-width)/2 : 0;
      if (screen.height && (screen.height <= 600)) { topPosition = 0; } else { topPosition = (screen.height) ? (screen.height-height)/2 : 0; }
      var settings='width='+width+',height='+height+',left='+leftPosition+',top='+topPosition+'toolbar=0,location=0,directories=0,menubar=0,scrollbar=0,resizable=0,status=0';
      var popup=window.open(popupURL, 'gamepopup', settings); popup.focus();
      }

//setup onload function
if(typeof window.addEventListener != 'undefined')    //.. gecko, safari, konqueror and standard    
window.addEventListener('load', Standard, false); 
else if(typeof document.addEventListener != 'undefined')    //.. opera     
document.addEventListener('load', Standard, false); 
else if(typeof window.attachEvent != 'undefined')    //.. win/ie    
window.attachEvent('onload', Standard); 
else    
{    
  if(typeof window.onload == 'function')    //if there's an existing onload function    
  {        
    var existing = onload;        
    window.onload = function()        //add new onload handler        
    {            
      existing();    //call existing onload function            
      Standard();        //call replacetext onload function        
    }    
  }    
  else      
window.onload = Standard;   
}	


