// JavaScript Document


function fix_ie_hover_nav()
{
	if (document.all&&document.getElementById) 
	{
		navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) 
		{
			with(navRoot.childNodes[i])
			{
				if (nodeName=="LI") 
				{
					onmouseover=function() { this.className = "hover"; }
  					onmouseout=function() { this.className=""; }
   				}
			}
 		}
	}
}


function offsite_nav_check() {
    // only display offsite nav (casino/poker) if no partner code present in URL
    if (window.location.toString().indexOf('~') < 0 )
	document.getElementById('offsite_nav').style.visibility="visible";
}

do_onloads = function() 
{
	fix_ie_hover_nav();
	fix_ie_hover_games();
	currency = get_cookie('currency');
	if(!currency) currency = 'usd';
	set_currency(currency,false);
	setup_currency_nav();
	if(window.initLayer)
		initLayer();
	offsite_nav_check();
}
