var showFlash=false;

function getCookie(c_name) {
if (document.cookie.length>0)
  {
  c_start=document.cookie.indexOf(c_name + "=");
  if (c_start!=-1)
    {
    c_start=c_start + c_name.length+1;
    c_end=document.cookie.indexOf(";",c_start);
    if (c_end==-1) c_end=document.cookie.length;
    return unescape(document.cookie.substring(c_start,c_end));
    }
  }
return "";
}

function showall() {
document.getElementById('light').style.display='none'; 
document.getElementById('flash_promos_box').style.display='block'; 
document.getElementById('headerjoin').style.display='block'; 
document.body.scroll='auto';
document.body.style.overflow='auto';
}

function setCookie(c_name,value,expiredays)
{
var exdate=new Date();
exdate.setDate(exdate.getDate()+expiredays);
document.cookie=c_name+ "=" +escape(value)+
((expiredays==null) ? "" : ";expires="+exdate.toGMTString());
}

function showSplash() {
var username = getCookie('GiggleSplash');

if (username!=null && username!=""){
	showFlash=true;
  } else {
    setCookie('GiggleSplash','return',1);
	document.write('<style rel="Stylesheet" type="text/css">#headerjoin {display:none;}#flash_promos_box {display:none;}body {overflow:hidden;}</style>');
	document.write('<div id="light" style="display:block;height:900px;left:0%;overflow:hidden;padding:16px;position:absolute;top:0px;width:100%;z-index:999;background-color: #a2dafd;background-image:url(/images/bg_strip.jpg);"><br /><div align="center"><div id="redirect2"><div id="redirect_logo"><img src="/images/redirect_gb_03.jpg" alt="Giggle Bingo Canada" width="541" height="234" border="0" /></div> <div id="redirect_enter"><a href = "javascript:void(0)" onclick = "showall();"><img src="/images/redirect_gb_04.jpg" alt="Enter Now" width="350" height="234" border="0" /></a></div></div></div></div>');
  }
}