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){isLink=true;document.location.href=b[0].href}}function linkOver(c,b,d){var a="http://images.casino.com/";c.className=(d==111)?"affTopLinkHoverL":"topLinkHoverL";if(b==1){$("topLinksLeft").src=(d==111)?a+"images/afftoplinkslefthoverL.gif":a+"images/toplinkslefthoverL.gif"}else{if(b==100){$("topLinksRight").src=(d==111)?a+"images/afftoplinksrighthoverL.gif":a+"images/toplinksrighthoverL.gif"}}if(agt.indexOf("safari")!=-1||agt.indexOf("chrome")!=-1){c.children[0].style.paddingTop="11px";c.children[0].style.height="24px"}}function linkOut(c,b,d){var a="http://images.casino.com/";if(b==1){c.className=(d==111)?"affTopLink affTlFirst":"topLink tlFirst";$("topLinksLeft").src=(d==111)?a+"images/afftoplinksleft.gif":a+"images/toplinksleft.gif"}else{if(b==100){c.className=(d==111)?"affTopLink":"topLink";$("topLinksRight").src=(d==111)?a+"images/afftoplinksright.gif":a+"images/toplinksright.gif"}else{c.className=(d==111)?"affTopLink":"topLink"}}if(agt.indexOf("safari")!=-1||agt.indexOf("chrome")!=-1){c.children[0].style.height="100%"}}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(){var c=$("dateContainer");if(c){var a=new Date();c.innerHTML=Days[a.getUTCDay()]+", "+Months[a.getUTCMonth()]+" "+addLeadingZero(a.getUTCDate())+", "+addLeadingZero(a.getUTCFullYear())+" - "+cutHoursToAMPM(a.getUTCHours())+":"+addLeadingZero(a.getUTCMinutes())+" "+getAMPM(a.getUTCHours())+" GMT"}if(agt.indexOf("mozilla")==-1){if($("downloadLink")){$("downloadLink").style.height="35px"}}if(agt.indexOf("safari")!=-1||agt.indexOf("chrome")!=-1){if($("downloadLink")){for(var b=0;b<$("downloadLink").parentElement.children.length;b++){$("downloadLink").parentElement.children[b].style.paddingTop="0px";$("downloadLink").parentElement.children[b].style.height="35px"}}}if($("navigation")){tabdropdown.init("navigation",-1)}setTimeout("updateDateSpan();",10000)}function handleSideBar(a){if($("promoLinks").style.display=="none"){$("promoLinks").style.display=""}else{$("promoLinks").style.display="none"}}function handleStartedSteps(a){if($("startedStep"+a).style.display=="none"){$("startedStepImage"+a).src=$("startedStepImage"+a).src.replace(/sarrow(down|right)/i,"sarrowdown");$("startedStep"+a).style.display=""}else{$("startedStepImage"+a).src=$("startedStepImage"+a).src.replace(/sarrow(down|right)/i,"sarrowright");$("startedStepImage"+a).src=imagesPath+"images/sarrowright.gif";$("startedStep"+a).style.display="none"}}var emerpcomp=null;var counter=0;var userGuid="";function EMERPCallback(b,a){emerpcomp=b;userGuid=b.GetUserID();document.shouldsendhphit=doubletracking();if(typeof(document.EMERPAdditionalCallback)!="undefined"){document.EMERPAdditionalCallback(b,a)}else{if(a=="DummyEvent"){if(typeof(document.shouldsendhphit)!="undfined"&&document.shouldsendhphit){emerpcomp.SendEvent("","hphit","cp")}}}if(typeof(document.EMERPToUrchin)!="undefined"){document.EMERPToUrchin(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:"/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(!redirectafterdownload||document.location.href.match(/\/download\//i)){return}window.setTimeout(function(){document.location.href=CONSTANTS.download_link},4000)}var senddownload=false;var downloadattempts=0;var redirectafterdownload=true;function startDownload(d,a){if(a){redirectafterdownload=false}var b=document.location.href.replace(/^.*\//,"");if(typeof(d)!="undefined"){b+=((b!="")?":":"")+d}if(typeof(pageTracker)!="undefined"){pageTracker._trackEvent("Download","click",b);pageTracker._trackPageview("/clientdownload.html")}isLink=true;var f="cd";try{if(!navigator.userAgent.match(/Windows/)){f="cf"}}catch(c){}downloadattempts=0;startActualDownload(f)}function startActualDownload(a){if(emerpcomp==null||!synced||!cookiesreloaded){downloadattempts+=1;if(downloadattempts<8){reportserver("downloadattempt_"+downloadattempts,"download");window.setTimeout(function(){startActualDownload(a)},1000);return}else{}}if(emerpcomp!=null){emerpcomp.SendEvent("","download",a)}else{senddownload=true}if(senddownload){reportserver("download")}if(a=="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,d){d=d?d:"default";var e="."+(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+",,"+d+",*,*"+a+"; path=/"+((e!="")?";domain="+e:"");document.cookie="banner_click="+c+",,"+d+",*,*"+a+"; path=/"+((e!="")?";domain="+e:"");document.cookie="banner_download="+c+",,"+d+",*,*"+a+"; path=/"+((e!="")?";domain="+e:"")}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 __segment="";var synced=false;var cookiesreloaded=false;function doubletracking(){if(synced){return false}var d=true;synced=true;var l=emerpcomp.GetProperty("aff");trace("k1"+l);var h=emerpcomp.GetProperty("sid");trace("k2"+h);var j=getaffiliate();var m=getdownloadaffiliate();trace("a1"+j);trace("da"+m);var a=emerpcomp.GetSerialID();trace("s"+a);var b=(j!=""&&j!=l&&!j.match(/Convertonet/i));if(m!=""&&!m.match(/Convertonet/i)&&j!=m&&!b){b=true;j=m;syncAffiliate("banner_download",new Array("banner_domainclick","banner_click"))}var i=(a!=null&&a!=""&&a!=h);var k=getReferrer();var f=document.location.search.match(/[\?\&]SID=[0-9]+/);trace("ia"+b);trace("ic"+i);trace("is"+k);if(!k&&j==""&&a==""){trace("tu");emerpcomp.DeleteProperty("aff");emerpcomp.DeleteProperty("sid");emerpcomp.DeleteProperty("seo");__segment="Unknown";cookiesreloaded=true}else{if(b&&!f){trace("na");emerpcomp.SetProperty("aff",j);emerpcomp.SetProperty("seo",0);setAFFILIATE(j);syncAffiliate("banner_domainclick",new Array("banner_click","banner_download"));d=false}else{if(k&&!i){trace("sc");emerpcomp.SetProperty("aff","convertonetC");emerpcomp.SetProperty("seo",1);setAffiliate("convertonetC","seo");setSEO(k);__segment="SEO";d=false}else{if(k&&i){trace("smc");emerpcomp.SetProperty("aff","Convertonet");emerpcomp.SetProperty("sid",a);emerpcomp.SetProperty("seo",0);setAffiliate("Convertonet","sem");__segment="SEM";d=false;cookiesreloaded=true}else{if(i){trace("ns");emerpcomp.SetProperty("aff","convertonetC");emerpcomp.SetProperty("sid",a);emerpcomp.SetProperty("seo",0);setAffiliate("convertonetC","media");__segment="Media/"+a;cookiesreloaded=true}else{if(readcookie("__utmv")==null){var g=emerpcomp.GetProperty("aff");var e=emerpcomp.GetProperty("sid");var c=emerpcomp.GetProperty("seo");if(g!=""&&!g.match(/Convertonet/i)){__segment="Affiliate/"+g}else{if(c=="1"){__segment="SEO"}else{if(e!=""){__segment="Media/"+a}else{__segment="Unknown"}}}cookiesreloaded=true}else{cookiesreloaded=true}}}}}}reportserver(traceoutput,"log");reportserver(document.referrer,"log");return d}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\.ca)\/.+?[\?&]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:\/\/[^\/]*?\b(bing\.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])}}}}}function reloadcookies(a){emerpcomp.SetProperty("aff",a.GetProperty("aff"));emerpcomp.SetProperty("sid",a.GetProperty("sid"));emerpcomp.SetProperty("seo",a.GetProperty("seo"));emerpcomp.SetSerialID(a.GetSerialID());cookiesreloaded=true}var iframese=null;function setAFFILIATE(a){iframese=document.createElement("iframe");iframese.width=1;iframese.height=1;iframese.src="/EMERPECp/aff.php?callback=reloadcookies&name="+a+"&r="+Math.random()*100000;callse()}function setSEO(a){iframese=document.createElement("iframe");iframese.width=1;iframese.height=1;iframese.src="/EMERPECp/se.php?callback=reloadcookies&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,c){var a=new Image();a.src="/images/"+((typeof(c)=="undefined")?"events":c)+"/"+escape(b)+".html?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=$(lastName+"D").className.replace("Open","");$(lastName+"W").className=$(lastName+"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";document.location.href="#link_"+a}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}var isLink=false;function on_unload(){if(document.location.search.match(/client=true/)){document.cookie="ptclient=true; path=/;domain=.casino.com"}if(typeof(CONSTANTS.xsell_disabled)!="undefined"&&CONSTANTS.xsell_disabled=="true"){return false}if(isLink||readcookie("ptclient")=="true"){return false}else{var b=CONSTANTS.xsell_message;if(confirm(b)){var a=window.open(CONSTANTS.xsell_link,"visitWin");if(a==null){document.location.href=CONSTANTS.xsell_link}}return true}}function handleLinks(g){if(window.event){var a=window.event.srcElement}else{var a=g.target}var f=false;if(a.href){if(a.href.toString().indexOf("#")!=-1){var k=a.href.toString().substring(0,a.href.toString().indexOf("#"));var b=a.href.toString().substring(a.href.toString().indexOf("#"));var i=location.href.toString().substring(0,a.href.toString().indexOf("#"));if(i==k){f=true}}}var d=false;if(!(null==a.getAttribute("onclick"))){if(a.getAttribute("onclick").toString().indexOf("location")!=-1){d=true}}if(a.tagName=="A"||d){var h=a}else{var h=getParent(a)}var c=false;if(!(null==h.getAttribute("href"))&&h.getAttribute("href")!=""){if(h.getAttribute("href").toString().indexOf("javascript")==-1){c=true}}var j=false;if(!(null==h.getAttribute("onclick"))){if(h.getAttribute("onclick").toString().indexOf("location")!=-1){j=true}}if((h.tagName=="A"&&c&&!f)||j){isLink=true}}function getParent(c){var b=c;try{while(true){if(b.tagName.toLowerCase()=="a"||b.getAttribute("onclick")!=null){break}b=b.parentNode}return b}catch(a){alert(a.description)}}var tabdropdown={disappeardelay:200,disablemenuclick:false,enableiframeshim:1,dropmenuobj:null,ie:document.all,firefox:document.getElementById&&!document.all,previousmenuitem:null,currentpageurl:window.location.href.replace("http://"+window.location.hostname,"").replace(/^\//,""),getposOffset:function(d,c){var b=(c=="left")?d.offsetLeft:d.offsetTop;var a=d.offsetParent;while(a!=null){b=(c=="left")?b+a.offsetLeft:b+a.offsetTop;a=a.offsetParent}return b},showhide:function(c,b,a){if(this.ie||this.firefox){this.dropmenuobj.style.left=this.dropmenuobj.style.top="-500px"}if(b.type=="click"&&c.visibility==hidden||b.type=="mouseover"){if(a.parentNode.className.indexOf("default")==-1){if(!a.parentNode.className.match(/[ ]?ddopen/)){a.parentNode.className+=" ddopen"}}c.visibility="visible"}else{if(b.type=="click"){c.visibility="hidden"}}},iecompattest:function(){return(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body},clearbrowseredge:function(e,c){var b=0;if(c=="rightedge"){var d=this.ie&&!window.opera?this.standardbody.scrollLeft+this.standardbody.clientWidth-15:window.pageXOffset+window.innerWidth-15;this.dropmenuobj.contentmeasure=this.dropmenuobj.offsetWidth;if(d-this.dropmenuobj.x<this.dropmenuobj.contentmeasure){b=this.dropmenuobj.contentmeasure-e.offsetWidth}}else{var a=this.ie&&!window.opera?this.standardbody.scrollTop:window.pageYOffset;var d=this.ie&&!window.opera?this.standardbody.scrollTop+this.standardbody.clientHeight-15:window.pageYOffset+window.innerHeight-18;this.dropmenuobj.contentmeasure=this.dropmenuobj.offsetHeight;if(d-this.dropmenuobj.y<this.dropmenuobj.contentmeasure){b=this.dropmenuobj.contentmeasure+e.offsetHeight;if((this.dropmenuobj.y-a)<this.dropmenuobj.contentmeasure){b=this.dropmenuobj.y+e.offsetHeight-a}}this.dropmenuobj.firstlink.style.borderTopWidth=(b==0)?0:"1px"}return b},dropit:function(c,b,a){if(this.dropmenuobj!=null){this.dropmenuobj.style.visibility="hidden";if(this.previousmenuitem!=null&&this.previousmenuitem!=c){if(this.previousmenuitem.parentNode.className.indexOf("default")==-1){this.previousmenuitem.parentNode.className=this.previousmenuitem.parentNode.className.replace(/[ ]?ddopen/g,"")}}}this.clearhidemenu();if(this.ie||this.firefox){c.onmouseout=function(){tabdropdown.delayhidemenu(c)};c.onclick=function(){return !tabdropdown.disablemenuclick};this.dropmenuobj=document.getElementById(a);this.dropmenuobj.onmouseover=function(){tabdropdown.clearhidemenu()};this.dropmenuobj.onmouseout=function(d){tabdropdown.dynamichide(d,c)};this.dropmenuobj.onclick=function(){tabdropdown.delayhidemenu(c)};this.showhide(this.dropmenuobj.style,b,c);this.dropmenuobj.x=this.getposOffset(c.parentNode,"left");this.dropmenuobj.y=this.getposOffset(c.parentNode,"top");this.dropmenuobj.style.left=this.dropmenuobj.x-this.clearbrowseredge(c,"rightedge")+"px";this.dropmenuobj.style.top=this.dropmenuobj.y-this.clearbrowseredge(c,"bottomedge")+c.offsetHeight+1+"px";this.previousmenuitem=c;this.positionshim()}},contains_firefox:function(d,c){while(c.parentNode){if((c=c.parentNode)==d){return true}}return false},dynamichide:function(c,b){var a=window.event?window.event:c;if(this.ie&&!this.dropmenuobj.contains(a.toElement)){this.delayhidemenu(b)}else{if(this.firefox&&c.currentTarget!=a.relatedTarget&&!this.contains_firefox(a.currentTarget,a.relatedTarget)){this.delayhidemenu(b)}}},delayhidemenu:function(a){this.delayhide=setTimeout(function(){tabdropdown.dropmenuobj.style.visibility="hidden";if(a.parentNode.className.indexOf("default")==-1){a.parentNode.className=a.parentNode.className.replace(/[ ]?ddopen/g,"")}},this.disappeardelay)},clearhidemenu:function(){if(this.delayhide!="undefined"){clearTimeout(this.delayhide)}},positionshim:function(){if(this.enableiframeshim&&typeof this.shimobject!="undefined"){if(this.dropmenuobj.style.visibility=="visible"){this.shimobject.style.width=this.dropmenuobj.offsetWidth+"px";this.shimobject.style.height=this.dropmenuobj.offsetHeight+"px";this.shimobject.style.left=this.dropmenuobj.style.left;this.shimobject.style.top=this.dropmenuobj.style.top}this.shimobject.style.display=(this.dropmenuobj.style.visibility=="visible")?"block":"none"}},hideshim:function(){if(this.enableiframeshim&&typeof this.shimobject!="undefined"){this.shimobject.style.display="none"}},isSelected:function(a){var a=a.replace("http://"+a.hostname,"").replace(/^\//,"");return(tabdropdown.currentpageurl==a)},init:function(e,c){this.standardbody=(document.compatMode=="CSS1Compat")?document.documentElement:document.body;var f=document.getElementById(e).getElementsByTagName("a");for(var d=0;d<f.length;d++){if(f[d].getAttribute("rel")){var a=f[d].getAttribute("rel");document.getElementById(a).firstlink=document.getElementById(a).getElementsByTagName("a")[0];f[d].onmouseover=function(h){var g=typeof h!="undefined"?h:window.event;tabdropdown.dropit(this,g,this.getAttribute("rel"))}}if(c=="auto"&&typeof b=="undefined"&&this.isSelected(f[d].href)){if(!f[d].parentNode.className.match(/[ ]?ddopen/)){f[d].parentNode.className+=" ddopen"}var b=true}else{if(parseInt(c)==d){if(!f[d].parentNode.className.match(/[ ]?ddopen/)){f[d].parentNode.className+=" ddopen"}}}}}};function openLangs(a){if(document.getElementById("langselector").style.display=="none"){document.getElementById("langselector").style.display="";a.style.backgroundPosition="0 -29px"}else{document.getElementById("langselector").style.display="none";a.style.backgroundPosition="0 0"}}function changelanguage(a){savecookie("language",a,1000);return true};