function $(a){return document.getElementById(a)}if(window.addEventListener){window.addEventListener("load",updateDateSpan,false)}else{window.attachEvent("onload",updateDateSpan)}var agt=navigator.userAgent.toLowerCase();function linkClick(c){var b=c.getElementsByTagName("a");if(b.length>0){document.location.href=b[0].href}}function linkOver(c,b,d){var a=$("topLinksLeft").src.substring(0,$("topLinksLeft").src.indexOf("images"));c.className=(d==111)?"affTopLinkHoverL":"topLinkHoverL";if(b==1){$("topLinksLeft").src=(d==111)?a+"images/casinocom/afftoplinkslefthoverL.gif":a+"images/casinocom/toplinkslefthoverL.gif"}else{if(b==100){$("topLinksRight").src=(d==111)?a+"images/casinocom/afftoplinksrighthoverL.gif":a+"images/casinocom/toplinksrighthoverL.gif"}}if(agt.indexOf("safari")!=-1){c.children[0].style.paddingTop="11px";c.children[0].style.height="24px"}}function linkOut(c,b,d){var a=$("topLinksLeft").src.substring(0,$("topLinksLeft").src.indexOf("images"));if(b==1){c.className=(d==111)?"affTopLink affTlFirst":"topLink tlFirst";$("topLinksLeft").src=(d==111)?a+"images/casinocom/afftoplinksleft.gif":a+"images/casinocom/toplinksleft.gif"}else{if(b==100){c.className=(d==111)?"affTopLink":"topLink";$("topLinksRight").src=(d==111)?a+"images/casinocom/afftoplinksright.gif":a+"images/casinocom/toplinksright.gif"}else{c.className=(d==111)?"affTopLink":"topLink"}}if(agt.indexOf("safari")!=-1){c.children[0].style.height="100%"}}var Days=['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'];var Months=['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'];function addLeadingZero(a){if(a<10){return"0"+a}else{return a}}function getAMPM(a){return(a>=12)?"PM":"AM"}function cutHoursToAMPM(a){return(a==12||a==0)?12:a%12}function updateDateSpan(){if(agt.indexOf("safari")!=-1||agt.indexOf("chrome")!=-1){if($("downloadLink")){$("downloadLink").style.height="35px"}}if($("toplinks")){$("toplinks").style.display=""}var b=$("dateContainer");if(b){var a=new Date();b.innerHTML=Days[a.getUTCDay()]+", "+Months[a.getUTCMonth()]+" "+addLeadingZero(a.getUTCDate())+", "+addLeadingZero(a.getUTCFullYear())+" - "+cutHoursToAMPM(a.getUTCHours())+":"+addLeadingZero(a.getUTCMinutes())+" "+getAMPM(a.getUTCHours())+" GMT"}setTimeout("updateDateSpan();",10000)}function handleSideBar(a){if($("promoLinks").style.display=="none"){$("promoLinks").style.display=""}else{$("promoLinks").style.display="none"}}function handleStartedSteps(b){var a=$("startedStepImage"+b).src.substring(0,$("startedStepImage"+b).src.indexOf("images"));if($("startedStep"+b).style.display=="none"){$("startedStepImage"+b).src=a+"images/casinocom/sarrowdown.gif";$("startedStep"+b).style.display=""}else{$("startedStepImage"+b).src=a+"images/casinocom/sarrowright.gif";$("startedStep"+b).style.display="none"}}var emerpcomp=null;var counter=0;var userGuid="";function EMERPCallback(b,a){emerpcomp=b;userGuid=b.GetUserID();doubletracking();if(typeof(document.EMERPAdditionalCallback)!="undefined"){document.EMERPAdditionalCallback(b,a)}}function isAffiliate(){return true;return document.cookie.match(/banner_domainclick=[\d\D]+/i)?true:false}function getDownloadLink(){var a=(emerpcomp!=null)?emerpcomp.GetPixelID():"";var c=(emerpcomp!=null)?emerpcomp.GetDPID():"";var b=(isAffiliate())?"http://banner2.casino.com/cgi-bin/SetupCasino.exe?creferer=UserGUID:"+userGuid+";pixelid:"+a+";dp:"+c:"http://www.casino.com/download/SetupCasino.exe";return b}function doDownload(){var a=document.getElementById("download_iframe");if(a==null){a=document.createElement("iframe");a.width="1px";a.height="1px";a.position="absolute";a.left="-100px";document.body.appendChild(a)}a.src=getDownloadLink();if(document.location.href.match(/\/download\//i)){return}window.setTimeout(function(){document.location.href="http://www.casino.com/download/"},4000)}var senddownload=false;function startDownload(b){var c="cd";try{if(!navigator.userAgent.match(/Windows/)){c="cf"}}catch(a){}if(emerpcomp!=null){emerpcomp.SendEvent("","http://www.casino.com/download",c)}else{senddownload=true}if(senddownload){reportserver("http://www.casino.com/download")}if(c=="cd"){doDownload()}else{window.open("http://banner2.casino.com/flashcasino.php","newwindow","width=800, height=600")}}function openForgot(){$("forgotPassword").style.display=""}function closeForgot(){$("forgotPassword").style.display="none"}function findPosition(a){var b={x:0,y:0};while(a.nodeName.toLowerCase()!="body"){b.x+=parseInt(a.offsetLeft,10);b.y+=parseInt(a.offsetTop,10);a=a.offsetParent}return b}function findPosX(a){var b=0;if(a.offsetParent){while(1){b+=a.offsetLeft;if(!a.offsetParent){break}a=a.offsetParent}}else{if(a.x){b+=a.x}}return b}function findPosY(b){var a=0;if(b.offsetParent){while(1){a+=b.offsetTop;if(!b.offsetParent){break}b=b.offsetParent}}else{if(b.y){a+=b.y}}return a}function openLanguages(){if($("languages").style.display=="none"){$("languages").style.display="";$("langArrow").style.display="none";$("langArrowDown").style.display=""}else{$("languages").style.display="none";$("langArrow").style.display="";$("langArrowDown").style.display="none"}}var traceoutput="";function trace(a){traceoutput+=a+"_"}function savecookie(c,d,e){var b=new Date();b.setTime(b.getTime()+( ((typeof(e) != "undefined") ? e : 3)*24*60*60*1000));var a="; expires="+b.toGMTString();document.cookie=c+"="+d+a+"; path=/;domain=.casino.com"}function readcookie(a){a+="=";var d=document.cookie.split(";");for(var b=0;b<d.length;b++){var e=d[b];while(e.substring(0,1)==" "){e=e.substring(1,e.length)}if(e.indexOf(a)==0){return(e.substring(a.length,e.length)!="null")?e.substring(a.length,e.length):null}}return null}function syncAffiliate(d,a){var c=readcookie(d);for(var b=0;b<a.length;b++){savecookie(a[b],c)}}function getParamFromUrl(b){var c=new RegExp("(?:\\?|\\&)"+b+"=([^\\&]*)");var a=document.location.search.match(c);return(a!=null)?a[1]:""}function setAffiliate(c){var d="."+(document.domain.match(/\./ig).length>1)?document.domain.replace(/[^\.]*\./,""):document.domain;var b=new Date();b.setTime(b.getTime()+(3*24*60*60*1000));var a="; expires="+b.toGMTString();document.cookie="banner_domainclick="+c+",,default,*,*"+a+"; path=/"+((d!="")?";domain="+d:"");document.cookie="banner_click="+c+",,default,*,*"+a+"; path=/"+((d!="")?";domain="+d:"");document.cookie="banner_download="+c+",,default,*,*"+a+"; path=/"+((d!="")?";domain="+d:"")}function getaffiliate(){var a=(document.cookie.match(/banner_domainclick/))?document.cookie.match(/banner_domainclick=([\d\D]+)/i):null;if(a!=null&&a[1].replace(/,.*/,"")!="default02"){return a[1].replace(/,.*/,"")}else{return""}}function getdownloadaffiliate(){var a=(document.cookie.match(/banner_download/))?document.cookie.match(/banner_download=([\d\D]+)/i):null;if(a!=null&&a[1].replace(/,.*/,"")!="default02"){return a[1].replace(/,.*/,"")}else{var b=getParamFromUrl("tracker");return(b!="default02")?b:""}}var synced=false;function doubletracking(){if(synced){return}synced=true;var g=emerpcomp.GetProperty("aff");trace("k1"+g);var d=emerpcomp.GetProperty("sid");trace("k2"+d);var f=getaffiliate();var i=getdownloadaffiliate();trace("a1"+f);trace("da"+i);var a=emerpcomp.GetSerialID();trace("s"+a);var b=(f!=""&&f!=g&&f!="Convertonet");if(i!=""&&f!=i&&!b){b=true;f=i;syncAffiliate("banner_download",new Array("banner_domainclick","banner_click"))}var e=(a!=null&&a!=""&&a!=d);var h=getReferrer();var c=document.location.search.match(/[\?\&]SID=[0-9]+/);trace("ia"+b);trace("ic"+e);trace("is"+h);if(!h&&f==""&&a==""){trace("tu");emerpcomp.DeleteProperty("aff");emerpcomp.DeleteProperty("sid")}else{if(b&&!c){trace("na");emerpcomp.SetProperty("aff",f);emerpcomp.SetProperty("sid",57324);emerpcomp.SetSerialID(57324);syncAffiliate("banner_domainclick",new Array("banner_click","banner_download"))}else{if(h){trace("sc");emerpcomp.SetProperty("aff","Convertonet");setAffiliate("Convertonet");setSEO(h)}else{if(e){trace("ns");emerpcomp.SetProperty("aff","Convertonet");emerpcomp.SetProperty("sid",a);setAffiliate("Convertonet")}}}}reportserver(traceoutput);reportserver(document.referrer)}function getReferrer(){return a(document.referrer);function a(c){if(!c){return}var e=[/^http:\/\/[^\/]*?\b(google)(?:\.[^\.]+)\/.+?[\?&]q=([^&#]*)/i,/^http:\/\/[^\/]*?\b(google\.com)\/.+?[\?&]q=([^&#]*)/i,/^http:\/\/[^\/]*?\b(google\.co\.uk)\/.+?[\?&]q=([^&#]*)/i,/^http:\/\/[^\/]*?\b(yahoo)\.co(?:m|\.[^\.]+)\/.+?[\?&]p=([^&#]*)/i,/^http:\/\/search\.(yahoo\.com)\/.+?[\?&]p=([^&#]*)/i,/^http:\/\/(uk\.search\.yahoo\.com)\/.+?[\?&]p=([^&#]*)/i,/^http:\/\/(ca\.search\.yahoo\.com)\/.+?[\?&]p=([^&#]*)/i,/^http:\/\/search\.(msn\.com)\/.+?[\?&]q=([^&#]*)/i,/^http:\/\/search\.(msn\.co\.uk)\/.+?[\?&]q=([^&#]*)/i,/^http:\/\/(search\.live\.com)\/.+?[\?&]q=([^&#]*)/i,""];for(var b,d=e.length-2;d>=0;--d){if(b=e[d].exec(c)){return{site:b[1],keyword:decodeURIComponent(b[2])}}}}}var iframese=null;function setSEO(a){iframese=document.createElement("iframe");iframese.width=1;iframese.height=1;iframese.src="/EMERPECp/se.php?keyword="+a.keyword+"&site="+a.site+"&r="+Math.random()*100000;callse()}function callse(){if(document.getElementById("emerpec")==null){window.setTimeout(callse,100);return}else{document.getElementById("emerpec").parentNode.appendChild(iframese)}}function saveCookie(c,d,e){var b=new Date();b.setTime(b.getTime()+(e*24*60*60*1000));var a="; expires="+((typeof(e)!="undefined")?b.toGMTString():"");document.cookie=c+"="+d+a+"; path=/"}function readCookie(a){a+="=";var d=document.cookie.split(";");for(var b=0;b<d.length;b++){var e=d[b];while(e.substring(0,1)==" "){e=e.substring(1,e.length)}if(e.indexOf(a)==0){return(e.substring(a.length,e.length)!="null")?e.substring(a.length,e.length):null}}return""}function deleteCookie(a){saveCookie(a,"",-1)}function reportserver(b){var a=new Image();a.src="/images/events/"+escape(b)+".php?r="+Math.random()*100000}var lastName=-1;function gotoInfo(a){if(lastName!=-1&&a!=lastName){$(lastName).style.display="none";$(lastName+"Row").className="doTableRow";$(lastName+"Sep").className="doTableSep";$(lastName+"D").className=$(a+"D").className.replace("Open","");$(lastName+"W").className=$(a+"W").className.replace("Open","");$(lastName+"Frame").src=""}if($(a).style.display=="none"){$(a).style.display="";$(a+"Row").className="doTableRowOpen";$(a+"Sep").className="doTableSepOpen";$(a+"D").className=$(a+"D").className+"Open";$(a+"W").className=$(a+"W").className+"Open";$(a+"Frame").src=a+"/index.html?showlink=yes";$(a+"Row").scrollIntoView()}else{$(a).style.display="none";$(a+"Row").className="doTableRow";$(a+"Sep").className="doTableSep";$(a+"D").className=$(a+"D").className.replace("Open","");$(a+"W").className=$(a+"W").className.replace("Open","");$(a+"Frame").src=""}lastName=a};