$(document).ready(function(){switch(siteCode){case"CA":var f="/directdownload-en.asp";try{if($("#container-1").length>0){$("#container-1 > ul").tabs({fx:{opacity:"toggle"}});$("#container-1").attr("class","show")}}catch(e){}try{if($("#Table_DL > a").length>0){setTimeout(function(){$("#Table_DL > .autoPadDiv > a").tooltip({delay:0,showURL:false})},666)}}catch(e){}try{if($("#calogoflash").length>0){var a=new SWFObject("/images/flash/ca/ca_logoflash.swf","CALogo","158","160","8","#000000");a.addParam("wmode","transparent");a.addVariable("homelink","/");a.write("calogoflash")}}catch(e){}try{if($("#free500").length>0){var c=new SWFObject("/images/flash/ca/downloadbutton_en.swf","BonusFree","350","350","8","#000000");c.addVariable("downlink",f);c.addParam("wmode","transparent");switch(currency){case"GBP":c.addVariable("siteCurr","gbp");break;case"EURO":c.addVariable("siteCurr","eur");break;default:c.addVariable("siteCurr","usd");break}c.write("free500")}}catch(e){}try{if($("#camovie").length>0){var b=new SWFObject("/images/flash/ca/ca_movie_en.swf","CAPromo","325","250","8","#000000");b.addVariable("downlink",f);b.addParam("wmode","transparent");b.write("camovie")}}catch(e){}break;case"UKC":try{if($("#Table_DL > a").length>0){setTimeout(function(){$("#Table_DL > .autoPadDiv > a").tooltip({delay:0,showURL:false})},666)}}catch(e){}try{if($("#container-1").length>0){$("#container-1 > ul").tabs({selected:3,fx:{opacity:"toggle"}});$("#container-1").attr("class","show")}}catch(e){}try{var f="/directdownload-en.asp";if($("#ukcmovie").length>0){var c=new SWFObject("/images/flash/ukc/ukc_flash.swf","BonusFree","730","395","8","#121212");c.addVariable("downlink",f);c.addParam("wmode","transparent");switch(currency){case"GBP":c.addVariable("siteCurr","gbp");break;case"EURO":c.addVariable("siteCurr","eur");break;default:c.addVariable("siteCurr","usd");break}c.write("ukcmovie")}}catch(e){}break;case"PHC":var h;var j;var d=0;var i=0;try{if($("#mycarousel").length>0){document.getElementById("mycarousel").style.display="block";$("#mycarousel").jcarousel()}}catch(e){}try{if($("#scrollup").length>0){function g(){i=(d+1)%h;$("div.headline:eq("+d+")").animate({top:-205},"slow",function(){$(this).css("top","210px")});$("div.headline:eq("+i+")").show().animate({top:5},"slow");d=i}setTimeout(function(){h=$("div.headline").size();$("div.headline:eq("+i+")").css("top","5px");g();document.getElementById("scrollup").style.display="block";j=setInterval(g,5000)},666)}}catch(e){}break;case"CC":try{if($("div#bottleman").length>0){setTimeout(function(){$("div#bottleman").show();$("#bottleman").cycle({fx:"scrollRight",next:"#bottleman",timeout:0,easing:"backinout"})},666)}}catch(e){}break}try{if($("#Table_DL > a").length>0){setTimeout(function(){$("#Table_DL > a").tooltip({delay:0,showURL:false})},666)}}catch(e){}try{if($(".rssarea").length>0){setTimeout(function(){rssTicker(".rssarea .headline")},666)}}catch(e){}try{if($("#videoLayer").length>0){setTimeout(function(){createplayer()},666)}}catch(e){}try{if(($("input[name=progressive55]").length>0)||($("input[name^=progressive]").length>0)){$.ajax({type:"GET",url:"http://www.tickerassist.co.uk/ProgressiveTickers/WebServiceProgressiveTickerScript.asmx/renderScript?form=json",success:function(){setTimeout(function(){if($("input[name^=progressive]").length>0){counter=$("input[name^=progressive]").length;switch(counter){case 16:try{ScrollTotals(currency);ShowCounters(currency)}catch(k){}break;default:if($("input[name=progressive55]").length>0){try{ScrollTotals(currency)}catch(k){}}else{try{thisCounter=$("input[name^=progressive]").attr("name").replace("progressive","");ScrollCounters(thisCounter,currency)}catch(k){}}break}}},2000)},dataType:"script",cache:false})}}catch(e){}try{if($("div#contact").length>0){setTimeout(function(){$("div#contact").show();$("div#contact marquee").marquee()},666)}}catch(e){}try{if($("div#s2").length>0){setTimeout(function(){$("div#s2").show();$("#s2").cycle({fx:"scrollDown",easing:"backinout",timeout:1000,delay:-500})},666)}}catch(e){}try{if($("div#s3").length>0){setTimeout(function(){$("div#s3").show();$("#s3").cycle({fx:"scrollDown",timeout:250,delay:-250})},666)}}catch(e){}try{if($("#rate1").length>0){setTimeout(function(){$("#rate1").rating("/recordvote.asp",{maxvalue:5,curvalue:4,increment:0.5})},666)}}catch(e){}try{if($("a.download").length>0){setTimeout(function(){tb_download_init("a.download")},666)}}catch(e){}try{if($("#pwcreports").length>0){setTimeout(function(){tb_download_init("a.pwc")},666)}}catch(e){}});function tb_download_init(a){$(a).click(function(){var c="Download Our 100% Virus Free Casino Software";var b=this.rev+"?TB_iframe=true&height=150&width=440&modal=false"||null;var d=this.rel||false;tb_show(c,b,d);this.blur();return true})};