
var g_windowSizeLarge=[799,650];var g_windowSizeMedium=[661,800];var g_windowSizeSmall=[560,400];var g_windowSizeLiveStreaming=[860,800];var g_windowBalance=[420,320];var $a=[800,600];var g_windowSizeLiveChat=[492,550];var g_windowSizeAffiliates=[1024,768];var winHHH=null;var winMMM=null;var winGGG=null;var winCCC=null;var winAAA=null;var winEEE=null;var winLLL=null;var inPlayPopUp=null;function mlAlert(id){var $b=document.getElementById("waitTextDiv");if($b!=null&&typeof($b)!="undefined"){$b.style.display="none";$b.style.visibility="hidden";};var $c=mlMsg(id);if(arguments.length>0){for(var i=1;i<arguments.length;i++){var $d=new RegExp('%'+i);$c=$c.replace($d,arguments[i]);}};alert($c);};function mlConfirm(id){var $c=mlMsg(id);if(arguments.length>0){for(var i=1;i<arguments.length;i++){var $d=new RegExp('%'+i);$c=$c.replace($d,arguments[i]);}};return confirm($c);};function mlMsg(id){return mlTxt[id];};function mlMsgReplace(id){var $e=mlTxt[id];if(arguments.length>0){for(var i=1;i<arguments.length;i++){var $d=new RegExp('%'+i);$e=$e.replace($d,arguments[i]);}};return $e;};function rndDeci($f,$g){var $h=$f.value;var $i=$h.indexOf('.');if($i>=0){var $j=$h.slice(0,$i);var $k=$h.slice($i+1);var $l;if(Number($j)===0){$j=0;};if($k>0&&$g===0){if($f.name=='txtAmt1'){$l='00';$f.value=($j+'.'+$l);}};if($k.length>2){$l=$k.slice(0,2);$f.value=($j+'.'+$l);}}};function rndDe($m){$m=Math.round($m*100)/100;$m=String($m);var $i=$m.indexOf('.');var $k=$m.slice($i+1);if(Number($m)===0&&Number($i)===-1){$m=$m+'.00';return $m;};if($k===0&&$i==-1){$m=$m+'.00';return $m;};if($k>0&&$i==-1){$m=$m+'.00';return $m;};if($k.length<2){$m=$m+'0';return $m;}else{return $m;}};function setPmt($n){var $o=document.getElementById('tpmID');if($o!==null){$o.value=$n;}};function setPrd($n){var $p=document.getElementById('tpdID');if($p!==null){$p.value=$n;}};function getURL($q){var $r=document.getElementById('txtURL');if($r!==null){$r=$r.value;};var $s=$r.split('/');$r='';for(i=0;i<=$s.length-1;i++){if($s[i].indexOf('.asp')==-1){$r=$r+$s[i]+'/';}};$r=$r+'/defaulthmr.asp';return $r;};function PC($q,$t){var $u;$u="http://";var $v;var width;var height;var $w=GetQS();switch($q){case 3100:case 3101:case 5541:case 5520:case 5702:case 5703:case 5704:case 5705:case 5240:case 5535:width=g_windowSizeSmall[0];height=g_windowSizeSmall[1];break;case 2200:case 2201:case 2202:case 2203:case 2206:case 5423:case 5424:width=g_windowSizeMedium[0];height=g_windowSizeMedium[1];break;default:if(typeof $t!=='undefined'){var sL=$t.split('#');$x="&lng="+sL[0]+"&Lpx="+sL[1];};width=g_windowSizeLarge[0];height=g_windowSizeLarge[1];break;};$v=$u+getURL($q)+"?ibpid="+$q+$w;var $y=(screen.width/ 2)-(width/ 2);var $z=(screen.height/ 2)-(height/ 2);windowOpen($q,true,$v,"height="+height+",width="+width+",left="+$y+",top="+$z);};function mlMultiConfirmV2(){var $b=document.getElementById("waitTextDiv");if($b!=null&&typeof($b)!="undefined"){$b.style.display="none";$b.style.visibility="hidden";};var $c=mlMsg(arguments[0])+"\r\n\r\n";for(var i=1;i<arguments.length;i++){var id=arguments[i];if(id=="|"){break;}else{$c=$c+" -"+mlMsg(id)+"\r\n";}};var j=i+1;if(arguments[j+1]!=null){$c=$c+"\r\n"+mlMsg(arguments[j])+"\r\n\r\n";for(i=j+1;i<arguments.length;i++){var id=arguments[i];$c=$c+" -"+mlMsg(id)+"\r\n";}};return confirm($c);};function mlMultiConfirm($A){var $b=document.getElementById("waitTextDiv");if($b!=null&&typeof($b)!="undefined"){$b.style.display="none";$b.style.visibility="hidden";};var $c=mlMsg($A)+"\r\n\r\n";if(arguments.length>0){for(var i=1;i<arguments.length;i++){var id=arguments[i];$c=$c+" -"+mlMsg(id)+"\r\n";}};return confirm($c);};function GetQS(){var $B='';var $C=null;if(typeof GetNavigationPB!=='undefined'&&GetNavigationPB!==null){var $D=GetNavigationPB("languageid",1);$B+='&isb=0&lng='+$D;};$C=document.getElementById('txtRU');if(null !==$C){if($C.value.length>0){$B+='&ru='+$C.value;}};return $B;};function lobb(n,s,b,o1,o2,o3,o4,o5){$E='popup.asp?popup=true&pageid=5480&n='+n+'&s='+s+'&b='+b+'&o1='+o1+'&o2='+o2+'&o3='+o3+'&o4='+o4+'&o5='+o5+'&rn='+GetRndNum();window.open($E,"BetBreakDown","toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=450,height=250");};function checkCloseWindowStatus(){if(window.opener==null&&GetBrowser()!="IE"){hideHTMLItem("closeWindowText");}};function hideHTMLItem($F){var $G=document.getElementById($F);if($G!=null&&typeof($G)!="undefined"){$G.style.display="none";$G.style.visibility="hidden";}};function HasActiveBonus(){if(document.getElementById("txtHAB").value==1){return true;}else{return false;}};function HasActiveGamesBonus(){if((document.getElementById("txtHGAB").value==1)&&(document.getElementById("txtHAGT").value==0)){return true;}else{return false;}};function HasActiveBingoBonus(){if((document.getElementById("txtHBAB").value==1)&&(document.getElementById("txtHABT").value==0)){return true;}else{return false;}};function HasSportsActiveBonus(){if((document.getElementById("txtHSAB").value==1)&&(document.getElementById("txtSBBAW").value==0)){return true;}else{return false;}};function cPC(){closeWindow(inPlayPopUp);closeWindow(winHHH);closeWindow(winMMM);};function windowName($H){$H=Number($H);if(($H>=10000&&$H<=10007)||($H>=12000&&$H<=12002)||($H>=12101&&$H<=12103)||($H>=12106&&$H<=12109)||($H>=2101&&$H<=2102)||($H>=2110&&$H<=2117)||($H>=2175&&$H<=2177)||($H>=2179&&$H<=2181)||($H>=2200&&$H<=2203)||($H>=2220&&$H<=2223)||($H>=2495&&$H<=2497)||($H>=2585&&$H<=2587)||($H>=2590&&$H<=2593)||($H>=2604&&$H<=2605)||($H>=2609&&$H<=2610)||($H>=2620&&$H<=2624)||($H>=2700&&$H<=2702)||($H>=2741&&$H<=2743)||($H>=2800&&$H<=2801)||($H>=2810&&$H<=2813)||($H>=2895&&$H<=2896)||($H>=3000&&$H<=3002)||($H>=5420&&$H<=5424)||($H>=5510&&$H<=5511)||($H>=5546&&$H<=5548)||($H>=9704&&$H<=9709)||($H>=9711&&$H<=9712)||($H>=9195&&$H<=9196)||($H==12004)||($H==2010)||($H==2015)||($H==2025)||($H==2100)||($H==2130)||($H==2140)||($H==2160)||($H==2165)||($H==2170)||($H==2190)||($H==2199)||($H==2225)||($H==2235)||($H==2270)||($H==2320)||($H==2330)||($H==2370)||($H==2372)||($H==2380)||($H==2400)||($H==2410)||($H==2420)||($H==2440)||($H==2500)||($H==2510)||($H==2530)||($H==2540)||($H==2550)||($H==2565)||($H==2570)||($H==2575)||($H==2577)||($H==2580)||($H==2600)||($H==2612)||($H==2615)||($H==2618)||($H==2710)||($H==2740)||($H==2900)||($H==2910)||($H==2920)||($H==2930)||($H==3020)||($H==5001)||($H==5260)||($H==5380)||($H==5410)||($H==5430)||($H==5440)||($H==5450)||($H==5544)||($H==6500)||($H==6510)||($H==6520)||($H==7010)||($H==8000)||($H==9020)||($H==9097)||($H==9110)||($H==9160)||($H==9170)||($H==9180)||($H==9185)||($H==9296)||($H==2210)||($H==5702)){return "MMM";}else{return "HHH";}};function windowHandle($H,$I){var $J;if(windowName($H)=="MMM"){$J=winMMM;}else{$J=winHHH;};if($I){closeWindow($J);};return $J;};function closeWindow($J){if($J!==null){if(typeof $J!=="undefined"){if(typeof $J.close!=='undefined'){try{$J.close();}catch(e){$J=null;}}}}};function windowFocus($J,$H){if($J!=null){if($J.focus){$J.focus()};if(windowName($H)=="MMM"){winMMM=$J;}else{winHHH=$J;}}};function windowOpen($H,$I,$K,$x){if(typeof(top.windowOpenParent)!="undefined"&&GetBrowser()!="OPERA"&&GetBrowser()!="IE"){top.windowOpenParent($H,$I,$K,$x);}else{var $J=windowHandle($H,$I);try{$J=window.open($K,windowName($H),$x+",status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,resizable=yes");}catch($L){$J=window.open($K,"_blank",$x+",status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,resizable=yes");};windowFocus($J,$H);}};function windowOpenParent($H,$I,$K,$x){var $J=windowHandle($H,$I);try{$J=window.open($K,windowName($H),$x+",status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,resizable=yes");}catch($L){$J=window.open($K,"_blank",$x+",status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,resizable=yes");};windowFocus($J,$H);};function windowOpenGames($K,$x){var $M=document.getElementById('txtLGN');var $N=false;if($M!==null){if(Number($M.value)==1){$N=true;}};if(typeof(top.windowOpenGamesParent)!="undefined"&&GetBrowser()!="OPERA"&&GetBrowser()!="IE"){top.windowOpenGamesParent($K,$x,$N);}else{if($N==true){window.open($K,"_blank",$x+",status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,resizable=yes");}else{closeWindow(winGGG);try{winGGG=window.open($K,"GGG",$x+",status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,resizable=yes");}catch($L){winGGG=window.open($K,"_blank",$x+",status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,resizable=yes");};if(winGGG!=null){if(winGGG.focus){winGGG.focus()}}}}};function windowOpenLiveChat($K,$x){if(typeof(top.windowOpenLiveChatParent)!="undefined"&&GetBrowser()!="OPERA"&&GetBrowser()!="IE"){top.windowOpenLiveChatParent($K,$x);}else{closeWindow(winCCC);try{winCCC=window.open($K,"CCC",$x+",status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,resizable=yes");}catch($L){winCCC=window.open($K,"_blank",$x+",status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,resizable=yes");};if(winCCC!=null){if(winCCC.focus){winCCC.focus()}}}};function windowOpenAffiliates($K){var width=g_windowSizeAffiliates[0];var height=g_windowSizeAffiliates[1];var $y=(screen.width/ 2)-(width/ 2);var $z=(screen.height/ 2)-(height/ 2);if(typeof(top.windowOpenAffiliatesParent)!="undefined"&&GetBrowser()!="OPERA"&&GetBrowser()!="IE"){top.windowOpenAffiliatesParent($K);}else{closeWindow(winAAA);try{winAAA=window.open($K,"AAA","height="+height+",width="+width+",left="+$y+",top="+$z+",status=yes,toolbar=yes,menubar=yes,location=yes,scrollbars=yes,resizable=yes,resizable=yes");}catch($L){winAAA=window.open($K,"_blank","height="+height+",width="+width+",left="+$y+",top="+$z+",status=yes,toolbar=yes,menubar=yes,location=yes,scrollbars=yes,resizable=yes,resizable=yes");};if(winAAA!=null){if(winAAA.focus){winAAA.focus()}}}};function windowOpenAffiliatesParent($K){var width=g_windowSizeAffiliates[0];var height=g_windowSizeAffiliates[1];var $y=(screen.width/ 2)-(width/ 2);var $z=(screen.height/ 2)-(height/ 2);closeWindow(winAAA);try{winAAA=window.open($K,"AAA","height="+height+",width="+width+",left="+$y+",top="+$z+",status=yes,toolbar=yes,menubar=yes,location=yes,scrollbars=yes,resizable=yes,resizable=yes");}catch($L){winAAA=window.open($K,"_blank","height="+height+",width="+width+",left="+$y+",top="+$z+",status=yes,toolbar=yes,menubar=yes,location=yes,scrollbars=yes,resizable=yes,resizable=yes");};if(winAAA!=null){if(winAAA.focus){winAAA.focus()}}};function windowOpenLiveChatParent($K,$x){closeWindow(winCCC);try{winCCC=window.open($K,"CCC",$x+",status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,resizable=yes");}catch($L){winCCC=window.open($K,"_blank",$x+",status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,resizable=yes");};if(winCCC!=null){if(winCCC.focus){winCCC.focus()}}};function windowOpenGamesParent($K,$x,$N){if($N==true){window.open($K,"_blank",$x+",status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,resizable=yes");}else{closeWindow(winGGG);try{winGGG=window.open($K,"GGG",$x+",status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,resizable=yes");}catch($L){winGGG=window.open($K,"",$x+",status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,resizable=yes");};if(winGGG!=null){if(winGGG.focus){winGGG.focus()}}}};function windowOpenExtra($K,$x){if(typeof(top.windowOpenExtraParent)!="undefined"&&GetBrowser()!="OPERA"&&GetBrowser()!="IE"){top.windowOpenExtraParent($K,$x);}else{closeWindow(winEEE);try{winEEE=window.open($K,"EEE",$x+",status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,resizable=yes");}catch($L){winEEE=window.open($K,"_blank",$x+",status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,resizable=yes");};if(winEEE!=null){if(winEEE.focus){winEEE.focus()}}}};function windowOpenExtraParent($K,$x){closeWindow(winEEE);try{winEEE=window.open($K,"EEE",$x+",status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,resizable=yes");}catch($L){winEEE=window.open($K,"_blank",$x+",status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,resizable=yes");};if(winEEE!=null){if(winEEE.focus){winEEE.focus()}}};function windowOpenLiveStreaming($K,$x){if(typeof(top.windowOpenLiveStreamingParent)!="undefined"&&GetBrowser()!="OPERA"&&GetBrowser()!="IE"){top.windowOpenLiveStreamingParent($K,$x);}else{closeWindow(winLLL);try{winLLL=window.open($K,"LLL",$x+",status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,resizable=yes");}catch($L){winLLL=window.open($K,"_blank",$x+",status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,resizable=yes");};if(winLLL!=null){if(winLLL.focus){winLLL.focus()}}}};function windowOpenLiveStreamingParent($K,$x){closeWindow(winLLL);try{winLLL=window.open($K,"LLL",$x+",status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,resizable=yes");}catch($L){winLLL=window.open($K,"_blank",$x+",status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,resizable=yes");};if(winLLL!=null){if(winLLL.focus){winLLL.focus()}}};function ExtraStreaming($O,$P,TD,$Q){if(top.winExtra){if(!top.winExtra.closed){try{top.winExtra.close();}catch(e){}}};var h=640;var w=795;var $y=(screen.width/ 2)-(w/ 2);var $z=(screen.height/ 2)-(h/ 2);var $K='';var $R='';if((typeof TD=='undefined')||(TD==null)){TD='';};if($P!=1){$R='LiveStreaming%2cLive+Horse+Racing';}else{$R='ResultsAndArchive%252cRacingArchive';};if((typeof $Q!=='undefined')&&($Q!==null)&&($Q!=='undefined')){$K='http://'+$Q+'/'+'sitetr.asp?rul=../xtra365/xtra365.aspx?ContentPath='+$R+'&fixtureid='+$O+'&td='+TD+'&rn='+GetRndNum();}else{$K='sitetr.asp?rul=../xtra365/xtra365.aspx?ContentPath='+$R+'&fixtureid='+$O+'&td='+TD+'&rn='+GetRndNum();};top.winExtra=window.open($K,"exstrm","height="+h+",width="+w+",status=yes,toolbar=no,menubar=no,location=no,left="+$y+",top="+$z+",scrollbars=yes,resizable=yes");};function launchRules($H,$S,$T,$U){var qs="?ibpid="+$H+"&sg="+$S+"&sctid=1&prd="+$T+"&lng="+$U;windowOpen($H,true,(UseSSL()?"https://":"http://")+getURL($H)+qs,"height="+g_windowSizeLarge[1]+",width="+g_windowSizeLarge[0]+",left=200,top=70");};function GetRndNum(){var oD=new Date();var x=2134*(oD.getDate()+oD.getMonth()+oD.getFullYear()+oD.getHours()+oD.getMinutes())*(oD.getSeconds()+1)*(oD.getMilliseconds()+1);x=Math.floor(Math.random()*x);return x;};function GetGLBVer(){return 'globals_vA009cr';};


