
var DocLoaded=0;var DoSubmitForm=0;var lgm=null;var WhichDiv;var TrackOpenClose='';var maxCoupons=8;var silksNotSet=false;var resultsPageId=6000;var m_blnBetSlip=false;var reqFlashVersion=7;var g_RefershSlip=false;var g_cpnSelected='';var g_cpnSelectedCount=0;var g_cintSportSlip=1;var g_cintFinSlip=2;var g_MaxSelections=14;function rollon(event){if(typeof(GetBrowser)=="function"){var blnIE=('IE'==GetBrowser()?true:false);if(blnIE){event=window.event;};if(!event){return;};var $h=(blnIE)?event.toElement:event.target;switch($h.className){case 'di':$h.className="hdi";break;case 'ccn':$h.className="hccn";break;case 'ccn br_w':$h.className="hccn br_w";break;case 'ccn xyz':$h.className="hccn xyz";break;case 'dcn':$h.className="hdcn";break;case 'ecn':$h.className="hecn";break;case 'ecn_dt':$h.className="hecn_dt";break;case 'dpb':$h.className="hdpb";break;case 'gpmk':$h.className="gpmkh";break;default:break;};if($h.className.indexOf('dcpnl')>=0){$h.className=$h.className.replace(/dcpnl/g,'dcpnly');if((typeof $h.nextSibling!=='undefined')&&($h.nextSibling!==null)&&(typeof $h.nextSibling.className!=='undefined')){$h.nextSibling.className=$h.nextSibling.className.replace(/dcpnr/g,'dcpnry');}else{if((typeof $h.nextSibling!=='undefined')&&($h.nextSibling!==null)&&(typeof $h.nextSibling.nextSibling!=='undefined')&&($h.nextSibling.nextSibling!==null)&&(typeof $h.nextSibling.nextSibling.className!=='undefined')){$h.nextSibling.nextSibling.className=$h.nextSibling.nextSibling.className.replace(/dcpnr/g,'dcpnry');}}}else if($h.className.indexOf('dcpnr')>=0){$h.className=$h.className.replace(/dcpnr/g,'dcpnry');if((typeof $h.previousSibling!=='undefined')&&($h.previousSibling!==null)&&(typeof $h.previousSibling.className!=='undefined')){$h.previousSibling.className=$h.previousSibling.className.replace(/dcpnl/g,'dcpnly');}else{if((typeof $h.previousSibling!=='undefined')&&($h.previousSibling!==null)&&(typeof $h.previousSibling.previousSibling!=='undefined')&&($h.previousSibling.previousSibling!==null)&&(typeof $h.previousSibling.previousSibling.className!=='undefined')){$h.previousSibling.previousSibling.className=$h.previousSibling.previousSibling.className.replace(/dcpnl/g,'dcpnly');}}}else if($h.className.indexOf('dcpngr')>=0){$h.className=$h.className.replace(/dcpngr/g,'dcpngry');if((typeof $h.previousSibling!=='undefined')&&($h.previousSibling!==null)&&(typeof $h.previousSibling.className!=='undefined')){$h.previousSibling.className=$h.previousSibling.className.replace(/dcpng/g,'dcpngy');}else{if((typeof $h.previousSibling!=='undefined')&&($h.previousSibling!==null)&&(typeof $h.previousSibling.previousSibling!=='undefined')&&($h.previousSibling.previousSibling!==null)&&(typeof $h.previousSibling.previousSibling.className!=='undefined')){$h.previousSibling.previousSibling.className=$h.previousSibling.previousSibling.className.replace(/dcpng/g,'dcpngy');}}}else if($h.className.indexOf('dcpng')>=0){$h.className=$h.className.replace(/dcpng/g,'dcpngy');if((typeof $h.nextSibling!=='undefined')&&($h.nextSibling!==null)&&(typeof $h.nextSibling.className!=='undefined')){$h.nextSibling.className=$h.nextSibling.className.replace(/dcpngr/g,'dcpngry');}else{if((typeof $h.nextSibling!=='undefined')&&($h.nextSibling!==null)&&(typeof $h.nextSibling.nextSibling!=='undefined')&&($h.nextSibling.nextSibling!==null)&&(typeof $h.nextSibling.nextSibling.className!=='undefined')){$h.nextSibling.nextSibling.className=$h.nextSibling.nextSibling.className.replace(/dcpngr/g,'dcpngry');}}};if(($h.className.indexOf('xwb')>=0)||($h.className.indexOf('xgb')>=0)){var $i=$h.parentNode;var $j=$i.childNodes.length;var $k=$i.childNodes[0];for(var i=0;i<$j;i++){if((typeof $k!=='undefined')&&($k!==null)){if((typeof $i.childNodes[i]!=='undefined')&&(typeof $i.childNodes[i].className!=='undefined')){$i.childNodes[i].className=$i.childNodes[i].className.replace(/xwb/g,'xyb');$i.childNodes[i].className=$i.childNodes[i].className.replace(/xgb/g,'xgyb');}}}};if(typeof $h.id!=="undefined"||$h.id!==""){var $l;var $m;if($h.getAttribute){$l=$h.getAttribute('tooltip')?$h.getAttribute('tooltip'):0;$m=$h.getAttribute('pos')?$h.getAttribute('pos'):0;if(1==$l||2==$l||3==$l||4==$l){if(blnIE){div2(event,$h.id,$l,$m,blnIE,event);}else{div2($h,$h.id,$l,$m,blnIE,event);}}}}}};document.onmouseover=rollon;function rolloff(event){if(typeof(GetBrowser)=="function"){var blnIE=('IE'==GetBrowser()?true:false);if(blnIE){event=window.event;};if(!event){return;};var $h=(blnIE)?event.fromElement:event.target;switch($h.className){case 'hdi':$h.className="di";break;case 'hccn':$h.className="ccn";break;case 'hccn br_w':$h.className="ccn br_w";break;case 'hccn xyz':$h.className="ccn xyz";break;case 'hdcn':$h.className="dcn";break;case 'hecn':$h.className="ecn";break;case 'hecn_dt':$h.className="ecn_dt";break;case 'hdpb':$h.className="dpb";break;case 'gpmkh':$h.className="gpmk";break;default:break;};if($h.className.indexOf('dcpnly')>=0){$h.className=$h.className.replace(/dcpnly/g,'dcpnl');if((typeof $h.nextSibling!=='undefined')&&($h.nextSibling!==null)&&(typeof $h.nextSibling.className!=='undefined')){$h.nextSibling.className=$h.nextSibling.className.replace(/dcpnry/g,'dcpnr');}else{if((typeof $h.nextSibling!=='undefined')&&($h.nextSibling!==null)&&(typeof $h.nextSibling.nextSibling!=='undefined')&&($h.nextSibling.nextSibling!==null)&&(typeof $h.nextSibling.nextSibling.className!=='undefined')){$h.nextSibling.nextSibling.className=$h.nextSibling.nextSibling.className.replace(/dcpnry/g,'dcpnr');}}}else if($h.className.indexOf('dcpnry')>=0){$h.className=$h.className.replace(/dcpnry/g,'dcpnr');if((typeof $h.previousSibling!=='undefined')&&($h.previousSibling!==null)&&(typeof $h.previousSibling.className!=='undefined')){$h.previousSibling.className=$h.previousSibling.className.replace(/dcpnly/g,'dcpnl');}else{if((typeof $h.previousSibling!=='undefined')&&($h.previousSibling!==null)&&(typeof $h.previousSibling.previousSibling!=='undefined')&&($h.previousSibling.previousSibling!==null)&&(typeof $h.previousSibling.previousSibling.className!=='undefined')){$h.previousSibling.previousSibling.className=$h.previousSibling.previousSibling.className.replace(/dcpnly/g,'dcpnl');}}}else if($h.className.indexOf('dcpngy')>=0){$h.className=$h.className.replace(/dcpngy/g,'dcpng');if((typeof $h.nextSibling!=='undefined')&&($h.nextSibling!==null)&&(typeof $h.nextSibling.className!=='undefined')){$h.nextSibling.className=$h.nextSibling.className.replace(/dcpngry/g,'dcpngr');}else{if((typeof $h.nextSibling!=='undefined')&&($h.nextSibling!==null)&&(typeof $h.nextSibling.nextSibling!=='undefined')&&($h.nextSibling.nextSibling!==null)&&(typeof $h.nextSibling.nextSibling.className!=='undefined')){$h.nextSibling.nextSibling.className=$h.nextSibling.nextSibling.className.replace(/dcpngry/g,'dcpngr');}}}else if($h.className.indexOf('dcpngry')>=0){$h.className=$h.className.replace(/dcpngry/g,'dcpngr');if((typeof $h.previousSibling!=='undefined')&&($h.previousSibling!==null)&&(typeof $h.previousSibling.className!=='undefined')){$h.previousSibling.className=$h.previousSibling.className.replace(/dcpngy/g,'dcpng');}else{if((typeof $h.previousSibling!=='undefined')&&($h.previousSibling!==null)&&(typeof $h.previousSibling.previousSibling!=='undefined')&&($h.previousSibling.previousSibling!==null)&&(typeof $h.previousSibling.previousSibling.className!=='undefined')){$h.previousSibling.previousSibling.className=$h.previousSibling.previousSibling.className.replace(/dcpngy/g,'dcpng');}}};if(($h.className.indexOf('xyb')>=0)||($h.className.indexOf('xgyb')>=0)){var $i=$h.parentNode;var $j=$i.childNodes.length;var $k=$i.childNodes[0];for(var i=0;i<$j;i++){if((typeof $k!=='undefined')&&($k!==null)){if((typeof $i.childNodes[i]!=='undefined')&&(typeof $i.childNodes[i].className!=='undefined')){$i.childNodes[i].className=$i.childNodes[i].className.replace(/xyb/g,'xwb');$i.childNodes[i].className=$i.childNodes[i].className.replace(/xgyb/g,'xgb');}}}};if(typeof $h.id!=="undefined"||$h.id!==""){if($h.getAttribute){var $l=$h.getAttribute('tooltip')?$h.getAttribute('tooltip'):0;if($l){hDiv();}}}}};document.onmouseout=rolloff;function SClr(o,s,f,r){var oN=Number(s)==1?o.nextSibling:o.previousSibling;if((typeof oN!=='undefined')&&(oN!==null)){if(oN.className=f){oN.className=r;}}};function gTP($n){CookieTest();var $o=$n.split(";");snp($o[0]);document.frmMain.txtTransSelection.value=$o[1];};function gBC($n){CookieTest();var $o=$n.split("#");var $p;var $q;if(Number($o[2])>0){$p=document.getElementById('bsID');$q=document.getElementById('bsTTID');if($p!==null){$p.value=$o[0];};if($q!==null){$q.value=$o[1];};var $r=GetScrennWidth();var $s=GetScrennTop();var $t='9110';if(9096==Number(document.frmMain.txtCPID.value)){$t='9196';};if(Number($o[3])>0){gP($t);}else{windowOpen($t,true,"http://"+document.frmMain.txtURL.value+"?popmembers="+$t+"&br="+document.frmMain.txtbetslipreference.value,"height="+g_windowSizeLarge[1]+",width="+g_windowSizeLarge[0]+",left="+$r+",top="+$s);}}else{document.frmMain.txtBetSlipID.value=$o[0];document.frmMain.txtTranType.value=$o[1];$p=document.getElementById('bsID');$q=document.getElementById('bsTTID');if($p!==null){$p.value=$o[0];};if($q!==null){$q.value=$o[1];};gP(9020);}};function gBk($n){location=$n;};function CKBS(){if(IsBSExists()){var $u=top.frames['bslip'];$u.focus();if(!$u.CheckProcessing()){return false;}};return true;};function gLo($v,TD){if(IsBSExists()){$w=SOIsFinancials();if(($w!==null)&&(Number($w)>=0)){hideFinancialsSlip();}else{if(!SOClS()){return false;}}};CookieTest();ClosePopParent();cPC();SetCookie("session","processform",1);snp($v);document.frmMain.txtCurrentPageID.value=$v;var $x=top.frames['ifunds'];if(($x!==null)&&(typeof $x!=='undefined')){$x.location='./betfunds-close.asp?rn='+GetRndNum();};document.frmMain.method="post";var $y=UseSSL();if($y){document.frmMain.action=makeURLSSL(document.frmMain.action);}else{document.frmMain.action="http://"+document.frmMain.txtURL.value;};if(typeof(gWindow)!=="undefined"&&gWindow!==null){if(gWindow.closed==false){if(mlConfirm(100)===true){gWindow.close();gWindow=null;}else{return false;}}};setTD(TD);document.frmMain.submit();return true;};function gP($v,$z,$A){if(CheckState()!==true){return false;};if((Number($v)!==9611)&&(typeof $A=='undefined')){if(!(IsSlipCompatible(g_cintSportSlip))){return false;}};if($v==-999){window.location="../default.htm";return true;};if($v==-999999){window.close();return true;};CookieTest();setTD($z);if(Number($v)==2200){JoinNow();};if(Number($v)==2110){if(ChckUserLoged()!==true){return false;}};if(Number($v)==4710||Number($v)==4720){if(arguments.length>1){if(arguments[1]==-1){$B=document.getElementById('txtLS1');if((typeof($B)!=='undefined')&&(null !==$B)){$B.value='';}}}};if(GetNavigationPB("classificationid",1)=='144'){document.getElementById('txtClassID').value=144;};snp($v);if($v>0){SetFormPost($v);};SetAction();if(Number($v)==1010||Number($v)==1012||Number($v)==1014){$v=1010;if(IsBSExists()){if(!SOSlipState()){return false;}}};if($v>0){SubmitForm();}else{SubmitForm(document.frmMain);};return true;};function nMBP(){CookieTest();for(i=0;i<document.frmMain.myMenu.length;i++){if(document.frmMain.myMenu[i].checked){snp(document.frmMain.myMenu[i].value);SubmitForm();}}};function cOT($C){if(CheckState()!==true){return;};document.frmMain.txtNPID.value=0;CookieTest();var $D=$C;var $E=document.getElementById('txtDOT');if(($E!==null)&&(typeof $E!=='undefined')){$E.value=$D;var $F=document.getElementById('tOCG');if($F!==null){$F.value='1';}};SetCookie("session","oty",$D);snp(-1);SubmitForm();RefreshSlip('0',$D);reloadBSF($D);};function mHP($C){CookieTest();var id=$C.options[$C.selectedIndex].value;snp(id);SubmitForm();};function aBet($G,$H,$I,$J){if(CheckState()!==true){return false;};if(typeof $H=='undefined'){if(!(IsSlipCompatible(g_cintSportSlip))){return false;}};if(typeof $I=='undefined'){$I="0";};var $K=top.getObjDocHandle('bslip');$L=false;if($K!==null){var $M=$K.getElementById('chkRtnSlns');$L=($M!==null?true:false);};$G=FrmtBS($G);if(!SOValidCombi(g_cstrTypeNormal)){return false;};if(SONotExists($G,g_cstrTypeNormal,true)){var $N=SOGetCount(g_cstrTypeNormal);if(Number($N)<g_MaxSelections){var $O=SOGetSlipObj();if(($O!==null)&&(typeof $O!=='undefined')){var $P=(($L===false)?SOGetAllSingles(g_cstrTypeNormal,false):'');$P=$P+$G;var $Q=$K.frmMain.txtCPID.value;if(typeof $M!=='undefined'&&$M!==null){$Q=g_cintPIDStandard;$K.frmMain.txtCPID.value=g_cintPIDStandard;};var $R=$K.getElementById('txtBSMS');if(!$L){SOCloseMultiOption();if(($R!==null)&&(Number($I)==1)){if((typeof $J!=='undefined')&&($J.length>0)){$R.value='1';SOSetMulti($O,$J);}}}else{if($R!==null){$R.value='0';}};SOSetNormal($O,$P);SOSetCast($O,SOGetCastData(g_cstrTypeNormal,false));SOSetType($O,$Q);SOSetMultiButtonState($O,$I);SOSetFunction($O,g_cintFullRefreshBetSlip);SOProcessSlip($O);LoadBS();}}else{mlAlert(2);return false;}};return true;};function betN($G){aBet($G);};function aSl($S,$T){highlightselection($S);};function aSNC($S,$T){var $U;var $V;var $W;var $X;var $G;if($T==3){$X=$S.name;$G=$X.substring(7,$X.length);$X=$X.substring(0,7);$U=eval("document.frmMain.chkHome"+$G);$V=eval("document.frmMain.chkDraw"+$G);$W=eval("document.frmMain.chkAway"+$G);};if($T==2){$X=$S.name;$G=$X.substring(7,$X.length);$X=$X.substring(0,7);$U=eval("document.frmMain.chkHome"+$G);$W=eval("document.frmMain.chkAway"+$G);};highlightselection($S);};function mS($Y){if(CheckState()!==true){return false;};if(!(IsSlipCompatible(g_cintSportSlip))){return false;};var $K=top.getObjDocHandle('bslip');var $Z=true;var $L=false;var sData='';var $00=false;var $01='';var $02='';var $03='';var $O=SOGetSlipObj();if($K!==null){var $M=$K.getElementById('chkRtnSlns');$L=$M!==null?true:false;if(($M!==null)&&(!$M.checked)){$Z=false;}};var $04=false;var $05=document.getElementById('chkCouponSelected');if($05!==null){$05=$05.value;if($05.indexOf('#73#')>0){$04=true;}};if((4520==document.frmMain.txtCurrentPageID.value)||(($04)&&(4999==document.frmMain.txtCurrentPageID.value))){$03=ProcessUS(1);$01=ProcessUS();$02=ProcessCast();if(($03.length>0)&&($01.length>0)){$03="";};if($03.length>0){if(!SOValidCombi(g_cstrTypeNormal)){return false;};$01="";$02="";SOSetUSHorse($O,"");$03=SOGetAllSingles(g_cstrTypeNormal,false)+$03;SOSetCast($O,"");}else{if(!SOValidCombi(g_cstrTypeUS)){return false;};$03="";SOSetNormal($O,"");$01=SOGetAllSingles(g_cstrTypeUS,false)+$01;$02=SOGetCastData(g_cstrTypeUS,false)+$02;};ResetUSHorseCoupon();SOSetUSHorse($O,$01);SOSetNormal($O,$03);SOSetCast($O,$02);}else if(4525==document.frmMain.txtCurrentPageID.value){var $06=Number(document.getElementById('txtClassID').value)==4?g_cstrTypeETote:g_cstrTypeTote;if(!SOValidCombi($06)){return false;};$01=ProcessTote($06);$02=ProcessCast();ResetToteCoupon();if(document.frmMain.chkBanker){vTB(document.frmMain.chkBanker);};$01=SOGetAllSingles($06,false)+$01;$02=SOGetCastData($06,false)+$02;if($06==g_cstrTypeETote){SOSetETote($O,$01);}else{SOSetTote($O,$01);};SOSetCast($O,$02);}else if(4530==document.frmMain.txtCurrentPageID.value||4535==document.frmMain.txtCurrentPageID.value){if(!SOValidCombi(g_cstrTypeTote)){return false;};$02=ProcessPot();$01=SOGetAllSingles(g_cstrTypeTote,false)+$01;$02=SOGetCastData(g_cstrTypeTote,false)+$02;SOSetTote($O,$01);SOSetCast($O,$02);}else if(4521==document.frmMain.txtCurrentPageID.value){if(!SOValidCombi(g_cstrTypeUS)){return false;};$02=ProcessPot();$01=SOGetAllSingles(g_cstrTypeUS,false)+$01;$02=SOGetCastData(g_cstrTypeUS,false)+$02;SOSetUSHorse($O,$01);SOSetCast($O,$02);}else if(4522==document.frmMain.txtCurrentPageID.value){if(!SOValidCombi(g_cstrTypeETote)){return false;};$02=ProcessPot();$01=SOGetAllSingles(g_cstrTypeETote,false)+$01;$02=SOGetCastData(g_cstrTypeETote,false)+$02;SOSetETote($O,$01);SOSetCast($O,$02);}else{if(!SOValidCombi(g_cstrTypeNormal)){return false;};$02=ProcessCast();var i;var $07=['chkE','chkT','chkS','chk2','chk3','chk4'];var $08=0;for(i=0;i<$07.length;i++){SetElementDisabledState($07[i],false);SetElementCheckedState($07[i],false);};var $N=SOGetCount(g_cstrTypeNormal);for(i=0;i<document.frmMain.elements.length;i++){var $09=document.frmMain.elements[i].name;if($09.substring(0,3)=="chk"){var $0a=document.frmMain.elements[i];if($0a.checked){if(($N+$08)<g_MaxSelections){var $0b=FrmtBS($0a.value);if(SONotExists($0b,g_cstrTypeNormal,false)){$01=$01+$0b+';';$08=$08+1;}else{$00=true;};$0a.checked=false;}else{mlAlert(2);break;}}}};if($00){mlAlert(53);};$01=SOGetAllSingles(g_cstrTypeNormal,false)+$01;$02=SOGetCastData(g_cstrTypeNormal,false)+$02;SOSetNormal($O,$01);SOSetCast($O,$02);};if(($03.length!==0)||($01.length!==0)||($02.length!==0)){if(!$L){SOCloseMultiOption();}else{var $R=$K.getElementById('txtBSMS');if($R!==null){$R.value='0';}};if($02.length!==0){SOSetType($O,g_cintPIDStandard);$K.frmMain.txtCPID.value=g_cintPIDStandard;}else{var $Q=$K.frmMain.txtCPID.value;if(typeof $M!=='undefined'&&$M!==null){$Q=g_cintPIDStandard;$K.frmMain.txtCPID.value=g_cintPIDStandard;};SOSetType($O,$Q);};SOSetMultiButtonState($O,'0');SOSetFunction($O,g_cintFullRefreshBetSlip);SOProcessSlip($O);LoadBS();};return true;};function FrmtBS($0c){$0c=$0c.replace(/pendingtype=/g,'pt=');$0c=$0c.replace(/#selectionorder=/g,'#so=');$0c=$0c.replace(/#odds=/g,'#o=');$0c=$0c.replace(/#fixture=/g,'#f=');$0c=$0c.replace(/#fixturepart=/g,'#fp=');$0c=$0c.replace(/#classificationid=/g,'#c=');$0c=$0c.replace(/#line=/g,'#ln=');$0c=$0c.replace(/#Line=/g,'#ln=');$0c=$0c.replace(/#fpidplayer=/g,'#pid=');$0c=$0c.replace(/#fpidmatch=/g,'#mid=');return $0c;};function mSB(){var $0d=document.getElementsByTagName('input');var sC=0;for(var i=0;i<$0d.length;i++){if($0d[i].type=='checkbox'){if($0d[i].checked){sC=sC+1;}}};unhighlightallselection(document.frmMain,1);if(!CheckState()){return false;};if(!CookieTest()){return false;};if(mS(sC)){return true;}};function OpenCertDetails($0e){window.open($0e,"anew",$0f="height=400,width=450,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,directories=no,status=yes");};function pD(){CookieTest();var $0g="status=no,toolbar=no,menubar=no,resizable=yes,location=yes,alwaysRaised=yes";var $0e="https://www.paypal.com/cgi-bin/webscr?cmd=_ext-enter&redirect_cmd=_xclick";var $0h="&business=customerservices@bet365usa.com&item_name=Bet365 Deposit&no_note=1&no_shipping=1";var $0i="&amount="+document.all.txtDeposit.value;var w=window.open(($0e+$0h+$0i),"bet365popup",$0g);snp(2260);SubmitForm();};function scorecastUpdateOdds($C){var $0j=$C.options[$C.selectedIndex].value.split("%");window.document.frmMain.txtParticipantCode.value=$0j[0];window.document.frmMain.txtOdds.value=$0j[1];};function sP($0k,$0l){$0m="popupid="+$0k;$0n=1070;var $0o="";if(typeof $0l!='undefined'){$0o="&specialsvents="+$0l;};$0p="popup.asp?popup=true&pageid="+$0n+"&"+$0m+$0o+'&rn='+GetRndNum();openPopUpWin($0p,g_windowSizeLarge[0],400);return true;};function pU($v){$0q="languageid="+GetCookie("settings","languageid");$0r="oddstypeid="+GetCookie("settings","oddstypeid");$0s="sitetypeid="+GetCookie("settings","sitecontentid");$0p="popup.asp?popup=true&pageid="+$v+"&"+$0q+"&"+$0r+"&"+$0s+'&rn='+GetRndNum();openPopUpWin($0p,610,450);};function openPopUpWin($0t,$0u,$0v){window.open($0t,"anew",$0f="toolbar=0,scrollbars=1,location=0,status=0,menubar=0,resizable=0,width="+$0u+",height="+$0v);};function nMP($C){CookieTest();var id=$C.options[$C.selectedIndex].value;snp(id);gP(id);};function updateNavigationPB($0w,$0x){$0w+="=";var $0y=document.frmMain.txtNavigationPB.value;var $0z=$0y.indexOf($0w);var $0A=$0y.indexOf(";",$0z);var $0B=$0y.substring($0z,$0A);$0y=Replace($0y,$0B,$0w+$0x);document.frmMain.txtNavigationPB.value=$0y;};function MM_swapImgRestore(){var i;var x;var a=document.MM_sr;for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++){x.src=x.oSrc;}};function MC(){var $0C=new Array(31,28,31,30,31,30,31,31,30,31,30,31);var $0D=document.frmMain.cboDay.selectedIndex;var $0E=document.frmMain.cboMonth.selectedIndex;var $0F=document.frmMain.cboYear.options[document.frmMain.cboYear.selectedIndex].value;var $0G=$0C[$0E];if($0E==1){if(IsLeapYear($0F)===true){$0G=29;}};document.frmMain.cboDay.length=0;document.frmMain.cboDay.length=$0G;for(i=0;i<$0G;i++){document.frmMain.cboDay.options[i].text=String(i+1);};if($0D>($0G-1)){$0D=$0G-1;};document.frmMain.cboDay.selectedIndex=$0D;};function MC2($0H,$0I,$0J){var $0C=new Array(31,28,31,30,31,30,31,31,30,31,30,31);var $0D=$0H.selectedIndex;var $0E=$0I.selectedIndex;var $0F=$0J.options[$0J.selectedIndex].value;var $0G=$0C[$0E];if($0E==1){if(IsLeapYear($0F)===true){$0G=29;}};$0H.length=0;$0H.length=$0G;for(i=0;i<$0G;i++){$0H.options[i].text=String(i+1);};if($0D>($0G-1)){$0D=$0G-1;};$0H.selectedIndex=$0D;};function IsLeapYear($0K){if($0K%400===0){return true;};if(($0K%4===0)&&($0K%100!==0)){IsLeapYear=true;};return false;};function uNC1($C){var $0L="uNC1";CookieTest();var $0M=$C.options[$C.selectedIndex].value;updateSiteNavigationPB("c1text",$0M);SubmitForm();};function gPC($v,$0N,$0O,$0P,$0Q,$0R,$0S,$0T,$0U,$0V,$0W,TD){if(CheckState()!==true){return;};CookieTest();snp($v);updateSiteNavigationPB("pagetemplateid",$v);if((typeof $0W=="undefined")||(Number($0W)==0)){updateSiteNavigationPB("c1id",$0O);updateSiteNavigationPB("c1idtable",$0P);updateSiteNavigationPB("c2id",$0R);updateSiteNavigationPB("c2idtable",$0S);updateSiteNavigationPB("c3id",$0U);updateSiteNavigationPB("c3idtable",$0V);var $0X=document.getElementById('txtTOC');if((null !==$0X)&&(typeof $0X!=='undefined')){$0X.value='';}};updateSiteNavigationPB("c1idselected",$0O);updateSiteNavigationPB("c1idtableselected",$0P);updateSiteNavigationPB("c2idselected",$0R);updateSiteNavigationPB("c2idtableselected",$0S);updateSiteNavigationPB("c3idselected",$0U);updateSiteNavigationPB("c3idtableselected",$0V);setTD(TD);SubmitForm();};function gPC2($v,$0N,$0O,$0P,$0Q,$0R,$0S,$0T,$0U,$0V,$0Y,$0Z,TD){if($v===resultsPageId){getResults($0Y,$0O,$0R,TD);}else{document.frmMain.txtClassID.value=$0Y;updateSiteNavigationPB("classificationid",$0Y);updateSiteNavigationPB("plbtid","0");if(typeof $0Z=="undefined"){$0Z=GetNavigationPB('sectionid');if($0Z===0){$0Z=1;}};if($0Z!='-1'){updateSiteNavigationPB("sectionid",$0Z);};gPC($v,$0N,$0O,$0P,$0Q,$0R,$0S,$0T,$0U,$0V,0,TD);}};function gPCS($10){if(CheckState()!==true){return;};var $0L="gPCS";CookieTest();var $11=$10.split("#");document.frmMain.txtClassID.value=$11[8];gPC($11[0],$11[1],$11[2],$11[3],$11[4],$11[5],$11[6],$11[7]);};function gSL($12,$13,$14,$15,$16,$17,$18,$19,$1a,$1b,$1c,TD){document.frmMain.txtClassID.value=$12;var $1d=(parseFloat(document.frmMain.txtFlashVersion.value)>=reqFlashVersion);var $1e=(document.frmMain.txtFlashEnable.value=="true");if($16==5&&$1d&&$1e){document.getElementById("FlashEvent").value=String($15)+'-'+String($16)+'-'+String($18)+'-'+String($19)+'-'+String($12);document.getElementById("FlashDiary").value="";LaunchInPlay2(TD);}else{if(($12==2||$12==73)&&($1b==1||$1b==2||$1b==3)){updateSiteNavigationPB("sectionid",$1b);$1b=-1;};if((arguments.length>11)&&(typeof arguments[12]!=='undefined')&&(typeof arguments[12]!==null)&&(Number(arguments[12])>0)){updateSiteNavigationPB("sectionid",arguments[12]);};gPC($13,$14,$15,$16,$17,$18,$19,$1a,$1b,$1c,0,TD);}};function gCFP($10){if(CheckState()!==true){return;};CookieTest();var $11=$10.split("#");if((typeof self.opener==='undefined')||(self.opener===null)){document.frmMain.txtClassID.value=$11[7];snp($11[0]);updateSiteNavigationPB("pagetemplateid",$11[0]);updateSiteNavigationPB("c1id",$11[1]);updateSiteNavigationPB("c1idtable",$11[2]);updateSiteNavigationPB("c2id",$11[3]);updateSiteNavigationPB("c2idtable",$11[4]);updateSiteNavigationPB("c3id",$11[5]);updateSiteNavigationPB("c3idtable",$11[6]);updateSiteNavigationPB("cardcouponid",$11[8]);updateSiteNavigationPB("classificationid",$11[7]);updateSiteNavigationPB("c1idselected",$11[1]);updateSiteNavigationPB("c1idtableselected",$11[2]);updateSiteNavigationPB("c2idselected",$11[3]);updateSiteNavigationPB("c2idtableselected",$11[4]);document.frmMain.submit();}else{self.opener.document.frmMain.txtClassID.value=$11[7];snp($11[0],true);updateParentSiteNavigationPB("pagetemplateid",$11[0]);updateParentSiteNavigationPB("c1id",$11[1]);updateParentSiteNavigationPB("c1idtable",$11[2]);updateParentSiteNavigationPB("c2id",$11[3]);updateParentSiteNavigationPB("c2idtable",$11[4]);updateParentSiteNavigationPB("c3id",$11[5]);updateParentSiteNavigationPB("c3idtable",$11[6]);updateParentSiteNavigationPB("cardcouponid",$11[8]);updateParentSiteNavigationPB("classificationid",$11[7]);updateParentSiteNavigationPB("c1idselected",$11[1]);updateParentSiteNavigationPB("c1idtableselected",$11[2]);updateParentSiteNavigationPB("c2idselected",$11[3]);updateParentSiteNavigationPB("c2idtableselected",$11[4]);self.opener.document.frmMain.submit();window.close();}};function updateParentSiteNavigationPB($0w,$0x){$0w+="=";var $0y=self.opener.document.frmMain.txtSiteNavigationPB.value;var $0z=$0y.indexOf($0w);var $0A=$0y.indexOf(";",$0z);var $0B=$0y.substring($0z,$0A);$0y=Replace($0y,$0B,$0w+$0x);self.opener.document.frmMain.txtSiteNavigationPB.value=$0y;};function gPCC($C){if(CheckState()!==true){return;};var $11;var $1f=new Array(0,0,0);var $1g=new Array(0,0,0);var $1h=new Array(0,0,0);var $1i;var $1j="True";var $1k=false;var $1l=document.frmMain.txtClassID.value;CookieTest();var $1m=$C.name;if($C.name=="cboSportC1"){$1g=setC2();$1h=setC3();$1f[0]=$C.options[$C.selectedIndex].text;$11=$C.options[$C.selectedIndex].value.split("#");$1f[1]=$11[0];$1f[2]=$11[1];$1g[1]=0;$1g[2]=0;$1i=GetCookie("session","currentpageid");if($11.length>2){if($11[2]!==''){updateSiteNavigationPB("sectionid",$11[2]);}};var $1n=document.frmMain.cboSportC2;if(typeof $1n!=='undefined'){if((Number($1n.selectedIndex)>=0)&&(Number(document.frmMain.txtCPID.value)==4307)){var $1o=GetNavigationPB("fixtureid");var $1p=document.frmMain.txtClassID.value;if(($1o>0)&&($1p==8||$1p==12||$1p==16||$1p==17||$1p==18||$1p==19||$1p==75||$1p==78||$1p==83||$1p==36)){$1i="4307";}else{$1i="100000";}}};if(document.frmMain.txtClassID.value==9&&document.frmMain.txtCurrentPageID.value==4412){updateSiteNavigationPB("c3id",GetNavigationPB("c3idselected",0));updateSiteNavigationPB("c3idtable",GetNavigationPB("c3idtableselected",0));};updateSiteNavigationPB("plbtid",0);};if($C.name=="cboSportC2"){if(Number($C.options[$C.selectedIndex].value)===0){return false;};updateSiteNavigationPB("fixtureid",0);updateSiteNavigationPB("next24hr","false");$1j='undefined';$1f=setC1();$1g[0]=$C.options[$C.selectedIndex].text;$11=$C.options[$C.selectedIndex].value.split("#");$1g[1]=$11[0];$1g[2]=$11[1];if($1l=="9"&&$C.options[$C.selectedIndex].value.split("#").length>2){$1h[1]=$11[2];$1h[2]=$11[3];}else if($C.options[$C.selectedIndex].value.split("#").length>2){$1k=true;$1l=$11[2];$1h[1]=$11[3];$1h[2]=$11[4];if(($1l==2||$1l==73)&&$11[5]!=="undefined"){updateSiteNavigationPB("sectionid",$11[5]);}};$1i="100000";updateSiteNavigationPB("plbtid",0);};if($C.name=="cboPartBetTypes"){if($C.options[$C.selectedIndex].value===0){return false;};$1j='undefined';$1f=setC1();$1g=setC2();$1h[0]=$C.options[$C.selectedIndex].text;$11=$C.options[$C.selectedIndex].value.split("#");$1h[1]=$11[0];$1h[2]=$11[1];$1i="100000";};if(true==$1k){gPC2($1i,$1f[0],$1f[1],$1f[2],$1g[0],$1g[1],$1g[2],$1h[0],$1h[1],$1h[2],$1l);}else{if($1j=="True"){gPC($1i,$1f[0],$1f[1],$1f[2],$1g[0],$1g[1],$1g[2],$1h[0],$1h[1],$1h[2],$1j);}else{gPC($1i,$1f[0],$1f[1],$1f[2],$1g[0],$1g[1],$1g[2],$1h[0],$1h[1],$1h[2]);}}};function setC1(){var $11;var $1f=new Array(3);if(!bShowNav()){$1f[0]=GetSessionData('txtc1text');$1f[1]=GetSessionData('txtc1id');$1f[2]=GetSessionData('txtc1idtable');}else{var $C=document.frmMain.cboSportC1;$1f[0]=$C.options[$C.selectedIndex].text;$11=$C.options[$C.selectedIndex].value.split("#");$1f[1]=$11[0];$1f[2]=$11[1];};return $1f;};function setC2(){var $11;var $1f=new Array(3);if(!bShowNav()){$1f[0]=GetSessionData('txtc2text');$1f[1]=GetSessionData('txtc2id');$1f[2]=GetSessionData('txtc2idtable');}else{var $C=document.frmMain.cboSportC2;$1f[0]=$C.options[$C.selectedIndex].text;$11=$C.options[$C.selectedIndex].value.split("#");$1f[1]=$11[0];$1f[2]=$11[1];};return $1f;};function setC3(){var $C=document.frmMain.cboPartBetTypes;var $11;var $1f=new Array(3);if(typeof $C!="undefined"){$1f[0]=$C.options[$C.selectedIndex].text;$11=$C.options[$C.selectedIndex].value.split("#");$1f[1]=$11[0];$1f[2]=$11[1];}else{$1f[0]='';$1f[1]=0;$1f[2]=0;};return $1f;};function gTL($1i,$0O,$1q,$0R,$1r,$0U,$1s,$1t,$1u){if(typeof $1u!="undefined"){document.frmMain.txtClassID.value=$1u;};updateSiteNavigationPB("fixtureid",$1t);gPC($1i,'',$0O,$1q,'',$0R,$1r,'',$0U,$1s);};function gS($v,$1v,$1w,$1x,TD){if(CheckState()!==true){return;};var $0L="gS";if(stringLength($1v)<1){return false;};CookieTest();SetBState('0');SetMState('0');snp($v);document.frmMain.txtCpnSelected.value='';document.frmMain.txtClassID.value=$1v;updateSiteNavigationPB("classificationid",$1v);ResetNavigationPB($v);if($1w){updateSiteNavigationPB("splashoption","group");};if($1x){updateSiteNavigationPB("next24hr","true");};if($v===2095){if(top.IsLoaded('dataframeX')){getdivdata(2095);}}else{setTD(TD);SetFormPost($v);SubmitForm();}};function ResetNavigationPB($v){updateSiteNavigationPB("pagetemplateid",$v);updateSiteNavigationPB("c1text","");updateSiteNavigationPB("c2text","");updateSiteNavigationPB("c3text","");updateSiteNavigationPB("challengeid",0);updateSiteNavigationPB("plbtid",0);updateSiteNavigationPB("fixtureid",0);updateSiteNavigationPB("playerid",0);updateSiteNavigationPB("cardcouponid",0);updateSiteNavigationPB("c1textselect","");updateSiteNavigationPB("lotterycode","");updateSiteNavigationPB("c1id",0);updateSiteNavigationPB("c1idtable",0);updateSiteNavigationPB("c2id",0);updateSiteNavigationPB("c2idtable",0);updateSiteNavigationPB("c3id",0);updateSiteNavigationPB("c3idtable",0);updateSiteNavigationPB("c1idselected",0);updateSiteNavigationPB("c1idtableselected",0);updateSiteNavigationPB("c2idselected",0);updateSiteNavigationPB("c2idtableselected",0);updateSiteNavigationPB("c3idselected",0);updateSiteNavigationPB("c3idtableselected",0);updateSiteNavigationPB("splashoption","");updateSiteNavigationPB("couponselected","");updateSiteNavigationPB("next24hr","false");};function gF($v,$1y,$1z,$1A){if(CheckState()!==true){return;};var $0L="gF";CookieTest();snp($v);updateSiteNavigationPB("pagetemplateid",$v);updateSiteNavigationPB("plbtid",$1z);updateSiteNavigationPB("fixtureid",$1y);updateSiteNavigationPB("playerid",0);SubmitForm();};function gMM($v,$1y,$1z,$1B){if(CheckState()!==true){return;};var $0L="gF";CookieTest();snp($v);updateSiteNavigationPB("pagetemplateid",$v);updateSiteNavigationPB("c1text","Match Markets");updateSiteNavigationPB("plbtid",$1z);updateSiteNavigationPB("fixtureid",$1y);updateSiteNavigationPB("playerid",0);updateSiteNavigationPB("c1textselect","");if($1B=="Goalscorer"){updateSiteNavigationPB("c2text","Goalscorers");}else{updateSiteNavigationPB("c2text",$1B);};SubmitForm();};function gMB($v,$1y,$1C,$1D){if(CheckState()!==true){return;};var $0L="gMB";CookieTest();snp($v);updateSiteNavigationPB("pagetemplateid",$v);updateSiteNavigationPB("c1text",$1C);updateSiteNavigationPB("c2text",$1D);updateSiteNavigationPB("c3text","");updateSiteNavigationPB("plbtid",0);updateSiteNavigationPB("fixtureid",$1y);updateSiteNavigationPB("playerid",0);updateSiteNavigationPB("c1textselect","");SubmitForm();};function scorecastChangePlayer($C){if(CheckState()!==true){return;};CookieTest();$1E=$C.options[$C.selectedIndex].value;var $0x="playerid="+$1E;var $0y=document.frmMain.txtNavigationPB.value;var $0z=$0y.indexOf("playerid=");var $0A=$0y.indexOf(";",$0z);var $0B=$0y.substring($0z,$0A);$0y=Replace($0y,$0B,$0x);document.frmMain.txtNavigationPB.value=$0y;updateSiteNavigationPB("playerid",$1E);SubmitForm();};function updateSiteNavigationPB($0w,$0x){$0w+="=";var $0y=document.frmMain.txtSiteNavigationPB.value;var $0z=$0y.indexOf($0w);var $0A=$0y.indexOf(";",$0z);var $0B;if($0z<0){$0y=$0y+';'+$0w+$0x;}else if($0A<0){$0B=$0y.substring($0z);$0y=Replace($0y,$0B,$0w+$0x);}else{$0B=$0y.substring($0z,$0A);$0y=Replace($0y,$0B,$0w+$0x);};document.frmMain.txtSiteNavigationPB.value=$0y;};function GetNavigationPB($0w,$1F,$1G){if(typeof(document.frmMain.txtNavigationPB)=="undefined"){return "";};$0w+="=";var $0y;if($1F!=="undefined"&&$1F==1){$0y=document.frmMain.txtNavigationPB.value;}else{if((typeof $1G!=='undefined')&&($1G!==null)){$0y=$1G.value;}else{$0y=document.frmMain.txtSiteNavigationPB.value;}};var $0z=$0y.indexOf($0w);var $0A=$0y.indexOf(";",$0z);if($0z==-1){return 0;};var $0B=$0y.substring($0z,$0A);var $1H=$0B.split('=');if(Number($1H[1])>0){return Number($1H[1]);}else{return 0;}};function gM($C){if(CheckState()!==true){return;};if(Number($C.options[$C.selectedIndex].value)===0){return;};CookieTest();var $11=$C.options[$C.selectedIndex].value.split("#");snp($11[0]);updateSiteNavigationPB("pagetemplateid",$11[0]);if(GetSessionData('txtc1text')=="Match Markets"){updateSiteNavigationPB("fixtureid",$11[1]);updateSiteNavigationPB("challengeid",0);}else{return false;};updateSiteNavigationPB("c3text",$11[2]);SubmitForm();};function dIB($v,$1I,TD){if(CheckState()!==true){return;};if(arguments.length>2){$1v=arguments[2];document.frmMain.txtClassID.value=$1v;};$1J="plbtid="+document.frmMain.txtPLBTID.value;$1K="lastcouponpageid="+document.frmMain.txtCurrentPageID.value;$1L="c2idtable="+$1I;$1M="classificationid="+document.frmMain.txtClassID.value;$0p="./sitetr.asp?rul=popup.asp&popup=true&pageid="+$v+"&"+$1J+"&"+$1K+"&"+$1L+"&"+$1M+"&td="+TD+'&rn='+GetRndNum();window.open($0p,"anew",$0f="toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=520,height=250");};function dIB2($v,$1N,$1O,TD){if(CheckState()!==true){return;};$1J="";$1P="";if((typeof $v==='undefined')&&($v===0)){$v=5240;};if(typeof $1N!='undefined'){$1J="&plbtid="+Number($1N);};if((typeof $1O!='undefined')&&(Number($1O)>0)){$1P="&fixtureid="+Number($1O);};$0p="./sitetr.asp?rul=popup.asp&popup=true&pageid="+$v+$1J+$1P+'&td='+TD+'&rn='+GetRndNum();window.open($0p,"anew",$0f="toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=520,height=250");};function SetFormPost($v){var $y=UseSSL();if(($v==2200||$v==2210||$v==2130||$v==2180||$v==2000||$v==2100)||$y){$1Q="https://";}else{$1Q="http://";};document.frmMain.method="post";document.frmMain.action=$1Q+document.frmMain.txtURL.value;};function gotoMythical($C){var $0L="gotoMythical";CookieTest();var $11=$C.options[$C.selectedIndex].value.split("#");updateSiteNavigationPB("c1text",$11[0]);updateSiteNavigationPB("c2text",$11[1]);updateSiteNavigationPB("c3text",$11[2]);SubmitForm();};function gPaC($1R){if($1R.name=='cboOdds'){var $D=$1R.options[$1R.selectedIndex].value;var $E=document.getElementById('txtDOT');if(($E!==null)&&(typeof $E!=='undefined')){$E.value=$D;};SubmitForm();return;};var $11=$1R.options[$1R.selectedIndex].value.split("#");CookieTest();snp(4600);document.frmMain.txtClassID.value=$11[1];updateSiteNavigationPB("cardcouponid",$11[0]);updateSiteNavigationPB("classificationid",$11[1]);SubmitForm();};function CheckLogIn(sBS){return ChckUserLoged(sBS,22);};function ChckUserLoged($1S,$1T){var $1U=document.getElementById('txtLGN');if($1U!==null){if(Number($1U.value)==1){return true;}else{if(typeof $1S=="undefined"){if(typeof $1T!=="undefined"){mlAlert($1T);}else{mlAlert(36);}};return false;}};return false;};function gLi(){var $1i=2000;var $1V=null;document.frmMain.txtCurrentPageID.value=$1i;snp($1i);$1V=document.getElementById('txtMURL');UpdateTkn();if(($1V!==null)&&($1V.value.length>0)){$1V=$1V.value;}else{$1V=document.getElementById('txtURL');$1V=$1V.value;};if(typeof top.getIFObj!=='undefined'&&typeof top.getIFObj=='function'){var $1W=top.getIFObj('flshCK');$1W.state=0;if($1W!==null&&typeof $1W!=='undefined'){$1W.src='about:blank';}};document.frmMain.method="post";document.frmMain.action="https://"+$1V+"?process=y";document.frmMain.txtUserName.value=document.getElementById("txtUserName1").value;document.frmMain.txtPassword.value=document.getElementById("txtPassword1").value;document.frmMain.submit();};function CheckGuest($1i){if(Number($1i)==2210||Number($1i)==2130||Number($1i)==2110){var $1X=eval("document.frmMain.txtGuestAcc");var $1Y=("IEx"==GetBrowser());if(typeof $1X!="undefined"){var $1Z=GetCookie('session','imagespath');var $20=eval("document.frmMain.StyleName");var $21="S=";if(Number($1i)==2210){if($1Y){$21+=$20.value+";Err=Dep;ImPath="+$1Z;}else{$21=59;}}else if(Number($1i)==2130){if($1Y){$21+=$20.value+";Err=With;ImPath="+$1Z;}else{$21=60;}}else if(Number($1i)==2110){if($1Y){$21+=$20.value+";Err=Pref;ImPath="+$1Z;}else{$21=61;}};var $22="";if($1Y){$22=window.showModalDialog("Sorry.htm",$21,"dialogHeight:280px;dialogWidth:420px;dialogTop:400px;dialogLeft:300px;edge:raised;resizable:yes;status=no;resizable=no;");if($22===true){$1X.value="true";return true;}else{$1X.value="false";return false;}}else{return mlConfirm($21);}}}};function JoinNow(){var $1X=eval("document.frmMain.txtGuestAcc");if(typeof $1X!="undefined"){$1X.value="true";}};function S(){SetDocState();};function SetDocState(){document.frmMain.txtSiteNavigationPB.value=document.frmMain.txtSiteNavigationCachePB.value;DocLoaded=1;if(4520===Number(document.frmMain.txtCPID.value)){ResetUSHorseCoupon();};if(4525==Number(document.frmMain.txtCPID.value)||4530==Number(document.frmMain.txtCPID.value)||4535==Number(document.frmMain.txtCPID.value)){ResetToteCoupon();};if(Number(document.frmMain.txtJL.value)>0&&IsBSExists()){var $23=top.getObjHandle('dataframeX');if($23!==null){$23.location.href='./hdcpage.asp?rn='+GetRndNum();};CSpSt();LoadMIP(true);};if('function'===typeof(ThisPageOnLoad)){ThisPageOnLoad();};if('function'===typeof(flashOnLoad)){flashOnLoad();};if('function'===typeof(showPrintLink)){showPrintLink();};if('function'===typeof(showOddDropDown)){showOddDropDown();};if(9601===Number(document.frmMain.txtCPID.value)){clearDialingCode();};if(2621===Number(document.frmMain.txtCPID.value)||2575===Number(document.frmMain.txtCPID.value)){SetCookie("session","processform",0);};if(2615===Number(document.frmMain.txtPPID.value)){window.location.href='#10';};if(2175===Number(document.frmMain.txtPPID.value)){window.location.href='#12';};var $24=GetCookie("session","faqitem");if(9603===Number(document.frmMain.txtCPID.value)&&$24!==null&&typeof($24)!=="undefined"){jumpTo($24,$24);};if('function'===typeof(GetMembersLogInfo)){GetMembersLogInfo();};if(typeof top.ShowScrolls!=='undefined'&&typeof top.ShowScrolls()=='function'){top.ShowScrolls();};if(typeof top.ScrollContent!=='undefined'&&typeof top.ScrollContent()=='function'){top.ScrollContent();};if(typeof(LoadMIP)=='function'){LoadMIP(false);};try{var $25=document.getElementById('tSO');if($25!==null){var $26=isNaN($25.value)?0:$25.value;if(Number($26)>0){top.hideMessageWindow();setTimeout('gP(-1)',$26);}}}catch($27){}};function UpdateTkn(){var $28=GetCookie("session","stk");var $29=document.getElementById('txtTKN');if(($29!==null)&&(typeof $28!=='undefined')&&($28!==null)&&($29.value!==$28)){$29.value=$28;}};function SetSlipState(){if(!top.IsLoaded('bslip')){var $1T=setTimeout('SetSlipState()',500);}else{DocLoaded=1;m_blnBetSlip=true;document.frmMain.txtJL.value=0;var $v=Number(document.frmMain.txtCPID.value);if((9510==$v)||(9611==$v)){var $2a=top.getIFObj('bslip');var $2b=top.frames['SlipObj'];if((typeof $2b!=='undefined')&&($2b!==null)){var $2c=$2b.document;if((typeof $2c!=='undefined')&&($2c!==null)){$2d=$2c.getElementById('txtSeqID');if($2d!==null){$2e=GetCookie('seq','slip');$2f=($2d!==null)?$2d.value:'';if($2f!==$2e){SetCookie('session','normalselections','');SetCookie('session','normalcount','0');SetCookie('session','cs','');SetCookie('session','ushs','');SetCookie('session','T','');SetCookie('session','J','');}}}}}}};function CheckState(){if(top.IsLoaded('main')){DoSubmitForm=1;return true;};return false;};function FreeCD($1i,$2g){SetCookie("session","sourceid",$2g);PM($1i);};function UseSSL(){var $y=false;var $2h=document.getElementById('txtAS');if(typeof $2h!=='undefined'){if($2h!==null){if($2h.value==='1'){$y=true;}}};return $y;};function PM($1i,TD){var $2i=GetQS();var $2j=Number($1i);if($2j==3000||$2j==2010||$2j==2210||$2j==2130||$2j==2110||$2j==2180||$2j==2100){if(!ChckUserLoged()){gP(-1);return false;}};if(Number($1i)==2010){var $2k=1;if((document.frmMain.txtNavigationPB!==null)&&(typeof document.frmMain.txtNavigationPB!=='undefined')){var $2l=document.frmMain.txtNavigationPB.value;var $2m=$2l.indexOf("SiteContentTypeID=");var $2n=$2l.indexOf(";",$2m);var $2o=$2l.substring($2m+18,$2n);switch(Number($2o)){case 5:$2k=5;break;case 4:$2k=3;break;default:$2k=1;break;}};$2i=$2i+'&prd='+$2k;setPrd('1');setPmt('0');};var width;var height;if(2200==$1i){var $2p=document.getElementById('txtAFC');if($2p!==null){if($2p.value.length>0){$2i='&affiliate='+$2p.value;}};width=g_windowSizeOpenAccount[0];height=g_windowSizeOpenAccount[1];}else{width=g_windowSizeLarge[0];height=g_windowSizeLarge[1];};var $r=(screen.width/ 2)-(width/ 2);var $s=(screen.height/ 2)-(height/ 2);if((typeof TD!=='undefined')&&(TD!==null)){$2i=$2i+'&td='+TD;};windowOpen($1i,true,"http://"+getURL($1i)+"?ibpid="+$1i+$2i+'&rn='+GetRndNum(),"height="+height+",width="+width+",left="+$r+",top="+$s);if(2200==$1i||$1i==2740||$1i==5380){MOAW();}};function PCP($1i,$2q,$2r){var $1V=getURL($1i);windowOpen($1i,true,"http://"+$1V+"?ibpid="+$1i+'&rn='+GetRndNum(),"height="+$2q+",width="+$2r+",left=300,top=300");};function sslPC($1i){var $1V=getURL($1i);windowOpen($1i,true,"http://"+$1V+"?ibpid="+$1i+'&rn='+GetRndNum(),"height="+$2q+",width="+$2r+",left=300,top=300,height="+g_windowSizeLarge[1]+",width="+g_windowSizeLarge[0]);};function RsPC($1i){var $2s=Number($1i);var $2i=GetQS();if((5665==$2s)||(2495==$2s)||(5544==$2s)){if(!CheckLogIn(false)){mlAlert(36);return;}};var $1V=getURL($1i);var $2t='http://'+$1V+'?ibpid='+$1i+$2i+'&rn='+GetRndNum();if(arguments.length>1&&5544!=$2s){if(arguments[1].indexOf('~')==-1){$2t+='&gametype='+arguments[1]+'&nb=1';}};if(arguments.length>1&&5544==$2s){if(arguments[1].indexOf('~')==-1){$2t+='&po='+arguments[1];}};if(arguments.length>1){if(arguments[1].indexOf('~')>0){$2t+='&td='+arguments[1];}};var width=g_windowSizeLarge[0];var height=g_windowSizeLarge[1];var $r=(screen.width/ 2)-(width/ 2);var $s=(screen.height/ 2)-(height/ 2);windowOpen($1i,true,$2t,"height="+height+",width="+width+",left="+$r+",top="+$s);if($1i==5430){MOAW();}};function RsPCBS($1i){var $2s=Number($1i);if((5665==$2s)||(2495==$2s)){if(!CheckLogIn(false)){if(!IsLogIn(false)){mlAlert(36);return;}}};var $2q=GetScreenRes();var $r=GetScrennWidth();var $s=GetScrennTop();var $2t=(UseSSL()?'https://':'http://')+top.frames['main'].document.frmMain.txtURL.value+'?popmembers='+$1i;windowOpen($1i,true,$2t,"height="+g_windowSizeLarge[1]+",width="+g_windowSizeLarge[0]+",left="+$r+",top="+$s);};function SD(){if(DoSubmitForm===0){cPC();};if(window.top.location.protocol=="https:"){if(DoSubmitForm===0){}else{if(window.opener.closed){mlAlert(52);window.close();}}}else{if(!window.opener){return;};if(!('object'==typeof(window.opener))){return;};if(window.opener.closed){cPC();window.close();}}};function CloseWindows(){var $1V=document.location.href;if(($1V.indexOf('hdcpage.asp')>0)||($1V.indexOf('hdpage.asp')>0)){return false;};if(document.frmMain=="undefined"){return false;};if(DoSubmitForm===0){var $2u=document.getElementById("txtCurrentPageID");if($2u!==null){$2u.value=0;scp(0);cPC();ClosePopParent();}};return true;};function ClosePopParent(){closeWindow(winMMM);};function LaunchInPlay($2v){var $2w=screen.width;var $2x=screen.height;var $2y,$2z,$2A;if($2x<768){$2z=776;$2y=516;$2A=1;}else{$2z=1016;$2y=680;$2A=2;};var $2B=GetNavigationPB("languageid",1);if(($2v===null)||(typeof $2v=='undefined')){LaunchInPlay2();return false;};var $2C=Number(($2w-$2z)/2);var $2D=Number(($2x-$2y)/2);var $2E='./Flash_InPlay/InPlay_v23.asp?size='+$2A+'&detectflash=false';inPlayPopUp=window.open($2E,'ainplay',$2F='toolbar=0,scrollbars=1,location=0,status=0,menubar=0,resizable=0,left='+$2D+',top='+$2C+',width='+$2z+', height='+$2y);return true;};function sTN($C){var $2G=$C.options[$C.selectedIndex].value;var $2H=document.frmMain.txtNumbers.value.split("#");for(i=0;i<$2H.length;i++){var $2I=$2H[i].split("%");if($2I[0]==$2G){document.frmMain.txtplacebet.value=$2I[1];document.frmMain.txtcustomerservice.value=$2I[2];}}};function gLN($2J){if(CheckState()!==true){return;};if(0===$2J.selectedIndex){return;};if(0===$2J.value.length){return;};var $v=$2J.value.split(',')[0];var $2K=$2J.value.split(',')[1];CookieTest();var $B=document.getElementById('txtLS1');if((typeof($B)!=='undefined')&&(null !==$B)){$B.value='';};gLC($v,$2K);};function lottodisplay($2L){var h=document.getElementById('div_navlotto_h');var s=document.getElementById('div_navlotto_s');if($2L==1){intShowHide(h,false);intShowHide(s,true);}else{intShowHide(h,true);intShowHide(s,false);};SetMState($2L);};function gLC($v,$2K){if(CheckState()!==true){return;};CookieTest();snp($v);updateSiteNavigationPB('lotterycode',$2K);updateSiteNavigationPB('c1id',666);SubmitForm();};function snp($2M){if(arguments.length>1&&arguments[1]){self.opener.document.frmMain.txtNPID.value=Number($2M);}else if(typeof(document.frmMain.txtNPID)=="undefined"){}else{document.frmMain.txtNPID.value=Number($2M);}};function scp($2N){document.frmMain.txtCPID.value=Number($2N);};function spp($2O){document.frmMain.txtPPID.value=Number($2O);};function gnp(){return Number(document.frmMain.txtNPID.value);};function gcp(){return Number(document.frmMain.txtCPID.value);};function gpp(){return Number(document.frmMain.txtPPID.value);};function $a(){if(!(0===(this.TotalAllCount-this.TotalParlayCount))){if(!mlConfirm(115)){return false;}else{this.ClearAllSelections('P');}};return true;};function $b(){if(!(0===(this.TotalAllCount-this.TotalNumbersCount))){if(!mlConfirm(115)){return false;}else{this.ClearAllSelections('L');}};return true;};function $c($2P){if(!this.OKToAddNumbersSelection()){return false;};var $B=document.getElementById('txtLS1');if((typeof($B)!=='undefined')&&(null !==$B)){$B.value=$2P;};return true;};function $d(){if(0===arguments.length){this.Refresh();};return true;};function $e(){var $B=document.getElementById('txtLS1');if((typeof($B)!=='undefined')&&(null !==$B)){$B.value='';};if(0===arguments.length){this.Refresh();};return true;};function $f(){var i;var $2Q;$2Q=false;for(i=0;i<arguments.length;i++){if('P'==arguments[i]){$2Q=true;break;}};if(!$2Q){this.ClearAllParlaySelections(true);};$2Q=false;for(i=0;i<arguments.length;i++){if('L'==arguments[i]){$2Q=true;break;}};if(!$2Q){this.ClearAllNumbersSelections(true);};this.Refresh();return true;};function $g(){var $2R=document.getElementById("txtPTS");if((typeof($2R)!=='undefined')&&(null !==$2R)){this.ParlaySelections=$2R.value;}else{this.ParlaySelections="";};var $B=document.getElementById('txtLS1');if((typeof($B)!=='undefined')&&(null !==$B)){this.NumbersSelections=$B.value;}else{this.NumbersSelections="";};this.arrParlaySelections=this.ParlaySelections.split(';');this.arrNumbersSelections=this.NumbersSelections.split('|');if(''===this.arrParlaySelections[this.arrParlaySelections.length-1]){this.arrParlaySelections.length--;};if(''===this.arrNumbersSelections[this.arrNumbersSelections.length-1]){this.arrNumbersSelections.length--;};this.ParlayCount=this.arrParlaySelections.length;this.NumbersCount=this.arrNumbersSelections.length;this.AllCount=this.ParlayCount+this.NumbersCount;this.TotalParlayCount=this.ParlayCount;this.TotalNumbersCount=this.NumbersCount;this.TotalAllCount=this.TotalParlayCount+this.TotalNumbersCount;};function BettingSlipObject(){this.OK=false;if(!CheckState()){return false;};if(!CookieTest()){return false;};this.Refresh();this.OK=true;};BettingSlipObject.prototype.MaxCountLogedout=5;BettingSlipObject.prototype.OKToAddParlaySelection=$a;BettingSlipObject.prototype.OKToAddNumbersSelection=$b;BettingSlipObject.prototype.AddNumbersSelection=$c;BettingSlipObject.prototype.ClearAllSelections=$f;BettingSlipObject.prototype.ClearAllParlaySelections=$d;BettingSlipObject.prototype.ClearAllNumbersSelections=$e;BettingSlipObject.prototype.Refresh=$g;function vUSHWPSOdds($2S,$2T){return true;};function SetElementCheckedState($2U,$2V){if(document.frmMain.elements[$2U]){if(document.frmMain.elements[$2U].length){var $2W=document.frmMain.elements[$2U].length;for(var i=0;i<$2W;i++){document.frmMain.elements[$2U][i].checked=$2V;}}else{document.frmMain.elements[$2U].checked=$2V;}}};function SetElementDisabledState($2U,$2V){var $2X;var $h;if(document.frmMain.elements[$2U]){if(document.frmMain.elements[$2U].length){var $2W=document.frmMain.elements[$2U].length;for(var i=0;i<$2W;i++){$2X=true;$h=document.frmMain.elements[$2U][i];if(arguments.length>2){if('USH'==arguments[2]){var $2Y=$h.value.charAt(0);if(('A'==arguments[3]&&$2Y!='A')||('0'==arguments[3]&&$2Y=='A')||('3'==arguments[3]&&$2Y!='3')){$2X=false;}}};if($2X){if($h.getAttribute('FD')){$h.disabled=true;}else{$h.disabled=$2V;}}}}else{$h=document.frmMain.elements[$2U];if($h.getAttribute('FD')){$h.disabled=true;}else{$h.disabled=$2V;}}}};function vUSHQuinella($2Z){var $2W=document.frmMain.elements[$2Z].length;var $30=0;var $h;var $31=0;var $32=new Array();var i;var $33=0+document.frmMain.elements.length;var $34=0;for(i=0;i<$2W;i++){$h=document.frmMain.elements[$2Z][i];if($h.checked){$30++;$32[$32.length]=$h.value;}};if(0===$30){return 0;};var $35=isNaN(Number($2Z.substring(4,3)))?2:Number($2Z.substring(4,3));for(i=0;i<$2W;i++){$h=document.frmMain.elements[$2Z][i];if($h.checked&&$30<$35){if(arguments.length>1){if(null===$h.getAttribute('bgsave')){$h.setAttribute('bgsave',$h.style.backgroundColor);};$h.style.backgroundColor='red';};$31++;}else{if(null !==$h.getAttribute('bgsave')){$h.style.backgroundColor=$h.getAttribute('bgsave');}}};return($31>0)?-1:$32;};function vUSHAnyOrder($X){var $2W=document.frmMain.elements[$X].length;var $30=0;var $h;var $36=vUSHCreateArrCounts($X);var $37=('chkW'==$X)?2:$36.length-1;var $31=0;var $32=new Array();var i;var $38=document.frmMain.elements[$X];for(i=0;i<$2W;i++){$h=$38[i];if('A'==$h.value.charAt(0)){if($h.checked){$30++;$32[$32.length]=$h.value.substring(1,$h.value.length);}}};for(i=0;i<$2W;i++){$h=$38[i];if('A'==$h.value.charAt(0)){if($h.checked&&$30<$37){if(arguments.length>1){if(null===$h.getAttribute('bgsave')){$h.setAttribute('bgsave',$h.style.backgroundColor);};$h.style.backgroundColor='red';};$31++;}else{if(null !==$h.getAttribute('bgsave')){$h.style.backgroundColor=$h.getAttribute('bgsave');}}}};return($31>0)?-1:$32;};function vUSHPopulatearrCheck($39){var $3a=0;var $3b;var $3c;var $3d='';var $3e='';var j;var $3f='S';if(document.frmMain.chkBanker){if(document.frmMain.chkBanker.checked){$3f='B';}};if(arguments.length>1){$3a=arguments[1];};$3c='';for(var i=0;i<$39.length;i++){if(arguments.length>1){var $3g=false;for(j=0;j<arguments[2].length;j++){if(arguments[2][j]==i){$3g=true;break;}};if($3g){continue;}};if($39[i][$3a][2]){if(($3a+1)==$39[i].length||(1==$3a&&'B'==$3f)){$39[i][$3a][3]++;if('B'!=$3f){$3c='';};if(0===$3c.length){if(arguments.length>1){for(j=0;j<arguments[2].length;j++){$39[arguments[2][j]][j][3]++;if($3c.length>0){$3c+=',';};$3c+=$39[arguments[2][j]][j][1];}}};if($3c.length>0){$3c+=',';};$3c+=$39[i][$3a][1];if('B'!=$3f){if($3d.length>0){$3d+=';';};$3d+=$3c;}}else{$3b=new Array();if(arguments.length>1){for(var k=0;k<arguments[2].length;k++){$3b[$3b.length]=arguments[2][k];}};$3b[$3b.length]=i;$3e=vUSHPopulatearrCheck($39,($3a+1),$3b);if($3e.length>0){if($3d.length>0){$3d+=';';};$3d+=$3e;}}}};if('B'===$3f&&0!==$3c.length){if($3d.length>0){$3d+=';';};$3d+=$3c;};return $3d;};function vUSHCreateArrCounts($X){var $36=new Array();var $3h=document.getElementsByName($X);var $2W=$3h.length;var $3i;var $2Y;$36[0]=new Array();$36[0][0]=0;$36[0][1]=0;for(var i=0;i<$2W;i++){$3i=$3h[i];$2Y=$3i.value.charAt(0);$3j=('A'==$2Y)?0:Number($2Y);if($36[$3j]){$36[$3j][0]++;}else{$36[$3j]=new Array();$36[$3j][0]=1;$36[$3j][1]=0;};if($3i.checked){$36[$3j][1]++;}};return $36;};function vUSHValidateCombinations($X){var $39=new Array();var $36=vUSHCreateArrCounts($X);var i;var j;var k;var $3h=document.getElementsByName($X);var $2W=$3h.length;var $3i;var $31=0;var $32=new Array();var $3e;var $3f='S';if(document.frmMain.chkBanker){if(document.frmMain.chkBanker.checked){$3f='B';}};j=0;for(i=0;i<$2W;i++){$3i=$3h[i];if(1==Number($3i.value.charAt(0))){$39[j]=new Array();for(k=0;k<$36.length-1;k++){$39[j][k]=new Array();};$39[j][0][0]=$3i;$39[j][0][1]=Number($3i.value.substring(1,$3i.value.length));$39[j][0][2]=$3i.checked;$39[j][0][3]=0;j++;}};for(i=0;i<$2W;i++){$3i=$3h[i];if(!$3i.disabled){if('A'!=$3i.value.charAt(0)&&1!=Number($3i.value.charAt(0))){for(j=0;j<$39.length;j++){if(Number($39[j][0][1])==Number($3i.value.substring(1,$3i.value.length))){k=Number($3i.value.charAt(0))-1;$39[j][k][0]=$3i;$39[j][k][1]=Number($3i.value.substring(1,$3i.value.length));$39[j][k][2]=$3i.checked;$39[j][k][3]=0;}}}}};$3e=vUSHPopulatearrCheck($39);if($3e.length>0){$32=$3e.split(';');};for(i=0;i<$39.length;i++){for(j=0;j<$36.length-1;j++){if($39[i][j][2]&&0===$39[i][j][3]){if('B'!=$3f){if(arguments.length>1){if(null===$39[i][j][0].getAttribute('bgsave')){$39[i][j][0].setAttribute('bgsave',$39[i][j][0].style.backgroundColor);};$39[i][j][0].style.backgroundColor='red';};$31++;}}else{if($39[i][j][0]){if(null !==$39[i][j][0].getAttribute('bgsave')){$39[i][j][0].style.backgroundColor=$39[i][j][0].getAttribute('bgsave');}}}}};if(0===$31&&'B'==$3f&&$X!=='chkW'){if(0<$36[1][1]&&2>$36[2][1]){$31++;}};return($31>0)?-1:$32;};function vUSHForecast($2S){var i;var $3k=('A'==$2S.value.charAt(0))?0:Number($2S.value.charAt(0));var $36=vUSHCreateArrCounts($2S.name);var $2W=document.frmMain.elements[$2S.name].length;var $3l=0;var $3m=0;var $3f='S';if(document.frmMain.chkBanker){if(document.frmMain.chkBanker.checked){$3f='B';}};for(i=0;i<$36.length;i++){$3m+=$36[i][1];};if(0===$3k){for(i=1;i<$36.length;i++){$3l+=$36[i][1];}}else{$3l+=$36[0][1];};var $33=0+document.frmMain.elements.length;var $34=0;for(i=0;i<$33;i++){if(document.frmMain.elements[i].checked){if('chkOdds'==document.frmMain.elements[i].name){$34++;break;}}};if($3k){vUSHValidateCombinations($2S.name);};if(1==$3m-$3l){SetElementDisabledState($2S.name,true,'USH',(0===$3k)?'0':'A');};if(0===$3m){if('B'!=$3f){SetElementDisabledState($2S.name,false,'USH',(0===$3k)?'0':'A');};$33=0+document.frmMain.elements.length;$34=0;for(i=0;i<$33;i++){if(document.frmMain.elements[i].checked){if('chkWPS'==document.frmMain.elements[i].name){$34++;break;}}}};if(0===$3k){vUSHAnyOrder($2S.name);}};function vUSH($2S){highlightselection($2S);if('chkE'==$2S.name||'chkT'==$2S.name||'chkS'==$2S.name){return vUSHForecast($2S);};if('chkQ'==$2S.name){if(!vUSHQuinella($2S.name)){$2S.checked=false;return false;}else{return true;}}};function vTB($2S){if($2S.checked){vRS();$2S.checked=true;SetElementDisabledState('chkW',true,'USH','A');SetElementDisabledState('chkE',true,'USH','A');SetElementDisabledState('chkT',true,'USH','A');SetElementDisabledState('chkT',true,'USH','3');if(document.getElementById('S2E')){document.getElementById('S2E').innerText=document.getElementById('SOL').value;};if(document.getElementById('S2T')){document.getElementById('S2T').innerText=document.getElementById('SOL').value;}}else{vRS();}};function vT($2S){};function vFT($2S){};function ProcessUS($3n){var i;var $00=false;var $3o=false;var $3p='';var $3q=SOGetCount(g_cstrTypeUS);var $3r='chkWPS';if((typeof $3n!=='undefined')&&($3n!==null)&&$3n==1){$3r='chkOdds';};for(i=0;i<document.frmMain.elements.length;i++){if(document.frmMain.elements[i].checked){if($3r==document.frmMain.elements[i].name){var $3s=FrmtBS(document.frmMain.elements[i].value);if(SONotExists($3s,g_cstrTypeUS,false)){document.frmMain.elements[i].checked=false;if($3q<g_MaxSelections){$3p=$3p+$3s+';';$3q=$3q+1;}else{$3o=true;}}else{$00=true;}}}};if($00){mlAlert(53);};if($3o){mlAlert(2);};return $3p;};function ProcessTote($06){if(typeof $06=='undefined'){$06=g_cstrTypeTote;};var i,j,k;var $00=false;var $3o=false;var $3t='';var $3q=SOGetCount($06);for(k=1;k<=TCC;k++){for(j=1;j<=eval('TCP'+k);j++){if(($3u=document.getElementById('chkTW'+'_'+k+'_'+j))){if($3u.checked){$3u.checked=false;var $3v=FrmtBS($3u.value);if(SONotExists($3v,$06,false)){if($3q<g_MaxSelections){$3t=$3t+$3v+';';$3q=$3q+1;}else{$3o=true;}}else{$00=true;}}};if(($3u=document.getElementById('chkTP'+'_'+k+'_'+j))){if($3u.checked){$3u.checked=false;var $3w=FrmtBS($3u.value);if(SONotExists($3w,$06,false)){if($3q<g_MaxSelections){$3t=$3t+$3w+';';$3q=$3q+1;}else{$3o=true;}}else{$00=true;}}};if(($3u=document.getElementById('chkTS'+'_'+k+'_'+j))){if($3u.checked){$3u.checked=false;var $3x=FrmtBS($3u.value);if(SONotExists($3x,$06,false)){if($3q<g_MaxSelections){$3t=$3t+$3x+';';$3q=$3q+1;}else{$3o=true;}}else{$00=true;}}};if(($3u=document.getElementById('chkTE'+'_'+k+'_'+j))){if($3u.checked){$3u.checked=false;var $3y=FrmtBS($3u.value);if(SONotExists($3y,$06,false)){if($3q<g_MaxSelections){$3t=$3t+$3y+';';$3q=$3q+1;}else{$3o=true;}}else{$00=true;}}}}};if($00){mlAlert(53);};if($3o){mlAlert(2);};return $3t;};function ProcessPot($3z){var $3A;var $3B;switch(Number(document.frmMain.txtCPID.value)){case 4520:$3A='U';break;case 4521:$3A='R';break;case 4530:case 4535:case 4525:$3A='T';break;case 4540:$3A='J';break;case 4522:$3A='E';break;default:$3A='N';break;};$3B='S';if(document.frmMain.chkBanker){if(document.frmMain.chkBanker.checked){$3B='B';}};var i,j,k;var $3C,$3D;var $3E;var $3u;var $3F=new Array();var $3G;var $3H;var $3I;var $3J;var $00=false;var sData='';$3I=false;for(i=0;i<TCC;i++){$3C=0;$3D=0;for(j=0;j<eval('TCL'+(i+1));j++){$3E=false;for(k=0;k<eval('TCP'+(i+1));k++){if(($3u=document.getElementById('chkT_'+(i+1)+'_'+(j+1)+'_'+(k+1)))){if($3u.checked){$3E=true;break;}}};if($3E){$3D++;}else{$3C++;}};if($3C>0&&$3D>0){mlAlert(91);return false;};if($3D>0){$3I=true;}};if($3I){for(i=0;i<TCC;i++){$3G='';$3H='';$3K=GetCookie('session','U');$3K++;SetCookie('session','U',$3K);for(j=0;j<eval('TCL'+(i+1));j++){for(k=0;k<eval('TCP'+(i+1));k++){if(($3u=document.getElementById('chkT_'+(i+1)+'_'+(j+1)+'_'+(k+1)))){if($3u.checked){$3G+=$3H+$3u.getAttribute('T')+','+$3u.getAttribute('value').toString()+','+$3K;$3H='~';$3u.checked=false;sRace($3u,true);}}}};if(''!==$3G){$3F[$3F.length]=$3A+TCT+'P'+$3G;}};for(i=0;i<$3F.length;i++){if(SONotExists($3F[i],g_cstrTypeCast,false)){sData=sData+$3F[i]+';';}else{$00=true;}}};if($00){mlAlert(53);};return sData;};function ProcessCast(){var $3A;var $3B;var $3q=SOGetCount(g_cstrTypeCast);var $3o=false;switch(Number(document.frmMain.txtCPID.value)){case 4520:$3A='U';break;case 4530:case 4535:case 4525:$3A='T';break;case 4028:$3A='J';break;default:$3A='N';break;};$3B='S';if(document.frmMain.chkBanker){if(document.frmMain.chkBanker.checked){$3B='B';}};var $3L=document.getElementById('cpntrni');if(($3A=='U')&&($3L!==null)){$3A='R';};var $3M=document.getElementById('cpnetote');if(($3A=='T')&&($3M!==null)){$3A='E';};var $3N=document.getElementById('cpnfgtote')!==null?true:false;var i;var $3O;var $3F=new Array();var $31=0;var $3P=0;var $07=new Array();$07[0]='chkE';$07[1]='chkT';$07[2]='chkW';if('U'==$3A||$3A=='R'||'J'==$3A){$07[2]='chkS';};if('U'==$3A||'J'==$3A||$3A=='R'||$3N){if($3A!=='J'){if(document.frmMain.elements['chkQ']){$3O=vUSHQuinella('chkQ',true);if(-1==$3O){$31++;}else{if($3O.length>0){$3F[$3F.length]=$3A+'Q'+(($3O.length>2)?'C':'S')+document.frmMain.txtFixtureID.value+'~'+$3O.join(',');$3P++;}}}}else{for(i=2;i<=4;i++){var $3Q='chk'+i;if(document.frmMain.elements[$3Q]){$3O=vUSHQuinella($3Q,true);if(-1==$3O){$31++;}else{if($3O.length>0){$3F[$3F.length]=$3A+i+(($3O.length>i)?'C':'S')+document.frmMain.txtFixtureID.value+'~'+$3O.join(',');$3P++;}}}}}};for(i=0;i<$07.length;i++){if(!document.frmMain.elements[$07[i]]){continue;};$3O=vUSHValidateCombinations($07[i],true);if(-1==$3O){$31++;}else{if($3O.length>0){for(var j=0;j<$3O.length;j++){$3F[$3F.length]=$3A+$07[i].charAt(3)+$3B+document.frmMain.txtFixtureID.value+'~'+$3O[j];$3P++;}}};$3O=vUSHAnyOrder($07[i],true);if(-1==$3O){$31++;}else{if($3O.length>0){$3F[$3F.length]=$3A+$07[i].charAt(3)+'C'+document.frmMain.txtFixtureID.value+'~'+$3O.join(',');$3P++;}}};if($31){mlAlert(57);return false;};$3t='';var $00=false;if(0===$31&&$3P>0){for(i=0;i<$3F.length;i++){if(SONotExists($3F[i],g_cstrTypeCast,false)){if($3q<g_MaxSelections){$3t+=$3F[i]+';';$3q=$3q+1;}else{$3o=true;}}else{$00=true;}}};if($00){mlAlert(53);};if($3o){mlAlert(2);};return $3t;};function ProcessForeignToteCoupon(){var i,j,k;var $2T=new BettingSlipObject();if(!$2T.OK){delete $2T;return false;};for(k=1;k<=TCC;k++){for(j=1;j<=eval('TCP'+k);j++){if(($3u=document.getElementById('chkTW'+'_'+k+'_'+j))){if($3u.checked){$3u.checked=false;if(!$2T.AddForeignToteSelection($3u.value)){return false;}}};if(($3u=document.getElementById('chkTP'+'_'+k+'_'+j))){if($3u.checked){$3u.checked=false;if(!$2T.AddForeignToteSelection($3u.value)){return false;}}};if(($3u=document.getElementById('chkTS'+'_'+k+'_'+j))){if($3u.checked){$3u.checked=false;if(!$2T.AddNormalSelection($3u.value)){return false;}}};if(($3u=document.getElementById('chkTE'+'_'+k+'_'+j))){if($3u.checked){$3u.checked=false;if(!$2T.AddForeignToteSelection($3u.value)){return false;}}}}};if(!ProcessCastSelections($2T)){return false;};ResetToteCoupon();return true;};function ResetUSHorseCoupon(){var i;var $3R=arguments.length;var $07=['chkOdds','chkWPS','chkQ','chkE','chkT','chkS'];for(i=0;i<$07.length;i++){SetElementDisabledState($07[i],false);SetElementCheckedState($07[i],false);};$2W=document.frmMain.elements.length;for(i=0;i<$2W;i++){var $h=document.frmMain.elements[i];if(null !==$h.getAttribute('bgsave')){$h.style.backgroundColor=$h.getAttribute('bgsave');}};return false;};function ResetToteCoupon(){var $07=['chkE','chkT','chkW'];for(i=0;i<$07.length;i++){SetElementDisabledState($07[i],false);SetElementCheckedState($07[i],false);};$2W=document.frmMain.elements.length;for(i=0;i<$2W;i++){var $h=document.frmMain.elements[i];if(null !==$h.getAttribute('bgsave')){$h.style.backgroundColor=$h.getAttribute('bgsave');}}};function vRS(){unhighlightallselection(document.frmMain);document.frmMain.reset();var $3S=Number(document.frmMain.txtCPID.value);if(4520==$3S||4010==$3S){ResetUSHorseCoupon();};if(4525==$3S||4540==$3S){ResetToteCoupon();if(document.getElementById('S2E')){document.getElementById('S2E').innerText=document.getElementById('S2L').value;};if(document.getElementById('S2T')){document.getElementById('S2T').innerText=document.getElementById('S2L').value;}};if(4290==$3S||4280==$3S||4270==$3S||4020==$3S){ResetUSHorseCoupon(true);}};function SetMinsToPost($3T,$3U,$3V){var $3W;var DP;var D;var T;var P;var M;if($3V){DP=$3T.getAttribute('A2');D=DP.split('T')[0].split('-');T=DP.split('T')[1].split('.')[0].split(':');$3W=new Date(D[0],D[1]-1,D[2],T[0],T[1],T[2]);P=new Date(($3U.getTime()+($3U.getTime()-$3W.getTime())+($3T.getAttribute('A3')*1000)));$3T.setAttribute('A2',P.getTime());}else{P=new Date($3T.getAttribute('A2'));};M=Math.round(((P.getTime()-$3U.getTime())/1000)/60);var x=String($3T.getAttribute('A1').replace(/%1/,M));$3T.innerText=x;};function mtp($3X){if('IE'==GetBrowser()){var $3T=window.MTP;var $3U=new Date();if($3T.length){for(var i=0;i<$3T.length;i++){SetMinsToPost($3T[i],$3U,(0===arguments.length?true:false));}}else{SetMinsToPost($3T,$3U,(0===arguments.length?true:false));};var $1T=setTimeout('mtp(1)',1000);}};function getRegExp($G){var $3Y=['^','$','*','\\','+','?','.','|','[',']','(',')','/'];var $3Z=$G;for(var i=0;i<$3Y.length;i++){RE=new RegExp('\\'+$3Y[i],'g');$3Z=$3Z.replace(RE,'\\'+$3Y[i]);};var $40=new RegExp($3Z);return $40;};function gCPar($41){var $42=$41.split("#");CookieTest();snp(4600);document.frmMain.txtClassID.value=$42[1];updateSiteNavigationPB("cardcouponid",$42[0]);updateSiteNavigationPB("classificationid",$42[1]);SubmitForm();};function FC($2J){if(DocLoaded===0){$2J.blur();return false;}};function aLayBet($43,$44,$45){var $2T=new BettingSlipObject();if(!$2T.OK){delete $2T;return false;};if((10143==$43)||(10148==$43)){var $u=top.frames['bslip'];var $K=$u.window.document;var $Q=$K.frmMain.txtCPID.value;if((9002==$Q)||(9003==$Q)){mlAlert(57);return false;}};var $46=document.getElementById($44);var $47=$46.getAttribute('pcode');aBet($47);if(typeof $45!=='undefined'){$46.className=$45;}else{$46.className='ln';};highlightselection($46,$45);};function loadGT($2s){document.frmMain.txtGameBets.value="1";gP($2s);};function setLang($C){var arrData=$C.split("#");SetCookie('aps03','lng',arrData[0]);gP(-1,'',1);$p=top.frames['bsliptop'];if(null !==$p){var $1V=$p.location.href;$p.location.replace($1V=$1V.replace("fin=0","fin=1"));};if(IsBSExists()){RefreshSlip('1');};LoadMIP(true);};function lData(ID){var $48=document.getElementById(ID);var $49=document.getElementById('d'+ID);var $4a=ID;if(ID=='tod'){$4a='tln';};if(ID=='tln'){$4a='tod';};ulData($4a);var aP=findPos($48);if($49.style.display=='none'){if(ID=='tln'){$49.style.left=(Number(aP[0])-11)+'px';$49.style.top='6px';}else{$49.style.left=(Number(aP[0])-11)+'px';var $2s=(document.getElementById('txtCPID')!==null?document.getElementById('txtCPID').value:0);if(Number($2s)==9611){$49.style.top='61px';}else{$49.style.top='42px';}};$49.style.display='';}};function ulData(ID){var $49=document.getElementById('d'+ID);if($49!==null){$49.style.display='none';}};function findPos($2J){var $4b=$4c=0;if($2J.offsetParent){$4b=$2J.offsetLeft;$4c=$2J.offsetTop;while($2J=$2J.offsetParent){$4b+=$2J.offsetLeft;$4c+=$2J.offsetTop;}};return[$4b,$4c];};function MOAW(){if(1==Number(GetCookie("session","p"))){SetCookie("session","p","0");var $4d=document.getElementById('tLS');if($4d!==null){$4d.value=2;};SubmitForm();}else if(1==Number(GetCookie("session","p"))){SetCookie("session","p","0");return false;}else{var $1T=setTimeout('MOAW()',100);}};function MMW(){if(typeof(top.getIFObj)!=="undefined"){if(winMMM.closed){if(IsBSExists()){SOBSRefresh();}}else{var $1T=setTimeout('MMW()',100);}}};var $4e=0;var $4f=null;var $4g;var $4h;var h;var m;var s;var $4i;var $4j;var $4k;var $4l=0;var $4m=0;function Start(yy,mo,da,hh,mm,ss){$4h=new Date(yy,(mo-1),da,hh,mm,ss);$4i=new Date(yy,(mo-1),da,hh,mm,ss);$4j=new Date(yy,(mo-1),da,hh,mm,ss);$4g=document.getElementById('clock');$4k=document.getElementById('cTZI');if(typeof $4g!='undefined'){UpdateTimer();};GetFlashVersion();};function UpdateTimer(){if($4e){clearTimeout($4e);$4n=0;};$4h.setTime($4h.getTime()+1000);if($4h.getHours()<10){h='0'+$4h.getHours();}else{h=$4h.getHours();};if($4h.getMinutes()<10){m='0'+$4h.getMinutes();}else{m=$4h.getMinutes();};if($4h.getSeconds()<10){s='0'+$4h.getSeconds();}else{s=$4h.getSeconds();};$4g.innerHTML=""+h+":"+m+":"+s;$4e=setTimeout("UpdateTimer()",1000);};function gRace($4o,iLegNo){var $4p=eval('CVL'+$4o);var arrCVL=$4p.split('#');if(arrCVL[1]!=iLegNo){document.getElementById($4p).style.display='none';eval('CVL'+$4o+'=\''+arrCVL[0]+'#'+iLegNo+'\';');$4p=eval('CVL'+$4o);document.getElementById($4p).style.display='';}};function sRace($2J){if(!CheckLogIn()){$2J.checked=false;return;};var $4q=$2J.name.split('_');if(arguments.length<2){gRace($4q[1],$4q[2]);};document.getElementById(('chkR'==$4q[0]?'chkT':'chkR')+'_'+$4q[1]+'_'+$4q[2]+'_'+$4q[3]).checked=$2J.checked;};function gMP($2s,$4a){if(typeof $4a=='undefined'){var $4r=$2s.split('#');if($4r.length>0){setPrd($4r[2]);setPmt($4r[1]);gP($4r[0]);}else{gPS($2s);}}else{var $4s=$4a.options[$4a.selectedIndex].value;gPS($4s);}};function gPS($2s){snp($2s);document.frmMain.method="post";document.frmMain.action="https://"+document.frmMain.txtURL.value;document.frmMain.submit();};function DisplayFunds(){var sData=document.getElementById('pData').value;var $4t=document.frmMain.oPTF.options[document.frmMain.oPTF.selectedIndex].value;var $4u=document.frmMain.oPTT.options[document.frmMain.oPTT.selectedIndex].value;sData=sData.split('#');var $4v=sData[6].split('=')[1];var $4w=sData[7].split('=')[1];if(($4t==1&&$4u==3)||($4t==3&&$4u==1)||($4t==1&&$4u==1)||($4t==3&&$4u==3)||($4t==4&&$4u==4)){document.getElementById('tr3').style.display='';document.getElementById('pcd').style.display='none';document.getElementById('tr1').style.display='none';document.getElementById('tr2').style.display='none';};if(($4t==1&&$4u==4)||($4t==4&&$4u==1)||($4t==3&&$4u==4)||($4t==4&&$4u==3)){document.getElementById('tr3').style.display='none';document.getElementById('tr1').style.display='';if(document.frmMain.cCode.value!='USD'){document.getElementById('pcd').style.display='';document.getElementById('tr2').style.display='';}else{document.getElementById('pcd').style.display='none';document.getElementById('tr2').style.display='none';}};if(($4t==1&&$4u==4)||($4t==3&&$4u==4)){document.getElementById('ucr').innerHTML=$4v;document.getElementById('pcr').innerHTML=$4w;};if(($4t==4&&$4u==1)||($4t==4&&$4u==3)){document.getElementById('ucr').innerHTML=$4w;document.getElementById('pcr').innerHTML=$4v;};if(($4t==1&&$4u==3)||($4t==3&&$4u==1)||($4t==1&&$4u==1)||($4t==3&&$4u==3)||($4t==4&&$4u==4)){document.getElementById('ucr').innerHTML=$4v;document.getElementById('pcr').innerHTML=$4w;};document.frmMain.txtAmt1.value="";document.frmMain.txtAmt2.value="";document.frmMain.txtAmt.value="0.00";document.getElementById('pcc').innerHTML="";document.frmMain.txtCValue.value="0.00";document.frmMain.txtPWD.value="";};function CalcChips($4x){var $4y,$4z,sData,$4A,$4B;if(typeof $4x==='undefined'){var $4t=document.frmMain.oPTF.options[document.frmMain.oPTF.selectedIndex].value;var $4u=document.frmMain.oPTT.options[document.frmMain.oPTT.selectedIndex].value;if($4t==4||$4u==4){$4y="";$4z=document.frmMain.txtAmt1.value;sData=document.getElementById('pData').value;sData=sData.split('#');$4A=sData[0].split('=')[1];$4B=sData[1].split('=')[1];if($4t!=4){$4y=(($4z/$4A)*$4B);};if($4u!=4){$4y=(($4z/$4B)*$4A);};document.frmMain.txtCValue.value=$4y;rndDeci(document.frmMain.txtCValue,1);document.getElementById('pcc').innerHTML=document.frmMain.txtCValue.value;}}else{$4y="";$4z=document.frmMain.amount.value;sData=document.getElementById('pkrDta').value;sData=sData.split('#');$4A=sData[0].split('=')[1];$4B=sData[1].split('=')[1];if(Number($4x)===1){$4y=(($4z/$4A)*$4B);document.frmMain.txtCValue.value=$4y;rndDeci(document.frmMain.txtCValue,1);};if(Number($4x)===2){$4y=(($4z/$4B)*$4A);document.frmMain.txtCValue.value=$4y;rndDeci(document.frmMain.txtCValue,1);}}};function pCS($4C){chkNum($4C);document.getElementById('pcc').innerHTML='';document.frmMain.txtCValue.value="0.00";};function chkNum($4D){if(String($4D.value)=="0."){return false;};if(isNaN($4D.value)){$4D.value="";return true;};if($4D.value===""){$4D.value="";return true;};if(typeof document.frmMain.oPTT!='undefined'){var $4u=document.frmMain.oPTT.options[document.frmMain.oPTT.selectedIndex].value;if($4u==4){rndDeci($4D,0);}else{rndDeci($4D,1);}}else{rndDeci($4D,1);}};function DoTrnsfr($2s){if($2s==2270){var $4E=document.getElementById("chkDirect");var $4F=document.getElementById("trialexpired");if($4E.checked===true){if(Number($4F.value)==1){if(mlConfirm(120)===false){return false;}}}};var $4G,$4H,$4I,lB;var $1V=document.frmMain.txtURL.value;var $4J;var $4K=document.getElementById("txtDialingCode");if(typeof($4K)!=="undefined"&&$4K!==null){$4K.setAttribute("disabled",false);$4K.removeAttribute("disabled");};if(typeof frames['exbal']!=='undefined'){$4J=frames['exbal'].lDWBBal;}else{$4J=0;};if(($2s==3000)||($2s==3020)){var $4t=document.frmMain.oPTF.options[document.frmMain.oPTF.selectedIndex].value;var $4u=document.frmMain.oPTT.options[document.frmMain.oPTT.selectedIndex].value;if($4t==4||$4u==4){document.frmMain.txtAmt.value=document.frmMain.txtAmt1.value;CalcChips();}else{document.frmMain.txtAmt.value=document.frmMain.txtAmt2.value;};if($4t==3){if(!mlConfirm(88)){return false;}};$4I=document.getElementById('trcsn');if(typeof $4I.cells[2]!=='undefined'&&$4t==3){lB=$4I.cells[2].innerHTML;if(Number(lB)>0&&Number($4J)===1){if(mlConfirm(86)===false){document.frmMain.reset();return false;}}};if(Number(document.frmMain.txtAmt.value)>0){SVOT();}}else if(($2s==2220)||($2s==2270)||($2s==2450)||($2s==2570)||($2s==2580)||($2s==2590)||($2s==2610)||($2s==2600)||($2s==2605)){$4G=document.frmMain.sProduct;$4H=document.frmMain.sPayment;if(Number($4G.options[$4G.selectedIndex].value)===4){CalcChips(1);};if((typeof $4G!=='undefined')&&(typeof $4H!=='undefined')){setPrd($4G.options[$4G.selectedIndex].value);setPmt($4H.options[$4H.selectedIndex].value);};SVOD();}else if(($2s==2130)||($2s==2615)||($2s==2170)||($2s==2496)||($2s==2176)||($2s==2177)||($2s==2178)){$4G=document.frmMain.sProduct;$4H=document.frmMain.sPayment;if(Number($4G.options[$4G.selectedIndex].value)===4){CalcChips(2);};if((typeof $4G!=='undefined')&&(typeof $4H!=='undefined')){setPrd($4G.options[$4G.selectedIndex].value);setPmt($4H.options[$4H.selectedIndex].value);if($4G.options[$4G.selectedIndex].value==3){if(!mlConfirm(88)){return false;}};$4I=document.getElementById('cbb');if($4I!==null&&$4G.options[$4G.selectedIndex].value==3){lB=$4I.innerHTML;if(Number(lB)>0&&Number($4J)===1){if(mlConfirm(86)===false){document.frmMain.reset();return false;}}}};SVOW();}else{$4G=document.frmMain.sProduct;$4H=document.frmMain.sPayment;if((typeof $4G!=='undefined')&&(typeof $4H!=='undefined')){setPrd($4G.options[$4G.selectedIndex].value);setPmt($4H.options[$4H.selectedIndex].value);};VS();};return true;};function LdPmts($2J,$2s){if($2J.name=='sProduct'){setPrd($2J.options[$2J.selectedIndex].value);setPmt('0');};if($2J.name=='sPayment'){setPmt($2J.options[$2J.selectedIndex].value);};gPS($2s);};function gTPP(sData){var $z=sData.split('#');setPrd($z[1]);setPmt($z[2]);document.frmMain.paymenttrans.value=$z[3];gPS($z[0]);};function rsGT(){var $4L=document.frmMain.txtGameBets;if(typeof $4L!=='undefined'){$4L.value=0;}};function LoadBal($4M,$4N,$4O,$4P){window.frames.exbal.location.href='./ex-request.asp?uid='+$4M+'&uname='+$4N+'&product='+$4O+'&sDep='+$4P+'&rn='+GetRndNum();};function PMPopUp($1i){$r=GetScrennWidth();$s=GetScrennTop();var $1V=document.frmMain.txtURL.value;var $4Q=document.frmMain.action;$1V=$1V.replace($4Q,'mainpage.asp');windowOpen($1i,true,"https://"+$1V+"?popmembers="+$1i+'&rn='+GetRndNum(),"height="+g_windowSizeLarge[1]+",width="+g_windowSizeLarge[0]+",left="+$r+",top="+$s);if(2200==$1i){MOAW();}};function IBLo($v){cPC();if(!(-1==$v)){ClS('IB');};ResetNavigationPB();SetCookie('session','si','');SetCookie('session','li','');};function pSMT($2s){snp($2s);if(arguments.length>1&&5544==$2s){document.frmMain.action=document.frmMain.action+'?po1='+arguments[1]+'&po='+arguments[1];};SubmitForm();};function simpleOpenClose($4R,$4S,$4T){var $4U;var $4V;var $4W;$4R='cpnCtl_'+$4R;$4U=document.getElementById($4R);if($4S!==null){$4S='cpnCtl_'+$4S;$4V=document.getElementById($4S);};if($4T!==null){$4T='cpnCtl_'+$4T;$4W=document.getElementById($4T);};intShowHide($4U,($4U.style.display==='none'||$4U.style.visibility==='hidden'));if($4V!==null&&(typeof $4V!=='undefined')){intShowHide($4V,($4V.style.display==='none'||$4V.style.visibility==='hidden'));};if($4W!==null&&(typeof $4W!=='undefined')){intShowHide($4W,($4W.style.display==='none'||$4W.style.visibility==='hidden'));};if((top!==null)&&(typeof top!=='undefined')){if(typeof top.SetDiemens=='function'){top.SetDiemens();}}};function ClientShowHide($4X){var $4Y=document.getElementById('cpnDiv_'+$4X);var $4Z=document.getElementById('cpnBtn_'+$4X);var $50;if($4Y.style.display==='none'){$50=true;}else{$50=false;};intShowHide($4Y,$50);var $51=$4Z.src;if($50){$4Z.src=$51.replace(/iconClose.gif/g,'iconOpen.gif');}else{$4Z.src=$51.replace(/iconOpen.gif/g,'iconClose.gif');}};function intShowHide($4Y,$50){if($50){switch(GetBrowser()){case 'SAFARI':case 'NETSCAPE':$4Y.style.display='block';$4Y.style.visibility='visible';break;case 'OPERA':case 'FIREFOX':$4Y.style.display='block';break;default:$4Y.style.visibility='visible';$4Y.style.display='block';break;}}else{switch(GetBrowser()){case 'SAFARI':case 'NETSCAPE':$4Y.style.display='none';$4Y.style.visibility='hidden';break;case 'OPERA':case 'FIREFOX':$4Y.style.display='none';break;default:$4Y.style.visibility='hidden';$4Y.style.display='none';break;}}};function clickOpenClose($52,v2,v3,v4,v5,v6,v7,v8,v9,$53,$54,$55,$56,$57,$58,$59,$5a,$5b,$5c,$5d){var $5e;var $4Z;var $5f;var $5g;var $5h;var $5i;var $5j;var $5k;$52=''+$52;$5i=$52.split('#');$5j=$5i[0];$5k=$5i[1];updateSiteNavigationPB("plbtid",$5j);updateSiteNavigationPB("fixtureid",$5k);WhichDiv=$52;$4Z=document.getElementById('cpnBtn_'+$52);$5e=document.getElementById('cpnDiv_'+$52);var $0X=document.getElementById('txtTOC');if($5e.style.display==='none'||$5e.style.visibility==='hidden'){if(top.IsLoaded('dataframeX')){document.frmMain.tcocsel.value=WhichDiv;switch(GetBrowser()){case 'SAFARI':case 'NETSCAPE':$5e.style.display='block';$5e.style.visibility='visible';break;case 'OPERA':case 'FIREFOX':$5e.style.display='block';break;default:$5e.style.visibility='visible';$5e.style.display='block';break;};if((null !==$0X)&&(typeof $0X!=='undefined')){var $5l=''+$0X.value+$52+',';$0X.value=$5l;};gPCFX(v2,v3,v4,v5,v6,v7,v8,v9,$53,$54,$55,$56,$57,$58,$59,$5a,$5b,$5c,$5d);}}else{if((null !==$0X)&&(typeof $0X!=='undefined')){$5i=$0X.value.split(',');$0X.value='';var $5l='';for(i=0;i<$5i.length-1;i++){if($5i[i]!==$52){$5l+=$5i[i]+',';}};$0X.value=$5l;};$5e.innerHTML='';switch(GetBrowser()){case 'SAFARI':case 'NETSCAPE':$5e.style.visibility='hidden';$5e.style.display="none";break;case 'OPERA':case 'FIREFOX':$5e.style.display='none';break;case 'IE':$5e.style.visibility='hidden';$5e.style.display='none';break;default:break;};var $51=$4Z.src;$4Z.src=$51.replace(/iconOpen.gif/g,'iconClose.gif');}};function gPCFX($F,$5m,$5n,$5o,$5p,$5q,$5r,$5s,$5t,$5u,$5v,$5w,$5x,$5y,$5z,$5A,$5B,$5C,$5D,$5E){if(CheckState()!==true){return;};CookieTest();var $5F=GetNavigationPB("c1id");var $5G=GetNavigationPB("c1idtable");var $5H=GetNavigationPB("c2id");var $5I=GetNavigationPB("c2idtable");var $5J=GetNavigationPB("c3id");var $5K=GetNavigationPB("c3idtable");updateSiteNavigationPB("pagetemplateid",$F);if(typeof $0L=="undefined"){updateSiteNavigationPB("c1id",$5n);updateSiteNavigationPB("c1idtable",$5o);updateSiteNavigationPB("c2id",$5q);updateSiteNavigationPB("c2idtable",$5r);updateSiteNavigationPB("c3id",$5t);updateSiteNavigationPB("c3idtable",$5u);};updateSiteNavigationPB("c1idselected",$5n);updateSiteNavigationPB("c1idtableselected",$5o);updateSiteNavigationPB("c2idselected",$5q);updateSiteNavigationPB("c2idtableselected",$5r);updateSiteNavigationPB("c3idselected",$5t);updateSiteNavigationPB("c3idtableselected",$5u);getdivdata($F);updateSiteNavigationPB("pagetemplateid",100000);if(typeof $0L=="undefined"){updateSiteNavigationPB("c1id",$5w);updateSiteNavigationPB("c1idtable",$5x);updateSiteNavigationPB("c2id",$5z);updateSiteNavigationPB("c2idtable",$5A);updateSiteNavigationPB("c3id",$5C);updateSiteNavigationPB("c3idtable",$5D);};updateSiteNavigationPB("c1idselected",$5w);updateSiteNavigationPB("c1idtableselected",$5x);updateSiteNavigationPB("c2idselected",$5z);updateSiteNavigationPB("c2idtableselected",$5A);updateSiteNavigationPB("c3idselected",$5C);updateSiteNavigationPB("c3idtableselected",$5D);if($5G==7){updateSiteNavigationPB("c1id",$5F);updateSiteNavigationPB("c1idtable",$5G);updateSiteNavigationPB("c2id",$5H);updateSiteNavigationPB("c2idtable",$5I);updateSiteNavigationPB("c3id",$5J);updateSiteNavigationPB("c3idtable",$5K);updateSiteNavigationPB("c1idselected",$5F);updateSiteNavigationPB("c1idtableselected",$5G);updateSiteNavigationPB("c2idselected",$5H);updateSiteNavigationPB("c2idtableselected",$5I);updateSiteNavigationPB("c3idselected",$5J);updateSiteNavigationPB("c3idtableselected",$5K);}};function sLi($5L){var $5M=document.all?event.keyCode:$5L.which?$5L.which:$5L.keyCode?$5L.keyCode:$5L.charcode;var $5N=document.getElementById("txtUserName1");var $5O=document.getElementById("txtPassword1");if(typeof $5N!=='undefined'&&typeof $5O!=='undefined'){if($5N.value.length>0&&$5O.value.length>0&&Number($5M)==13){gLi();}}};function unhighlightallselection($5P,$5Q){if($5Q==undefined){$5Q=0;};for(var i=0;i<$5P.elements.length;i++){if($5P.elements[i].type=='checkbox'){if($5P.elements[i].checked){if($5Q==1){highlightselection($5P.elements[i],1);}else{$5P.elements[i].checked=false;highlightselection($5P.elements[i],0);}}}}};function highlightselection($5R,$5Q){var $5S='#FEF5BA';var $5T='#FFFFFF';var $5U;var $5V='';var $5W='w';var $5X='substitute';var $5Y=$5R.parentNode.id.toString();var $5Z=false;var blnIE=('IE'==GetBrowser()?true:false);var $60;var $2J;var i;if(blnIE){$60=document.styleSheets[1].rules;}else{$60=document.styleSheets[1].cssRules;};if((typeof $60!=='undefined')&&($60!==null)&&($60.length)){for(i=0;i<$60.length;i++){if($60[i].selectorText==".it2"){$5U=$60[i].style.backgroundColor;break;}}};if($5R.checked===undefined){$5Z=true;};if($5Y.indexOf('p')<1){return;};$5Y=$5R.parentNode.id.replace('gp','');for(i=0;i<$5Y;i++){if(i===0){if($5R.parentNode.className.indexOf($5X)>0){$5R.parentNode.className=$5R.parentNode.className.replace($5X,$5W);}else{if($5R.parentNode.className.indexOf($5W)>0){$5R.parentNode.className=$5R.parentNode.className.replace($5W,$5X);}}};if(i==1){$2J=getNextTD($5R.parentNode.nextSibling);if($2J.className.indexOf($5X)>0){$2J.className=$2J.className.replace($5X,$5W);}else{if($2J.className.indexOf($5W)>0){$2J.className=$2J.className.replace($5W,$5X);}}};if(i==2){$2J=getNextTD($2J.nextSibling);if($2J.className.indexOf($5X)>0){$2J.className=$2J.className.replace($5X,$5W);}else{if($2J.className.indexOf($5W)>0){$2J.className=$2J.className.replace($5W,$5X);}}};if(i==3){$2J=getNextTD($2J.nextSibling);if($2J.className.indexOf($5X)>0){$2J.className=$2J.className.replace($5X,$5W);}else{if($2J.className.indexOf($5W)>0){$2J.className=$2J.className.replace($5W,$5X);}}};if($5R.parentNode.className.indexOf($5W)>0){$5V=$5T;}else{$5V=$5U;};if($5Z){$5R.parentNode.style.backgroundColor=$5S;}else{if($5R.checked&&$5Q!=1){if(i===0){$5R.parentNode.style.backgroundColor=$5S;};if(i==1){$2J.style.backgroundColor=$5S;};if(i==2&&$5R.parentNode.nextSibling.nextSibling!==null){$2J.style.backgroundColor=$5S;};if(i==3&&$5R.parentNode.nextSibling.nextSibling.nextSibling!==null){$2J.style.backgroundColor=$5S;}}else{if(i===0){$5R.parentNode.style.backgroundColor=$5V;};if(i==1){$2J.style.backgroundColor=$5V;};if(i==2&&$5R.parentNode.nextSibling.nextSibling!==null){$2J.style.backgroundColor=$5V;};if(i==3&&$5R.parentNode.nextSibling.nextSibling.nextSibling!==null){$2J.style.backgroundColor=$5V;}}}}};function getNextTD($2J){var $61='';if($2J){$61=$2J;while($61.nodeType!==1){$61=$61.nextSibling;};return $61;}};function clickSplash($62){var $4Z;var $5e;var $63;var $64;var $65=false;$4Z=document.getElementById('cpnBtn_'+$62);$5e=document.getElementById('cpnDiv_'+$62);$63=document.getElementById('cpnSelectAll_'+$62);$64=document.getElementById('cpnCreate_'+$62);if($5e.style.display==='none'||$5e.style.visibility==='hidden'){intShowHide($5e,true);if($63!==null){intShowHide($63,true);};if($64!==null){$64.style.display="inline";$64.style.visibility="visible";};$65=true;}else{intShowHide($5e,false);if($63!==null){intShowHide($63,false);};if($64!==null){$64.style.display="none";$64.style.visibility="hidden";}};var $51=$4Z.src;if($50){$4Z.src=$51.replace(/iconClose.gif/g,'iconOpen.gif');}else{$4Z.src=$51.replace(/iconOpen.gif/g,'iconClose.gif');}};function gBOC($1v,TD){if(CheckState()!==true){return;};var $0L="gBOC";var $v=4999;var $66;var $67=true;var $68;var $69='';var $6a;var $6b;g_cpnSelected='';g_cpnSelectedCount=0;CookieTest();snp($v);document.frmMain.txtClassID.value=$1v;$66=document.getElementsByName('chkCouponSelected');for(i=0;i<$66.length;i++){$6b=$66.item(i);if($6b.checked){if(g_cpnSelectedCount===maxCoupons+1){break;}else{if(g_cpnSelected===''){g_cpnSelected=g_cpnSelected+$6b.getAttribute("value");}else{g_cpnSelected=g_cpnSelected+','+$6b.getAttribute("value");};g_cpnSelected=g_cpnSelected.replace(/[\t\r\n]/g,'');g_cpnSelectedCount++;}}};if(g_cpnSelected===''){mlAlert(114);return false;};document.frmMain.txtCpnSelected.value=g_cpnSelected;setTD(TD);SetFormPost($v);SubmitForm();};function showOddDropDown(){var $6c=document.getElementById("oddsDropDownHolder");var $6d=document.getElementById("oddsdisplay");if($6c!==null&&$6d!==null&&$6c.innerHTML!==''){$6d.innerHTML=$6c.innerHTML;$6d.style.visibility="visible";$6d.style.display="block";}};function showPrintLink(){var $6e=document.getElementById("cTopNav");var $6f=document.getElementById("printlink");var $6g=document.getElementById("printImg");if($6e!==null&&$6f!==null&&$6g!==null){$6f.style.visibility="visible";$6g.style.visibility="visible";$6f.style.display="block";$6g.style.display="block";}};function printPage($6h){var $6i=document.getElementById("txtNavigationPB").value;var $6j=$6i.toString();var $6k=$6j.indexOf("languageid=")+11;var $6l=$6j.indexOf(";");var $6m=$6j.substring($6k,$6l);var $6n=window.open("print/print.htm","PrintCoupon_"+$6m,"top=1,left=1,width=650,height=400,scrollbars=1,status=1,resizable=1");};function stopError(){return true;};function loadHTML2Print(){if(window.opener.location.href!==""){var $6o="";$6p=opener.document.getElementById("centerData");$6e=opener.document.getElementById("middleTitle");$6q=opener.document.getElementById("div_cbocontainer");$6r=opener.document.getElementById("div_blurb_top");$6s=opener.document.getElementById("cHdr");$6t=opener.document.getElementById("div-crpf");$6u=opener.document.getElementById("regexPrintFlag");var $6v="0";if($6u!==null){$6v="1";};if(typeof($6p)=="object"&&typeof($6e)=="object"){var $6w=opener.document.getElementsByTagName("input");for($6x=0;$6x<$6w.length;$6x++){if($6w[$6x].type=="checkbox"){if($6w[$6x].checked==1){$6w[$6x].setAttribute("checked","checked");}};if($6w[$6x].type=="text"){if($6w[$6x].value!==''){$6w[$6x].setAttribute("value",$6w[$6x].value);}}};var $6y='';var $6z='';var $6A='';var $6B='';var $6C='';if($6e!==null){$6y=$6e.innerHTML;};if($6q!==null){$6z=$6q.innerHTML;};if($6r!==null){$6A=$6r.innerHTML;};if($6s!==null){$6B='<b>'+$6s.innerHTML+'</b>';};if($6t!==null){$6C=$6t.innerHTML;};$6D=$6p.innerHTML;$6D=$6D.replace($6y,$6B);$6D=$6D.replace($6z,"");$6D=$6D.replace($6A,"");$6D=$6D.replace($6C,"");};var $6E=$6D;var $6F=$6D;if($6E!==""){$6E=$6E.replace(/(\r\n|\r|\n|\t)/g,'');document.getElementById("Textarea2").value=$6E;$6E=cleanUpHTML($6E,$6v);document.getElementById("printText").innerHTML="";document.getElementById("printText").innerHTML=$6E;document.getElementById("text2").value=$6F+" Bet365";document.close();GetPageLanguageID();}}};function navigation_display(){SetBPID('0');SwapBlurbLink();if(null===document.getElementById('div_cbocontainer')){return;};var $6G=document.getElementById('div_cbocontainer');var $6H=document.getElementById('spn_navdropstext');if(bShowNav()){display_object($6H,false);display_object($6G,true);};return;};function bShowBlurb(){var $6I=document.getElementById('navblurbOC');var $6J=($6I!==null)?$6I.value:0;if($6J.length===0){$6J=0;};return Boolean(parseInt($6J));};function bShowNav(){var $6K=document.getElementById('navmenuOC');var $6L=($6K!==null)?$6K.value:0;if($6L.length===0){$6L=0;};return Boolean(parseInt($6L));};function SwapBlurbLink(b){var $6M=document.getElementById('spn_navblurbtext');var $6N=document.getElementById('spn_navblurbtext_2');var SBL=document.getElementById('showblurblink');var $6O=bShowNav();var $6P=bShowBlurb();if(SBL===null||SBL==undefined){SBL=0;}else{SBL=SBL.value;};if(SBL===0){display_object($6M,false);display_object($6N,false);};if($6P&&$6O){display_object($6M,false);display_object($6N,false);};if($6P&&!$6O){display_object($6M,false);display_object($6N,false);};if(!$6P&&!$6O){if(SBL==1){display_object($6M,true)};display_object($6N,false);};if(!$6P&&$6O){display_object($6M,false);if(SBL==1){display_object($6N,true)};}};function navigation_manager($6Q,TD){var $6G=document.getElementById('div_cbocontainer');var $6H=document.getElementById('spn_navdropstext');SetMState($6Q);SwapBlurbLink();if($6Q===0){display_object($6G,false);display_object($6H,true);return;};if(isdataloaded(1)!==true){if($6Q!==0){if(top.IsLoaded('dataframeX')){setTD(TD);getdivdata(2095);setTD('');}}}else{display_object($6H,false);display_object($6G,true);}};function navigation_blurbs($6Q){var $6R=document.getElementById('spn_navblurbtext');var $6S=document.frmMain.txtCurrentPageID.value;SetBState($6Q);SetBPID($6S);if($6Q!==0&&isdataloaded(2)!==true){if(top.IsLoaded('dataframeX')){getdivdata(2096);navigation_blurbs_display(true);}}else{if($6Q==1){navigation_blurbs_display(true);}else{navigation_blurbs_display(false);}}};function SetBState($6T){var $6I=document.getElementById('navblurbOC');if($6I!==null){$6I.value=$6T;}};function SetBPID($6U){var $6I=document.getElementById('navblurbPID');if($6I!==null){$6I.value=$6U;}};function SetMState($6T){var $6K=document.getElementById('navmenuOC');if($6K!==null){$6K.value=$6T;}};function navigation_blurbs_display($6V){var $6W=document.getElementById('div_blurb_top');for(var ii=1;ii<5;ii++){$6W=document.getElementById('div_blurb_bottom_'+ii);display_object($6W,$6V);}};function getdivdata($6X){var $6Y=top.getObjHandle('dataframeX');if($6Y!==null){var $6Z=document.frmMain.txtCPID.value;snp($6X);var sData=document.getElementById('webSD');sData=sData.innerHTML;var $70=top.getObjDocHandle('dataframeX');$70.frmMainX.innerHTML=sData;$70.frmMainX.action='hdpage.asp?view=2&rn='+GetRndNum();var $71=$70.getElementById('tX');$71.value='1';$70.frmMainX.submit();CopyData($6X);snp($6Z);}};var $1T=0;function CopyData($1i){if(!top.IsLoaded('dataframeX')){if(Number($1T)>0){clearTimeout($1T);};$1T=setTimeout('CopyData('+$1i+')',500);}else{var $6Y=top.frames['dataframeX'];var $70=$6Y.document;var $71=$70.getElementById('tX');if(($71===null)||(Number($71.value)===1)){if(Number($1T)>0){clearTimeout($1T);};$1T=setTimeout('CopyData('+$1i+')',500);}else{if(Number($1i)==1034){uSDC(WhichDiv);}else if(Number($1i)==2095){updatedivnavdata();}else if(Number($1i)==2096){updatedivnavblurb();}else if(Number($1i)==1092){upsbr();}else{updateDivContent(WhichDiv);};if((top!==null)&&(typeof top!=='undefined')){if(typeof top.SetDiemens=='function'){setTimeout('top.SetDiemens()',500);}}}}};function uSDC($72){var $5e;var $4Z;var $73;var $74;var $75;var $76;$73=top.getObjDocHandle('dataframeX');if(typeof($72)!="undefined"){$5e=$73.getElementById('cpnDiv_'+$72);$74=$73.getElementById('cpnHead_'+$72);$76=document.getElementById('cpnDiv_'+$72);$75=document.getElementById('cpnHead_'+$72);$4Z=document.getElementById('cpnBtn_'+$72);if($74!==null&&$75!==null){$75.innerHTML=$74.innerHTML;};if(!$76){$76=document.getElementById('cpnDiv');};if($5e!==null&&$76!==null){$76.innerHTML=$5e.innerHTML;intShowHide($76,true);var $51=$4Z.src;$4Z.src=$51.replace(/iconClose.gif/g,'iconOpen.gif');}}};function updatedivnavdata(){var $77=bShowNav();var $78=top.getObjDocHandle('dataframeX');if($77===""){$77=false;};var $79=$78.getElementById('div_cbo_hidden');var $C=document.getElementById('div_cbocontainer');if($C!==null&&$79!==null){$C.innerHTML=$79.innerHTML;};if($77){var $7a=document.getElementById('div_cbocontainer');var $6H=document.getElementById('spn_navdropstext');display_object($6H,false);display_object($7a,true);};var $7b=document.getElementById('gotcombos');if($7b!==null){$7b.value="1";}};function updatedivnavblurb(){var $78=top.getObjDocHandle('dataframeX');for(var ii=1;ii<5;ii++){var $7c=$78.getElementById('div_blurb_top_hidden');var $7d=$78.getElementById('div_blurb_bottom_hidden');var $7e=document.getElementById('div_blurb_top');var $7f=document.getElementById('div_blurb_bottom_'+ii);if($7e!==null&&$7c!==null){$7e.innerHTML=$7c.innerHTML;};if($7f!==null&&$7d!==null){$7f.innerHTML=$7d.innerHTML;}};var $7g=document.getElementById('gotblurbdata');if($7g!==null){$7g.value="1";}};function upsbr(){var $7h=top.getObjDocHandle('dataframeX');var hDiv=$7h.getElementById('datadiv_results');var $7i=document.getElementById('searchbets_results');if($7i!==null&&hDiv!==null){$7i.innerHTML=hDiv.innerHTML;}};function updateDivContent($72){var $5e;var $4Z;var $7j;var $73;var $C;var $11;var $74;var $7k;var $76;var $7l;var $7m;$7j=top.getObjHandle('dataframeX');$73=top.getObjDocHandle('dataframeX');if(typeof($72)!="undefined"){$7l=$73.getElementById('txtBetID');if($7l!==null){$72=$7l.value;};$4Z=document.getElementById('cpnBtn_'+$72);$5e=document.getElementById('cpnDiv_'+$72);$76=$73.getElementById('cpnDiv_'+$72);if(!$76){$76=$73.getElementById('cpnDiv');};if($5e!==null&&$76!==null){$5e.innerHTML=$76.innerHTML;$74=document.getElementById('divHeader_'+$72);$7k=$73.getElementById('divHeader_'+$72);if($74!==null&&$7k!==null){$74.innerHTML=$7k.innerHTML;};switch(GetBrowser()){case 'OPERA':$5e.style.display='inline-block';break;case 'SAFARI':case 'NETSCAPE':$5e.style.visibility='visible';$5e.style.display='block';break;case 'FIREFOX':$5e.style.display='inline';break;case 'IE':$5e.style.visibility='visible';$5e.style.display='inline';break;default:break;};var $51=$4Z.src;$4Z.src=$51.replace(/iconClose.gif/g,'iconOpen.gif');if($72.indexOf('44#')===0||$72.indexOf('10219#')===0||$72.indexOf('10220#')===0||$72.indexOf('10221#')===0||$72.indexOf('10222#')===0||$72.indexOf('10201#')===0||$72==='80056'||$72==='1554'||$72==='190056'||$72==='360042'||$72==='750055'||$72==='870037'||$72==='120020'){try{for(i=0;i<aSCP.length;i++){if(aSCP[i][0]===$7j.aSCP[0][0]){aSCP[i]=$7j.aSCP[0];$7m=true;break;}};if(!$7m){aSCP.push($7j.aSCP[0]);};$7m=false;var $7n=$72.substring(0,$72.indexOf('#'));var aExCP=eval("aExCP"+$7n);FrameaExCP=$7j.eval("aExCP"+$7n);for(i=0;i<aExCP.length;i++){if(aExCP[i][0]===FrameaExCP[0][0]){aExCP[i]=FrameaExCP[0];$7m=true;break;}};if(!$7m){aExCP.push(FrameaExCP[0]);};SCL($7j.aSCP[0][0]);}catch(e){}}}}};function isdataloaded($7o){var $78;var $7p=0;if($7o==1){if(document.getElementById('gotcombos').value=='1'){return true;}}else{if(document.getElementById('gotblurbdata').value=='1'){return true;}};return false;};function gPCCnav($C,$7q){if(CheckState()!==true){return;};var $11;var $1f=new Array(0,0,0);var $1g=new Array(0,0,0);var $1h=new Array(0,0,0);var $1i=2095;var $1j="True";var $1k=false;var $1l;CookieTest();var $1m=$C.name;if($C.name=="cboSportC1"){$1g=setC2();$1h=setC3();$1f[0]=$C.options[$C.selectedIndex].text;$11=$C.options[$C.selectedIndex].value.split("#");$1f[1]=$11[0];$1f[2]=$11[1];$1g[1]=0;$1g[2]=0;$1i=GetCookie("session","currentpageid");var $1n=document.frmMain.cboSportC2;if(typeof $1n!=='undefined'){if((Number($1n.selectedIndex)>=0)&&(Number(document.frmMain.txtCPID.value)!=1020)){var $1o=GetNavigationPB("fixtureid");var $1p=document.frmMain.txtClassID.value;if(($1o>0)&&($1p==8||$1p==12||$1p==16||$1p==17||$1p==18||$1p==19||$1p==75||$1p==78||$1p==83||$1p==36)){$1i="4307";}else{$1i="100000";}}}};if($C.name=="cboSportC2"){if(Number($C.options[$C.selectedIndex].value)===0){return false;};updateSiteNavigationPB("fixtureid",0);updateSiteNavigationPB("next24hr","false");$1j='undefined';$1f=setC1();$1g[0]=$C.options[$C.selectedIndex].text;$11=$C.options[$C.selectedIndex].value.split("#");$1g[1]=$11[0];$1g[2]=$11[1];if($C.options[$C.selectedIndex].value.split("#").length>2){$1k=true;$1l=$11[2];$1h[1]=$11[3];$1h[2]=$11[4];};$1i="100000";};if($C.name=="cboPartBetTypes"){if($C.options[$C.selectedIndex].value===0){return false;};$1j='undefined';$1f=setC1();$1g=setC2();$1h[0]=$C.options[$C.selectedIndex].text;$11=$C.options[$C.selectedIndex].value.split("#");$1h[1]=$11[0];$1h[2]=$11[1];$1i="100000";};var $0N=$1f[0];var $0O=$1f[1];var $0P=$1f[2];var $0Q=$1g[0];var $0R=$1g[1];var $0S=$1g[2];var $0T=$1h[0];var $0U=$1h[1];var $0V=$1h[2];var $0W=$1l;if(CheckState()!==true){return;};var $0L="gPC";CookieTest();updateSiteNavigationPB("pagetemplateid",$1i);if(typeof $0W=="undefined"){updateSiteNavigationPB("c1id",$0O);updateSiteNavigationPB("c1idtable",$0P);updateSiteNavigationPB("c2id",$0R);updateSiteNavigationPB("c2idtable",$0S);updateSiteNavigationPB("c3id",$0U);updateSiteNavigationPB("c3idtable",$0V);SetCookie('session','TrackOpenClose','');};updateSiteNavigationPB("c1idselected",$0O);updateSiteNavigationPB("c1idtableselected",$0P);updateSiteNavigationPB("c2idselected",$0R);updateSiteNavigationPB("c2idtableselected",$0S);updateSiteNavigationPB("c3idselected",$0U);updateSiteNavigationPB("c3idtableselected",$0V);document.frmMain.txtCpnSelected.value='';if($7q==1){if(top.IsLoaded('dataframeX')){getdivdata(2095);}}else{snp($1i);SubmitForm();}};function display_object($2J,$7r){if($2J===null){return;};var $7s=GetBrowser();if($7r===false){switch($7s){case 'SAFARI':case 'NETSCAPE':$2J.style.visibility='hidden';$2J.style.display='none';break;case 'OPERA':case 'FIREFOX':$2J.style.display='none';break;case 'IE':$2J.style.visibility='hidden';$2J.style.display='none';break;default:break;}}else{if($7r===true||($2J.style.display==='none'||$2J.style.visibility==='hidden')){switch($7s){case 'SAFARI':case 'NETSCAPE':$2J.style.visibility='visible';$2J.style.display='block';break;case 'OPERA':case 'FIREFOX':$2J.style.display='block';break;case 'IE':$2J.style.visibility='visible';$2J.style.display='block';break;default:break;}}else{switch($7s){case 'SAFARI':case 'NETSCAPE':$2J.style.visibility='hidden';$2J.style.display='none';break;case 'OPERA':case 'FIREFOX':$2J.style.display='none';break;case 'IE':$2J.style.visibility='hidden';$2J.style.display='none';break;default:break;}}}};var $7t='';function couponSelectAll($4X,$7u){var $7v=document.getElementById('chkSelectAll_'+$4X);var $7w=document.getElementById('cpnDiv_'+$4X);var $7x=0;var $7y;var $6b;var $7z;var $7A;var $7B='';var $7C=''
var eleParent=document.getElementById('splashData');var $6a=eleParent.getElementsByTagName('input');var $7D=false;var $7E=$4X.split('#');if($7E[0]=='2'||$7E[0]=='4'||$7E[0]=='73'){$7D=true;};if($7D){for(i=0;i<$6a.length;i++){$6b=$6a.item(i);if($6b.checked){if($6b.getAttribute('checkcode')!==$4X){mlAlert(188,maxCoupons);return false;}}}};if($7D&&$7t===''){$7t=$4X;};if($7D){for(i=0;i<$6a.length;i++){$6b=$6a.item(i);if($6b.id!=='chkSelectAll_'+$4X){if($6b.checked&&$6b.name!=="chkCouponSelected"){if($7D){$7t='';return false;}}else{$6b.checked=false;}}else{if(!$6b.checked){$7t='';}}}};if($7u==1){$7w=document.getElementById('cpnDiv_Challenge_'+$4X);};if($7v===null||$7w===null){return false;};$7y=$7w.getElementsByTagName('input');for(j=0;j<$7y.length;j++){$6b=$7y.item(j);if($6b.name==="chkCouponSelected"){if($7v.checked){$6b.checked=true;if(checkNumberOfCheckedCoupons($6b)==false){return false};}else{$6b.checked=false;}}};return true;};function checkNumberOfCheckedCoupons($7F){var $6a;var $6b;var $7G=0;var $7H=false;var $7I=113;var $7J=122;var $7K=-1;var eleParent=document.getElementById('splashData');$6a=eleParent.getElementsByTagName('input');var $7L=true;var $7M=0;var $7N=new Array();var $7O=false;var $7P=false;for(i=0;i<$6a.length;i++){$6b=$6a.item(i);if($6b.name==="chkCouponSelected"){if($6b.checked){var $7Q=ReturnClassificationID($6b.value);if($7Q==2||$7Q==73||$7Q==4){$7O=true}else{$7P=true;}}}};if($7O&&!$7P&&$7t!==''){maxCoupons=30;}else{maxCoupons=8;};for(i=0;i<$6a.length;i++){$6b=$6a.item(i);if($6b.name==="chkCouponSelected"){if($6b.checked){var $7R=isUSHorse($6b.value);if(($7H&&$7R)||(!$7L&&!$7H&&!$7R)){i=$6a.length+1;$7G=maxCoupons+1;$7K=$7J;}else if($7G===maxCoupons+1){i=$6a.length+1;$7K=$7I;}else{$7G++;if($7L){if(!$7R)$7H=true;$7L=false;}}}}};if($7t!==''){if($7F.getAttribute('checkcode')!==$7t){$7E=$7t.split('#');if($7E[0]=='2'||$7E[0]=='4'||$7E[0]=='73'){$7K=$7I;$7F.checked=false;mlAlert(188,maxCoupons);return false;}}};if(parseInt($7G)<=parseInt(maxCoupons)){return true;}else{if($7K==-1)$7K=$7I;$7F.checked=false;mlAlert($7K,maxCoupons);return false;}};function ReturnClassificationID($7S){var $7T=$7S.split('#');$7T=$7T.reverse();if($7T.length==7){return parseInt($7T[0]);}else{return parseInt($7T[1]);}};function isUSHorse($7S){var $7T=$7S.split('#');$7T=$7T.reverse();if($7T[0]==2||$7T[1]==73)return true;else return false;};function changeSectionID($7U,$7V,$7W,TD){if($7W===null||$7W==undefined){$7W=1;};var $0L="changeSectionID";CookieTest();snp($7U);if($7W!=1&&$7V===4){$7V=85;}else if($7W!=2&&$7V===85){$7V=4;}else if($7W===2&&$7V!==73){$7V=73;}else if($7V===73&&$7W!==2){$7V=2;};document.frmMain.txtClassID.value=$7V;updateSiteNavigationPB('sectionid',$7W);SetFormPost($7U);setTD(TD);SubmitForm();};function coverDataTable($7X,$7Y){if($7Y===null)$7Y=12;if(GetBrowser()==="IE")showRaceOff($7X,$7Y);else var $1T=window.setTimeout('showRaceOff('+$7X+','+$7Y+')',1200);};function showRaceOff($7X,$7Y){var $7Z;var $80='tableData_'+$7X;var $81='text_'+$7X;var $82=document.getElementById($80);var $83=document.getElementById($81);var $84="1";$7Z=$82.rows.length;$83.setAttribute('class','frov');if(GetBrowser()==="IE")$83.className='frov';$83.style.top=-($7Z+1)*$7Y*1.1;if(document.getElementById('tPLang').value!==null&&document.getElementById('tPLang').value!=='undefined'){$84=document.getElementById('tPLang').value;};if(document.getElementById('txtClassID').value!==null){if($84!=="1"&&document.getElementById('txtClassID').value==2){$83.style.width='150px';$83.style.textAlign='center';}}};function gBCP($n){CookieTest();var $o=$n.split("#");var $p;var $q;if(Number($o[2])>0){$p=document.getElementById('bsID');$q=document.getElementById('bsTTID');if($p!==null){$p.value=$o[0];};if($q!==null){$q.value=$o[1];};var $r=GetScrennWidth();var $s=GetScrennTop();var $t='9110';if(9096==Number(document.frmMain.txtCPID.value)||9196==Number(document.frmMain.txtCPID.value)){$t='9296';};if(Number($o[3])>0){gP($t);}else{windowOpen($t,true,(UseSSL()?"https://":"http://")+document.frmMain.txtURL.value+"?PR=1&popmembers="+$t+"&br="+document.frmMain.txtbetslipreference.value,"height="+g_windowSizeLarge[1]+",width="+g_windowSizeLarge[0]+",left="+$r+",top="+$s);}}else{document.frmMain.txtBetSlipID.value=$o[0];document.frmMain.txtTranType.value=$o[1];$p=document.getElementById('bsID');$q=document.getElementById('bsTTID');if($p!==null){$p.value=$o[0];};if($q!==null){$q.value=$o[1];};gP(9020);}};function gSFX($v,$85,$86,$87,$88,$89,$8a,$8b,$0Z){if(CheckState()!==true){return;};if($0Z===null)$0Z=1;var $0L="gSFX";CookieTest();snp($v);document.frmMain.txtClassID.value=$85;updateSiteNavigationPB("sectionid",$0Z);updateSiteNavigationPB("c1id",$86);updateSiteNavigationPB("c1idtable",$87);updateSiteNavigationPB("challengeid",$88);updateSiteNavigationPB("plbtid",$89);updateSiteNavigationPB("splashoption",''+$8a+':'+$8b);getdivdata($v);};function cSPH($62,$85,$86,$87,$88,$89,$8a,$8b,$0Z){var $4Z;var $5e;var $63;var $64;var $8c;$4Z=document.getElementById('cpnBtn_'+$62);$5e=document.getElementById('cpnDiv_'+$62);$63=document.getElementById('cpnSelectAll_'+$62);$64=document.getElementById('cpnCreate_'+$62);$8c=document.getElementById('cpnTitle_'+$62);WhichDiv=$62;var $2b=top.frames['dataframeX'];var $2c=$2b.document;var $71=$2c.getElementById('tX');if($5e.style.display==='none'||$5e.style.visibility==='hidden'){if(top.IsLoaded('dataframeX')){document.frmMain.tcocsel.value=WhichDiv;$5e.innerHTML='';gSFX(1034,$85,$86,$87,$88,$89,$8a,$8b,$0Z);}}else{intShowHide($5e,false);if($63!==null){intShowHide($63,false);};if($64!==null){$64.style.display="none";$64.style.visibility="hidden";};if($8c!==null){$8c.style.position='';};var $51=$4Z.src;$4Z.src=$51.replace(/iconOpen.gif/g,'iconClose.gif');if((top!==null)&&(typeof top!=='undefined')){if(typeof top.SetDiemens=='function'){setTimeout('top.SetDiemens()',500);}}}};function SearchForBets(){var id=2;var $8d=document.getElementById('txtSearchText');var $8e=document.getElementById('txtHDSearchText');if($8d.value.length<3){mlAlert(50,3);return false;};$8e.value=$8d.value;snp('1092');SubmitForm();};function SearchTodays($8f){if($8f===null||$8f==undefined){$8f=1;};var $8e=document.getElementById('txtHDSearchText');$8e.value='SearchTodays'+$8f;snp('1092');SubmitForm();};function getResults($7V,$7X,$8g,TD){CookieTest();document.frmMain.txtClassID.value=$7V;updateSiteNavigationPB("classificationid",$7V);snp(resultsPageId);updateSiteNavigationPB("fixtureid",$7X);updateSiteNavigationPB("competitionid",$8g);setTD(TD);SubmitForm();};var $8h=null;function RefreshBS(){if(!top.IsLoaded('bslip')){var $1T=setTimeout('RefreshBS()',100);}else{var $2a=top.getObjHandle('bslip');$2a.style.display='block';LoadBS();}};function ShowBS(){var $u=top.frames['bslip'];var $K=$u.document;if(typeof $K.frmMain.txtCPID!=='undefined'){$2s=$K.frmMain.txtCPID.value;}else{$2s=9510;}};function SetAction(){var $8i=document.frmMain.action;if($8i.indexOf('bettingslip_v2.asp')>=0){document.frmMain.action='./bettingslip_v2.asp?betslip=1&rn='+GetRndNum();}};function MultiOption_OpenClose($8j){var $8k=document.getElementById('lnkAB');if(($8k!==null)&&($8k.style.display!=='none')&&($8k.style.visibility!=='hidden')){return false;};var $8l;var $51;var $8m=document.getElementById('txtBSMS');if((typeof $8m!=='undefined')&&(null !==$8m)){$8l=$8m.value;}else{$8l='0';};if(typeof $8j!=='undefined'){$51=$8j.src;}else{$8j=document.getElementById('imgMop');$51=$8j.src;};if(Number($8l)===0){if((typeof $8m!=='undefined')&&(null !==$8m)){$8m.value='1';};$51=$51.replace(/bsmb2.gif/g,'bsmb.gif');$8j.src=$51;}else{if((typeof $8m!=='undefined')&&(null !==$8m)){$8m.value='0';};$51=$51.replace(/bsmb.gif/g,'bsmb2.gif');$8j.src=$51;};SORefresh(true);};function GetMembersLogInfo(){var $8n=document.getElementById("txtScreenSize");if($8n!==null){if(GetBrowser()!='FIREFOX'){$8n.value=screen.width+" x "+screen.height;}else{$8n.value=window.top.screen.width+" x "+window.top.screen.height;}};if(typeof top.getIFObj!=='undefined'&&typeof top.getIFObj=='function'){var $1W=top.getIFObj('flshCK');var $8o=top.sFCU;if($1W!==null&&typeof $1W!=='undefined'){if((String($8o)!==String($1W.src))&&($8o.length>0)){$1W.src=$8o;}}}};function SubmitForm($8p,$8q,$8r){var $8s=false;$8s=$8s&&(typeof top.getIFObj!==undefined&&top.getIFObj!==null)&&document!==top.frames['bslip'].document;if(($8r===null)||($8r==undefined)){$8r='fraMainVals';};if(($8q===null)||($8q==undefined)){$8q=document.frmMain;};if(($8p===null)||($8p==undefined)){var $8t=GetBrowser();switch($8t){case "NETSCAPE":$8p=document.frmMain;break;default:$8p=$8s?top.document.frmMain:document.frmMain;break;}};if($8s){var $8u;if(top.document.all){$8u=top.document.all[$8p.name];}else{$8u=top.document.getElementById($8p.id);};if($8u===$8p){top.getFormVars($8q,top.getIFObj($8r));}};DocLoaded=0;DoSubmitForm=1;if(typeof top.setNotLoaded!=='undefined'){top.setNotLoaded('main');};var $y=false;var $2h=$8p.elements['txtAS'];if(typeof $2h!=='undefined'){if($2h!==null){if($2h.value==='1'){$y=true;}}};if($y){$8p.action=makeURLSSL($8p.action);};if(typeof top.ResetObjs!=='undefined'){top.ResetObjs();};if($8p.action.indexOf('?')===-1){$8p.action=$8p.action+'?rn='+GetRndNum();};$8p.submit();};var $8v=document.layers;var $8w=document.all;var $8x=document.getElementById&&!document.all;var $8y=0;var $8z;var $8A;var $8B;var $8C;var $8D=0;var $8E=0;var $8F=0;var $8G=0;function drag_dropns(name){if(!$8v)return;$8H=eval(name);$8H.captureEvents(Event.MOUSEDOWN|Event.MOUSEUP);$8H.onmousedown=gons;$8H.onmousemove=dragns;$8H.onmouseup=stopns;};function gons(e){$8H.captureEvents(Event.MOUSEMOVE);$8z=e.x;$8A=e.y;};function dragns(e){if($8y==1){$8H.moveBy(e.x-$8z,e.y-$8A);return false;}};function stopns(){$8H.releaseEvents(Event.MOUSEMOVE);};function msgpopshow(){var $8I=top.document.getElementById("sMsgPop");var $8J=document.getElementById("popmeup");var $8K=top.document.getElementById("dBlr");if(($8I!==null)&&($8J!==null)){$8I.innerHTML=$8J.innerHTML;msgpopsetposition();if($8K!==null){$8K.style.display="block";$8K.style.visibility="visible";};$8I.style.display="block";$8I.style.visibility="visible";$8I.style.zIndex=100000;window.onresize=function(e){msgpopsetposition();}}};function msgpopsetposition(){var $8I=top.document.getElementById("sMsgPop");var $8J=document.getElementById("popmeup");if(($8I!==null)&&($8J!==null)){var mw=235;var mh=198;var sw=top.document.body.clientWidth;var sh=top.document.body.clientHeight;var st=typeof(top.document.documentElement.scrollTop)=='number'?top.document.documentElement.scrollTop:0;if(0===st){st=top.document.body.scrollTop;};var l=315;var t=320;$8I.style.left=l+"px";$8I.style.top=t+"px";}};function msgcp($8L,$s){var $8M=document.getElementById('txtMSD');if((null !==$8N)&&(typeof $8M!=='undefined')){if(typeof $s==='undefined'){$8M.value='';}else{$8M.value=$s;}};var $8O=document.getElementById('txtMSA');if(($8M!==null)&&(typeof $8M!=='undefined')){$8O.value='';};gPS($8L);};function msgop($8L,TD){if(!ChckUserLoged()){gP(-1);return false;};var $8M=document.getElementById('txtMSD');if((null !==$8M)&&(typeof $8M!=='undefined')){$8M.value='';};var $8O=document.getElementById('txtMSA');if(($8M!==null)&&(typeof $8M!=='undefined')){$8O.value='';};PM($8L,TD);return true;};function msgsa($s,$8P){var $44;if(!(typeof $8P==='undefined')){$44=document.getElementById("hidParam");$44.value=$8P;};var $8O=document.getElementById('txtMSA');if(($8M!==null)&&(typeof $8M!=='undefined')){$8O.value=$s;};VS();};function msfPC($p,$8Q,TD){var $8R=$8Q.split("#");var $8S='?popmembers='+$p+'&fqs='+$8R[0]+'&fqt='+$8R[1];if((typeof TD!=='undefined')&&(TD!==null)){$8S+='&td='+TD;};windowOpen($p,true,(UseSSL()?"https://":"http://")+getURL($p)+$8S+'&rn='+GetRndNum(),"height="+g_windowSizeLarge[1]+",width="+g_windowSizeLarge[0]+",left=200,top=70");};function changeMultibet($8T){var $8U=$8T.value;updateSiteNavigationPB("c3id",$8U);SubmitForm();};function FL_AddSlip($0c){AddSlip($0c);};function FL_onData($8V){var $u=top.getObjHandle('bslip');if(null !==$u){$u.finProcessMessage($8V);}};function FL_connectionStatus($8V){var $u=top.getObjHandle('bslip');if(null !==$u){$u.finSetConnectionStatus($8V);}};function FL_subscribeTopic($8W){var $8X=top.getObjDocHandle('main');if(null !==$8X){var $8Y=$8X.getElementById('flash');if(null===$8Y){$8Y=$8X.getElementById('flash_embed');};if(null !==$8Y){if(typeof $8Y.subscribeToTopic!=='undefined'){$8Y.subscribeToTopic($8W);}else{setTimeout('FL_subscribeTopic("'+$8W+'")',1000);}}}};function FL_unsubscribeTopic($8W){var $8X=top.getObjDocHandle('main');if(null !==$8X){var $8Y=$8X.getElementById('flash');if(null===$8Y){$8Y=$8X.getElementById('flash_embed');};if(null !==$8Y){$8Y.unSubscribeFromTopic($8W);}}};function FL_placeBet(id,$8Z,$90){if(!(IsSlipCompatible(g_cintSportSlip))){return false;};var sData=id;var $91='#mt=1';var $92=0;var $93=0;if((typeof $8Z!=='undefined')&&($8Z!==null)){if(Number($8Z)==0){if((typeof $90!=='undefined')&&($90!==null)&&(Number($90)==1)){$91='#mt=3';$92=1;}else{$91='#mt=2';}}else if(Number($8Z)==1){$91='#mt=5';$92=2;}else if(Number($8Z)==2){$91='#mt=6';$92=3;}else if(Number($8Z)==3){$91='#mt=4';}};if(sData.indexOf(';')>0){sData=sData.replace(';','')};var $8X=top.getObjDocHandle('main');if($8X!==null){var $94=$8X.getElementById('txtCPID');if($94!==null){$93=$94.value;}};if((Number($92)>0)&&(Number($93)===9611)){var $1o=sData.match(/f=.*?#/);var $95=sData.match(/fp=.*?#/);$1o=String($1o).replace(/f\=/,'');$95=String($95).replace(/fp\=/,'');$92=$92+'#'+$1o+$95;if($8X!==null){var $96=$8X.getElementById('tRLP');if($96!==null){$96.value=$92;$8X.frmMain.submit();}}};sData=sData+$91;var rx=new RegExp('#f=[0-9]*#');sData=sData.replace(rx,'#');aBet(sData,1);};function FL_AddBet(id,$97,$98,$99){if(!(IsSlipCompatible(g_cintSportSlip))){return false;};var sData=id;var $91='#mt=1';var $92=0;var $93=0;var $8Z=null;var $90=null;var $9a='';if((typeof $99!=='undefined')&&($99!==null)){$8Z=$99.sizeMod;$90=$99.mode;};if((typeof $8Z!=='undefined')&&($8Z!==null)){if($8Z==false){if(Number($90)==0){$91='#mt=2';}}else if($8Z&&Number($90)==0){$91='#mt=3';}else if($8Z&&Number($90)==1){$91='#mt=5';$92=2;}else if($8Z&&Number($90)==2){$91='#mt=6';$92=3;}else if($8Z&&Number($90)==3){$91='#mt=4';}};if(sData.indexOf(';')>0){sData=sData.replace(';','')};var $8X=top.getObjDocHandle('main');if($8X!==null){var $94=$8X.getElementById('txtCPID');if($94!==null){$93=$94.value;}};if((Number($92)>0)&&(Number($93)===9611)){var $1o=sData.match(/f=.*?#/);var $95=sData.match(/fp=.*?#/);$1o=String($1o).replace(/f\=/,'');$95=String($95).replace(/fp\=/,'');$92=$92+'#'+$1o+$95;if($8X!==null){var $96=$8X.getElementById('tRLP');if($96!==null){$96.value=$92;$8X.frmMain.submit();}}};if((typeof $97!=='undefined')&&($97!==null)){$9a='|TP='+$97+'#FO='+$98+'#SU=1';};sData=sData+$91+$9a;var rx=new RegExp('#f=[0-9]*#');sData=sData.replace(rx,'#');aBet(sData,1);};function FL_slipCount(){var $N=SOGetCount(g_cstrTypeNormal);return($N);};function FL_slipItems(){var $N=SOGetCount(g_cstrTypeNormal);if(Number($N)>0){var $P=SOGetAllSingles(g_cstrTypeNormal,false);return($P);}};function FL_refreshSlip(){if(IsBSExists()){var $p=top.getObjDocHandle('bslip');if($p!==null){var $9b=$p.getElementById('pbTxt');if($9b.style.display===''){return false;};var $O=top.getObjDocHandle('SlipObj');if($O!==null){var $9c=$O.getElementById('bet-funds');var $9d=$O.getElementById('errtext');if($9d!==null){var $9e=$9d.getAttribute('PageID');var lQD=Number($9c.getAttribute('qd'))==1?1:0;if(($9c!==null)&&(Number($9c.value)==1)&&(Number(lQD)==1)){return false;}}}};RefreshSlip('0');};return true;};function AddSlip($0c){if(CheckState()!==true){return false;};if(!(IsSlipCompatible(g_cintFinSlip))){showFinancialsSlip();};$0c=$0c.replace(/,/g,'#');$0c+=('#'+g_cstrOpenBetsOpen+'='+SOfinGetOpenBetsOpen());$0c+=('#'+g_cstrOpenBetsList+'='+SOfinGetAllHiddenOpenBets());var $O=SOGetSlipObj();if(($O!==null)&&(typeof $O!=='undefined')){var $u=top.getObjHandle('bslip');$u.finClearSubs();SOSetFinancials($O,$0c);SOSetNormal($O,'');SOSetCast($O,'',false);SOSetType($O,g_cintTypeFinancials);SOSetFunction($O,g_cintAddFinancial);SOProcessSlip($O);LoadBS();};return true;};function gOF($v){if(CheckState()!==true){return;};var $0L="gOF";CookieTest();snp($v);ResetNavigationPB($v);SetFormPost($v);SubmitForm();};function LnhChat($9f,langID,$9g,$9h,$9i,$9j,$9k,TD){if(typeof($9g)=="undefined"||$9g==null){$9g="";};if((typeof $9h=='undefined')||($9h==null)){$9h=1;};var $9l='uid='+$9f+'&langID='+langID+'&sgid='+$9h+'&product='+$9j+'&site='+$9i+'&IsDLC='+$9k+'&skill='+$9g;if((typeof TD!=='undefined')&&(TD!==null)){$9m='./livechat.asp&'+$9l+'&td='+TD;}else{$9m='./livechat.asp&'+$9l;};var $1V='./sitetr.asp?rul='+$9m+'&rn='+GetRndNum();var width=g_windowSizeLiveChat[0];var height=g_windowSizeLiveChat[1];var $r=(screen.width/ 2)-(width/ 2);var $s=(screen.height/ 2)-(height/ 2);windowOpenLiveChat($1V,"height="+height+",width="+width+",left="+$r+",top="+$s);};function gAnchor($1m){window.location.hash=$1m;window.scrollBy(0,-180);};function GetSessionData($9n){if(document.frmMain[$9n]==='undefined'||document.frmMain[$9n]===null){return false;}else{return document.frmMain[$9n].value;}};function stringLength($9o){var $9p=$9o.length;return($9p);};function gIP($9q,$9r,$9s,$v,$0N,$0O,$0P,$0Q,$0R,$0S,$0T,$0U,$0V,$0W){var $1d=(parseFloat(document.frmMain.txtFlashVersion.value)>=reqFlashVersion);var $9t=(document.frmMain.txtFlashEnable.value==="true");if($1d&&$9t){if(Number($9q)===1){SetCookie("flash","FIXTURE_ID",$9s);SetCookie("flash","EVENT_ID","");}else{SetCookie("flash","EVENT_ID",$9r);SetCookie("flash","FIXTURE_ID","");};LaunchInPlay();}else{gPC($v,$0N,$0O,$0P,$0Q,$0R,$0S,$0T,$0U,$0V,$0W);}};function IsBSExists(){try{var $p=top.getObjHandle('bslip');var $9u=top.getObjHandle('SlipObj');if(($p!==null)&&($9u!==null)){return true;}else{return false;}}catch(e){return false;}};function flashCheck(){var $9v=GetCookie('flash','flmes');if($9v===null||typeof($9v)==="undefined"){$9v=0;}else{$9v=Number($9v);};var $9w=document.frmMain.txtFlashVersion.value;if($9w===""){$9w=0;}else{$9w=$9w.split(".");$9w=$9w[0];};if(document.frmMain.txtCPID.value==1010&&$9w<reqFlashVersion&&$9v!=1){detectFlash();cookiesStr="flash=flmes="+1+";expires=Sat, 01-Jan-2070 00:00:01 GMT;path=/";document.cookie=cookiesStr;}};function drawFlashMovie($12,$2w,$2x,$9x,$9y,$9z,$9A,$9B,$1T,$9C,$9D){if(typeof($9C)==="undefined"||$9C===null){$9C=$1T;};if(typeof($9D)==="undefined"||$9D===null){$9D="showall";};var $9E='<object id="'+$1T+'" classid="'+$12+'" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="'+$2w+'" height="'+$2x+'" > '+'<param name="movie" value="'+$9x+'"> '+'<param name="base" value="'+$9y+'"> '+'<param name="quality" value="'+$9A+'"/> '+'<param name="bgcolor" value="'+$9z+'"/> '+'<param name="wmode" value="'+$9B+'"/> '+'<param name="menu" value="false"/> '+'<param name="scale" value="'+$9D+'"/> '+'<param name="allowScriptAccess" value="true"/> '+'<embed id="'+$9C+'" name="'+$9C+'" wmode="'+$9B+'" quality="high" bgcolor="'+$9z+'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" width="'+$2w+'" height="'+$2x+'" src="'+$9x+'" base="'+$9y+'" menu="false" swLiveConnect="true" scale="'+$9D+'" allowScriptAccess="Always"></embed> '+'</object>';document.write($9E);};function SBL(sT){if(!ChckUserLoged()){gP(-1);return false;};var $9F=window.open('loadbal_v1.asp?'+sT,'SBL','width='+g_windowBalance[0]+',height='+g_windowBalance[1]+',scrollbars=no');};function shMSG(){var $9G=GetCookie('aps03','fmsg');if($9G!=1){setmsgboxtext(111);msgboxshow();SetCookie('aps03','fmsg','1');}};function SBL_Ex($2s,TD){if(!ChckUserLoged()){gP(-1);return false;};var $1V="./defaulthmr.asp"
$0p=$1V+"?popup=true&rn="+GetRndNum()+"&ibpid="+$2s;if((typeof TD!=='undefined')&&(TD!==null)){$9m=$0p+'&td='+TD;}else{$9m=$0p;};var $9H='./sitetr.asp?rul='+$9m;var width=g_windowBalance[0];var height=g_windowBalance[1];var $r=(screen.width/ 2)-(width/ 2);var $s=(screen.height/ 2)-(height/ 2);windowOpen($2s,true,$9H,"height="+height+",width="+width+",left="+$r+",top="+$s);};function detectFlash(){$9I=new MsgBox();$9I.setText(mlTxt[107],mlTxt[117]);$9I.show();var $9J=document.getElementById("msgboxbuttons1");if($9J!==null&&typeof($9J)!=="undefined"){$9J.style.display="none";};var $9K=document.getElementById("msgboxbuttons2");if($9K!==null&&typeof($9K)!=="undefined"){$9K.style.display="none";}};function getFlash(){var $9w=document.frmMain.txtFlashVersion.value;if($9w===""){$9w=0;}else{$9w=$9w.split(".");$9w=$9w[0];};if($9w==6&&(GetBrowser()=="FIREFOX"||GetBrowser()=="NETSCAPE"||GetBrowser()=="MOZILLA")){window.open("http://www.adobe.com/go/getflash");hideMsgBox();}else{$9I.setText(mlTxt[107],drawFlashLoader());}};function drawFlashLoader(){var $9L=GetCookie('aps03','lng');if(null===$9L){$9L='1';};var $9M="langid="+$9L;var $9E='<center><object codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" height="60" width="220" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000">';$9E=$9E+'<param name="src" value="loader.swf" />';$9E=$9E+'<param name="flashvars" value="'+$9M+'" />';$9E=$9E+'<param name="base" value="/home/" />';$9E=$9E+'<param name="wmode" value="transparent" />';$9E=$9E+'<embed flashvars="'+$9M+'" type="application/x-shockwave-flash" pluginspace="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" width="210" height="60" base="/home/" src="loader.swf'+$9M+'" menu="false" wmode="transparent"></embed>';$9E=$9E+'</object></center>';return $9E;};function reloadPage(){top.window.location=top.window.location;};function trim($9N){return $9N.replace(/^\s+|\s+$/,'');};function keyDown(e){if(document.layers){document.captureEvents(Event.KEYDOWN);document.onkeydown=function($5L){var $5M=document.all?event.keyCode:$5L.which?$5L.which:$5L.keyCode;if($5M=='e'.charCodeAt()||$5M=='E'.charCodeAt()){}else{alert(2);};return true;}};if(navigator.appName=='Netscape'){if(e.which==116){e.cancelBubble=true;e.preventDefault();e.stopPropagation();window.parent.frames[0].window.gP(-1);return false;}};if(navigator.appName=='Microsoft Internet Explorer'){if(window.event.keyCode==116){window.event.keyCode=0;window.parent.frames[0].window.gP(-1);return false;}}};document.onkeydown=keyDown;if(navigator.appName=='Netscape'){document.captureEvents(Event.KEYDOWN);};function launchBalance(){$0p='../popup.asp?popup=true&pageid=5702&rn='+GetRndNum();window.open($0p,"anew",$0f="toolbar=0,scrollbars=no,location=0,statusbar=0,menubar=0,resizable=0,width="+g_windowBalance[0]+",height="+g_windowBalance[1]);};function stsX(x){var $9O=true;var $9P=x.getAttribute("lang");var $9Q=x.getAttribute("leagueID");var $9R=x.getAttribute("homeID");var $9S=x.getAttribute("awayID");var g=x.getAttribute("sport");window.open('http://bet365.enetpulse.com/?lang='+$9P+'&stats='+$9O+'&h_id='+$9R+'&a_id='+$9S+'&g='+g+'&lid='+$9Q);};function cleanUpHTML($9T,$9U){var $9V=$9T;$9V=$9V.replace(/<TD[^>]*betPN\([^>]*>.*?<\/TD>/gi , '<td>&nbsp;</td>');$9V=$9V.replace(/<TD[^>]*mSB()\([^>]*>.*?<\/TD>/gi , '<td>&nbsp;</td>');$9V=$9V.replace(/<TD[^>]*vRS()\([^>]*>.*?<\/TD>/gi , "<td>&nbsp;</td>");$9V=$9V.replace(/<TD[^>]*RF()\([^>]*>.*?<\/TD>/gi , "<td>&nbsp;</td>");$9V=$9V.replace(/^images\/?/gi, "../images/");$9V=$9V.replace(/onclick=".*?"/gi,"");$9V=$9V.replace(/style=".*?"/gi,"");$9V=$9V.replace(/(<img[^>]*?src=")[^"]+?\/[^\/"0-9]+?[a-z0-9_\- ]*\.gif("[^>]*>)/gi,"$1../images/Ispacer.gif$2");$9V=$9V.replace(/(<img[^>]*src=")[^"]+?\/[^0-9]+\.gif("[^>]*>)/gi,"$1../images/Ispacer.gif$2");$9V=$9V.replace(/buttons\/Iinformation_new2.gif/gi,"Ispacer.gif");$9V=$9V.replace(/<a [^>]*?>(.*?)<\/a>/gi,"$1");$9V=$9V.replace(/<script [^>]*?>(.*?)<\/script>/gi," ");$9V=$9V.replace(/<div class=.*?[mobt|"mobt"]>.*?<\/div>/gi, "<div>&nbsp;</div>");$9V=$9V.replace(/<input.*?[^>]>/gi,"<img src=\"../images/Ispacer.gif\" width=\"10\" height=\"20\">");$9V=$9V.replace(/<tr class="blk_r_wh".*?[^<tr]<\/tr>/gi,"");$9V=$9V.replace('Close !','');if("IE"==GetBrowser()){var $6k=$9V.toUpperCase().indexOf("<SELECT");var $6l=($9V.toUpperCase().indexOf("</SELECT>")+9);for($6x=0;($6x<$6k);$6x++){var $9W=$9V.substring($6k,$6l);if($9W.toUpperCase().indexOf("SELECTED>")>0){var $9X=($9W.toUpperCase().indexOf("SELECTED>")+9);var $9Y=$9W.toUpperCase().indexOf("</OPTION>");$9Z=$9W.substring($9X,$9Y);$9V=$9V.replace($9W,$9Z);};$6k=$9V.indexOf("<SELECT");$6l=($9V.indexOf("</SELECT>")+9);}}else{var $6k=$9V.toUpperCase().indexOf("<SELECT");var $6l=($9V.toUpperCase().indexOf("</SELECT>")+9);for($6x=0;$6k!=-1;$6x++){var $9W=$9V.substring($6k,$6l);$9V=$9V.replace($9W,"");$6k=$9V.toUpperCase().indexOf("<SELECT");$6l=($9V.toUpperCase().indexOf("</SELECT>")+9);}};$9V=$9V.replace(/<donotprint.*?[^>]>.*?<\/donotprint>/gi,"&nbsp;");if("IE"==GetBrowser()){$9V=$9V.replace(/<tr.-*?[a-z0-9_\-"= ]*?><td.-*?[a-z0-9_\-"= ]*?><\/td><\/tr>/gi,"");if($9U=="0"){$9V=$9V.replace(/(<td[^>]*>)\s*(<\/td>)/gi,"$1&nbsp;$2");$9V=$9V.replace(/<tr[A-Za-z0-9_'=" ]+height="1".*?<\/tr>|<tr[A-Za-z0-9_'=" ]+height=1.*?<\/tr>/gi,"");$9V=$9V.replace(/<tr><td[^>]*>(&nbsp;)<\/td><\/tr>/gi,"");}}else{$9V=$9V.replace(/<tr.-*?[a-z0-9_\-"= ]*?><td.-*?[a-z0-9_\-"= ]*?><\/td><\/tr>/gi,"");$9V=$9V.replace(/(<td[^>]*>)\s*(<\/td>)/gi,"$1&nbsp;$2");$9V=$9V.replace(/<tr[A-Za-z0-9_'=" ><]+height="1".*?<\/tr>/gi,"");$9V=$9V.replace(/<tr[A-Za-z0-9_'="]+height="1".*?<\/tr>/gi,"");$9V=$9V.replace(/<tr><td[^>]*>(&nbsp;)<\/td><\/tr>/gi,"");};return $9V;};function CSpSt(){var $1T;var $a0=document.getElementById('tLGNF');if(typeof top.IsLoaded!=='undefined'){if((typeof $a0!=='undefined')&&($a0!==null)){return true;}else if(Number(document.frmMain.txtJL.value)==2){if(top.IsLoaded('SlipObj')){$1T=setTimeout('CSpSt()',100);}else{SOBSRefresh();document.frmMain.txtJL.value=0;}}else{if(top.IsLoaded('SlipObj')&&top.IsLoaded('bslip')){if(typeof(top.getObjHandle)!="undefined"){var $2a=top.document.getElementById('bslip');if((typeof $2a!=='undefined')&&($2a!==null)){$2a.style.display='block';LoadBS();}};if(Number(document.frmMain.txtJL.value)===1){var $u=top.getObjHandle('bslip');var $K=top.getObjDocHandle('bslip');if($u===null||$K===null){return false;};var $a1=GetCookie('aps03','lng');if(null===$a1){$a1='1';};var $E=document.getElementById('txtDOT');if(($E!==null)&&(typeof $E!=='undefined')){var $4a=$E.value;reloadBSF($4a);};var $a2=0;var $a3=$K.getElementById("txtSlipLng");if($a3!==null){$a2=$a3.value;};if(Number($a2)===Number($a1)){SORefresh();}else{SOBSRefresh();};document.frmMain.txtJL.value=0;var $a4=document.getElementById('tLbf');if(($a4!==null)&&(Number($a4.value)>0)){if(Number($a4.value)==1||Number($a4.value)==2){$u.fLBF(Number($a4.value)-1,"1","-9999");}else if(Number($a4.value)==3){mlAlert(200);var dl=document.getElementById('DepLnk');if(dl!==null){setTimeout('lDepWin()',1000);}}}}else if(Number(document.frmMain.txtJL.value)===3){SOClS();}else{SORefresh();}}else{$1T=setTimeout('CSpSt()',100);}}}};function lDepWin(){var dl=document.getElementById('DepLnk');dl.onclick()};function RefreshSlip($a5,$D){if(typeof top.IsLoaded!=='undefined'){if(!top.IsLoaded('bslip')){var $1T=setTimeout('RefreshSlip("'+$a5+'","'+$D+'")',100);}else{if(Number($a5)==1){SOBSRefresh();}else{SORefresh(false,$D);}}}};function backFunc($5L){var $a6=top.frames['SlipObj'];if((typeof $a6!=='undefined')&&($a6!==null)){var $a7=$a6.document;if((typeof $a7!=='undefined')&&($a7!==null)){var $2d=$a7.getElementById('txtSeqID');if((typeof $2d!=='undefined')&&($2d!==null)){var $a8=$2d.value;var $2e=GetCookie('seq','slip');if($2e!=$a8){SOProcessBrowserRefresh($a7);}}}}};function LaunchFlashTest($a9,$aa,$ab){var $2w=screen.width;var $2x=screen.height;var $2y,$2z,$2A;$2z=250;$2y=191;$2A=1;var $2C=Number(($2w-$2z)/2);var $2D=Number(($2x-$2y)/2);var $2E='./../home/Flash_InPlay/Flash_Tester.asp?size='+$2A+'&detectflash=false'+'&Mode='+$a9;if((typeof $a9=='undefined')||($a9==null)||(Number($aa)==1)||(Number($a9)==0)){window.open($2E,'ainp',$2F='toolbar=0,scrollbars=0,location=0,status=0,menubar=0,resizable=0,left='+$2D+',top='+$2C+',width='+$2z+', height='+$2y);}else{if(Number($ab)==3){$2E='http://get.adobe.com/es/flashplayer/';}else if(Number($ab)==4){$2E='http://get.adobe.com/fr/flashplayer/';}else if(Number($ab)==5){$2E='http://get.adobe.com/de/flashplayer/';}else if(Number($ab)==6){$2E='http://get.adobe.com/it/flashplayer/';}else{$2E='http://get.adobe.com/flashplayer/';};inPlayPopUp=window.open($2E,'ainplay',$2F='left='+$2D+',top='+$2C+',width=750, height=880');}};function LdStrmSoccer($ac){var width=g_windowSizeLiveStreaming[0];var height=g_windowSizeLiveStreaming[1];var $r=(screen.width/ 2)-(width/ 2);var $s=(screen.height/ 2)-(height/ 2);window.open('./LiveStreaming/LiveStreaming.asp?AustralianOpen=1&LangID='+$ac,'streamingsoccer','width='+width+',height='+height+',left='+$r+',top='+$s+',status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes');};function doBonusSubmit(e){var $ad=true;var $5M=document.all?event.keyCode:e.which?e.which:e.keyCode;if($5M!==null&&typeof($5M)!="undefined"){if($5M==13){var $2u=document.getElementById("txtCPID");if($2u!==null&&typeof($2u)!="undefined"){VS();$ad=false;}}else{$ad=true;}};return $ad;};function GetFlashVersion(){var $ae;var $af=document.getElementById("txtFlashVersion");if($af.value===""){var $ag=swfobject.ua.pv;if($ag[0]>0){$ae=$ag[0]+"."+$ag[1]+"."+$ag[2];}else{$ae=0;}}else{$ae=$af.value;};$af.value=$ae;return $ae;};function LaunchInPlay2(TD){if(FL_slipCount()>0){FL_refreshSlip();};if(window.focus){window.focus();};gP(9610,TD);return;};function LaunchFinancials(){if(IsSlipCompatible(g_cintFinSlip)){gP(9611);}};function showFinancialsSlip(){var $p=top.frames['bslip'];if(null !==$p){var $1V=$p.location.href;$p.location.replace($1V=$1V.replace("fin=0","fin=1"));};$p=top.frames['bsliptop'];if(null !==$p){var $1V=$p.location.href;$p.location.replace($1V=$1V.replace("fin=0","fin=1"));};$p=top.frames['SlipObj'];if(null !==$p){var $1V=$p.location.href;$p.location.replace($1V=$1V.replace("process=y",""));}};function hideFinancialsSlip(){var $p=top.frames['bslip'];if(null !==$p){var $1V=$p.location.href;$p.location.replace($1V.replace("fin=1","fin=0"));};$p=top.frames['bsliptop'];if(null !==$p){var $1V=$p.location.href;$p.location.replace($1V=$1V.replace("fin=1","fin=0"));}};function mlMultiAlert($ah){var $ai=document.getElementById("waitTextDiv");if($ai!==null&&typeof($ai)!="undefined"){$ai.style.display="none";$ai.style.visibility="hidden";};var $9E=mlMsg($ah)+"\r\n\r\n";if(arguments.length>0){for(var i=1;i<arguments.length;i++){var id=arguments[i];$9E=$9E+" -"+mlMsg(id)+"\r\n";}};alert($9E);};function mlMultiAlertV2(){var $ai=document.getElementById("waitTextDiv");if($ai!==null&&typeof($ai)!="undefined"){$ai.style.display="none";$ai.style.visibility="hidden";};var $9E=mlMsg(arguments[0])+"\r\n\r\n";for(var i=1;i<arguments.length;i++){var id=arguments[i];if(id=="|"){break;}else{$9E=$9E+" -"+mlMsg(id)+"\r\n";}};var j=i+1;if(arguments[j+1]!==null){$9E=$9E+"\r\n"+mlMsg(arguments[j])+"\r\n\r\n";for(i=j+1;i<arguments.length;i++){var id=arguments[i];$9E=$9E+" -"+mlMsg(id)+"\r\n";}};alert($9E);};function addbet365tofav($1V,$aj,$ak){title="bet365 ";$2t="http://"+$1V;title=($aj);if(window.sidebar){window.sidebar.addPanel(title,$2t,"");}else if(window.external){window.external.AddFavorite($2t,title);}};function cpnBK(TD){var $al=document.getElementById('txtSiteNavigationPB');var $am=document.getElementById('txtSNPPB');if($al!==null&&$am!==null){var $2s=GetNavigationPB('pagetemplateid',0,$am);var $an=GetNavigationPB('classificationid',0,$am);if(Number($an)>0){document.frmMain.txtClassID.value=$an;snp($2s);}else{snp(1010);};$al.value=$am.value;setTD(TD);SubmitForm();};return false;};function launchLS(langID,TD){var width=g_windowSizeLiveStreaming[0];var height=g_windowSizeLiveStreaming[1];var $r=(screen.width/ 2)-(width/ 2);var $s=(screen.height/ 2)-(height/ 2);var $9m='';if((typeof TD!=='undefined')&&(TD!==null)){$9m='./LiveStreaming/LiveStreaming.asp&langid='+langID+'&td='+TD;}else{$9m='./LiveStreaming/LiveStreaming.asp&langid='+langID;};var $1V='./sitetr.asp?rul='+$9m+'&rn='+GetRndNum();window.open($1V,'lsw','width='+width+',height='+height+',left='+$r+',top='+$s+',status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes');};function Tgle($2J,$ao,id){var oN=$2J.id;var $ap,$aq;if(Number(id)==1){$ap=document.getElementById($ao+'2');$aq=document.getElementById($ao+'1');if($ap!==null&&$aq!==null){switch(GetBrowser()){case 'SAFARI':case 'NETSCAPE':$ap.style.visibility='hidden';$aq.style.display='block';$aq.style.visibility='visible';break;case 'OPERA':case 'FIREFOX':$aq.style.display='block';$aq.style.visibility='visible';$ap.style.display='none';break;default:$aq.style.visibility='visible';$aq.style.display='block';$ap.style.display='none';break;};$aq.focus();}}else{$ap=document.getElementById($ao+'2');$aq=document.getElementById($ao+'1');if($ap!==null&&$aq!==null&&$2J.value.length===0){switch(GetBrowser()){case 'SAFARI':case 'NETSCAPE':$aq.style.visibility='hidden';$ap.style.display='block';$ap.style.visibility='visible';break;case 'OPERA':case 'FIREFOX':$ap.style.display='block';$ap.style.visibility='visible';$aq.style.display='none';break;default:$ap.style.visibility='visible';$ap.style.display='block';$aq.style.display='none';break;}}}};window.onscroll=function(e){if('function'===typeof(top.ScrollContent)){top.ScrollContent();};if((document.getElementById("popmeup")!==null)&&(top.document.getElementById("sMsgPop")!==null)){msgpopsetposition();}};function ShB($2J,$ar){var $as=$2J.getAttribute('bd');var $at=$2J.getAttribute('col');var $au=$2J.className;if($au.indexOf(' z')>0){$au=$au.replace(' z',' w');}else{if($au.indexOf(' w')>0){$au=$au.replace(' w',' z');}};if($au.indexOf(' it2')==-1){$au=$au+' it2';$2J.className=$au;}else{$2J.className=$au;};if($2J.style.backgroundColor.length){$2J.style.backgroundColor='';}else{$2J.style.backgroundColor='#FEF5BA';aBet($as);};if(($at!==null)&&(Number($at)>0)&&(typeof $ar=='undefined')){var $48;if(Number($at)==1){$48=$2J.nextSibling;ShB($48,1);};if(Number($at)==2){$48=$2J.previousSibling;ShB($48,1);}}};function hTM($2J,e){if(Number(e)==1){$2J.src=$2J.src.replace(/1.png/g,'2.png');};if(Number(e)==2){$2J.src=$2J.src.replace(/2.png/g,'1.png');}};function LoadMIP($av){try{if(!top.IsLoaded('inplay')){var $1T=setTimeout('LoadMIP()',500);}else{var $aw=top.getObjDocHandle('inplay');if($aw!==null){var $ax=$aw.getElementById('tSBPID');var $ay=$aw.getElementById('txtClassID');var $az=$aw.getElementById('txtDOT');var $aA=$aw.getElementById('PageType');var $aB=$aw.getElementById('imgDiv');var $aC=$aw.getElementById('txtNPID');var $aD=$aw.getElementById('txtsd');var $aE=$aw.getElementById('txtTKN');var $aF=document.getElementById('txtCPID');var $aG=document.getElementById('txtClassID');var $aH=document.getElementById('txtDOT');var $aI=document.getElementById('imgDiv');var $aJ=document.getElementById('txtsd');var $aK=document.getElementById('txtTKN');var $aL=0;var $aM=0;var $aN=0;var $aO=0;var $aP=0;var $aQ=0;var $aR=0;var $aS=0;var $aT=$av;if(($aK!==null)&&($aE!==null)){$aE.value=$aK.value;};if($aF!==null){$aL=$aF.value;};if(Number($aL)==1022){return false;};if($ax!==null){$aM=$ax.value;};if($aG!==null){$aN=$aG.value;};if($ay!==null){$aO=$ay.value;};if($aH!==null){$aP=$aH.value;};if($az!==null){$aQ=$az.value;};if($aA!==null){$aR=$aA.value;};if($aJ!==null){$aS=$aJ.value;};if(Number($aL)==1010&&$aR!=='H'&&(!$aT)){$aN=0;$aT=true;};if(Number($aL)==9610&&$aR!=='F'&&(!$aT)){$aT=true;};if(Number($aL)==9611&&$aR!=='F'&&(!$aT)){$aT=true;};if((Number($aP)!==Number($aQ))&&(!$aT)){$aT=true;};if($aR!=='S'&&(!$aT)){$aT=true;};if((Number($aN)!==Number($aO))&&($aR=='S')&&(!$aT)){var $aU='';if($aI!==null){$aU=$aI.innerHTML;};if(($aB!==null)&&($aU.length!==0)){$aB.innerHTML=$aU;var $aV=top.getObjHandle('inplay');if($aV!==null){$aV.ResizeIP();}};if(($aF!==null)&&($ax!==null)){$ax.value=$aL;};if(($aG!==null)&&($ay!==null)){$ay.value=$aN;};if(($aH!==null)&&($az!==null)){$az.value=$aP;};if($aD!==null){$aD.value=$aS;}};if($aT){if(($aF!==null)&&($ax!==null)){$ax.value=$aL;};if(($aG!==null)&&($ay!==null)){$ay.value=$aN;};if(($aH!==null)&&($az!==null)){$az.value=$aP;};if($aC!==null){$aC.value=1022;};if($aD!==null){$aD.value=$aS;};if($aw.frmMain.action.indexOf('?')===-1){$aw.frmMain.action=$aw.frmMain.action+'?rn='+GetRndNum();};$aw.frmMain.submit();}}}}catch($27){}};function WScroll(){if((top!==null)&&(typeof top!=='undefined')){if((top.window!==null)&&(typeof top.window!=='undefined')){top.window.scroll(0,0);};if(typeof top.SetDiemens=='function'){top.SetDiemens();}}};function goOffer($2s,$aW,TD){var $aX=document.getElementById("sitegroupid");if(($aX!==null)&&(Number($aW)>=0)){$aX.value=$aW;};gP($2s,TD);};function launchPromo($aY){if(typeof $aY=="undefined"){$aY="";};window.open('Promotions/bet365promo.asp?'+$aY,"bet365promo","height=500,width=540,status=no,toolbar=no,menubar=no,location=no,left=200,top=200,scrollbars=no,resizable=no");return false;};function SetSGID($aZ){var $b0=document.getElementById("sitegroupid");$b0.value=$aZ;};function setTD($z){if((typeof $z!=='undefined')&&($z!==null)){var $b1=document.getElementById("tTD");if($b1!==null){$b1.value=unescape($z);}}};function LdStrmETote($b2,$b3,$b4){var $r=GetScrennWidth();var $s=GetScrennTop();var $1V='./EtoteStream.asp?sid='+$b2+'&stm='+$b3+'&fxid='+$b4+'&rn='+GetRndNum();window.open($1V,"etotestream","height=600,width=600,status=no,toolbar=no,menubar=no,location=no,left="+$r+",top="+$s+",scrollbars=yes,resizable=no");};function LdFormETote($b5){if(CheckState()!==true){return;};var $ac=GetNavigationPB("languageid",1);var $0p="prevform.asp?greyform=1&fxid="+$b5+"&lid="+$ac;window.open($0p,"bet365_Form",$0f="height=600,width=1023,left=150,top=200,toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=0");};function UpdateExtSession($b6){var $b7=false;if(typeof top.getIFObj!=='undefined'&&typeof top.getIFObj=='function'){var $1W=top.getIFObj('flshCK');if($1W!==null&&typeof $1W!=='undefined'){$1W.state=0;$b7=true;}};var $b8=document.getElementById('txtTKN');if(typeof($b8)!=='undefined'||$b8!==null){$b8.value=$b6;gP(-1);if($b7){$1W.state=1;}}};function LBS(sD,$b9){if(CheckState()!==true){setTimeout('LBS("'+sD+'","'+$b9+'")',1000);};if(!top.IsLoaded('bslip')){setTimeout('LBS("'+sD+'","'+$b9+'")',1000);};if((CheckState()==true)&&top.IsLoaded('bslip')){var $K=top.getObjDocHandle('bslip');if($K!==null){aBet(sD,'undefined',"1",$b9);}}};function launchRules($v,$ba,$2s,$bb){var qs="?ibpid="+$v+"&sg="+$ba+"&sctid=1&prd="+$2s+"&lng="+$bb+'&rn='+GetRndNum();windowOpen($v,true,(UseSSL()?"https://":"http://")+getURL($v)+qs,"height="+g_windowSizeLarge[1]+",width="+g_windowSizeLarge[0]+",left=200,top=70");};function IsSlipCompatible($bc){var $w=null;if(Number($bc)===Number(g_cintSportSlip)){$w=SOIsFinancials();if($w!==null){if((Number($w)===1)&&(mlConfirm(220))){hideFinancialsSlip();return true;}else if(Number($w)===0){hideFinancialsSlip();return true;}else if(Number($w)===-1){return true;}};return false;}else if(Number($bc)===Number(g_cintFinSlip)){var $bd=SOSelectionCount();$w=SOIsFinancials();if($w!==null){if((Number($w)===-1)&&(Number($bd)>0)){if(mlConfirm(221)){showFinancialsSlip();return true;}else{return false;}}else if(Number($w)===-1){showFinancialsSlip();return true;}else if(Number($w)>=0){return true;}};return false;}};function FL_FinancialsState(sData){var $be=document.getElementById('tFLS');if($be!==null){$be.value=sData;}};function LIDF(){var $u=top.getObjHandle('bslip');if($u!==null){var $a4=document.getElementById('tLbft');if(($a4!==null)&&(Number($a4.value)==1||Number($a4.value)==2)){$u.fLBF(Number($a4.value)-1,"1","-9999");}else{var dl=document.getElementById('DepLnk');if(dl!==null){setTimeout('lDepWin()',1000);}}}};function reloadBSF($4a){var $u=top.getObjHandle('bslip');if($u!==null){$u.ReloadBSFlsh($4a);}else{var $1T=setTimeout('reloadBSF('+$4a+')',1000);}};function FL_UBS($bf,$3w){var $bg='';var $bh='';var $bi='';var $bj='';var $bk='';var $0b='';var $bl='';var $bm=-1;var $bn='';var $bo='';var $u=top.getObjHandle('bslip');var $bp=false;var $bq=top.getObjDocHandle('bslip');if($bq!==null){var $4D=$bq.getElementById('pbTxt');if($4D!==null){if($4D.style.display==''){return false;}}};for(var i in $bf.data){switch(i){case 'HA':$bg=$bf.data[i];break;case 'HD':$bh=$bf.data[i];break;case 'HS':$bk=$bf.data[i];break;case 'ID':$0b=$bf.data[i];break;case 'OD':$bi=$bf.data[i];break;case 'convertedOdds':$bj=$bf.data[i];break;case 'SU':$bm=$bf.data[i];break;case 'SA':$bn=$bf.data[i];break;case 'IT':$bo=$bf.data[i];break;case 'FI':$bl=$bf.data[i];break;default:break;}};$bo=$bo.length==0?$3w:$bo;$bm=$bf.type=='D'?1:$bm;var $br=false;if($bq!==null){$bs=$bq.getElementById('SelCount');if($bs!==null){$bs=lrtrim($bs.innerHTML);if(($bs.length>0)&&(!isNaN(Number($bs)))){$bd=Number($bs);}else{$bd=0;}};if($bd===0){$bd=14;};for($bt=1;$bt<=$bd;$bt++){$bu=$bt+1000;$bs=$bq.getElementById('pbn'+$bu);$bp=false;if($u!==null){$bp=$u.isBSS($bu);};if($bs!==null){$bv=lrtrim($bs.innerHTML);var $bw=$bv.split('#');var $bx='';var $by='0';var $bz='';var $bA='';var $bB='';var $bC='';var $bD='';var $bE='';var $bF='';var $bG=$bs.getAttribute('tp')!==null?$bs.getAttribute('tp'):'';for(var j=0;j<$bw.length;j++){var $bH=$bw[j].split('=');if($bH[0]){switch($bH[0]){case 'pt':$bx=$bH[1];break;case 'so':$by=$bH[1];break;case 'o':$bz=$bH[1];break;case 'f':$bA=$bH[1];break;case 'fp':$bB=$bH[1];break;case 'c':$bC=$bH[1];break;case 'ln':$bD=$bH[1];break;case 'sa':$bE=$bH[1];break;case 'mt':$bF=$bH[1];break;default:break;}}};if($bo==$bG){var $bI='pt=N#so=0#o=OD#fp=FP#c=CL#ln=HA#sa=SA#';$bI=$bI.replace('OD',($bi.length>0?$bi:$bz));$bI=$bI.replace('FI',$bA);$bI=$bI.replace('FP',$bB);$bI=$bI.replace('CL',$bC);$bI=$bI.replace('HA',($bg.length>0?$bg:$bD));$bI=$bI.replace('SA',($bn.length>0?$bn:$bE));if(($bi!==$bz)&&($bj!==null)){var oO=$bq.getElementById('do'+$bu);var $bJ=true;if(oO!==null){var $bK=$bq.getElementById('optOdds'+$bu);if($bK!==null){$bK[1].text=$bj;$bK[1].value='1#'+$bi;$bJ=false;if($bK.selectedIndex==1){$bJ=true;oO.style.width="20px";oO.style.display="block";oO.className='scn';}}else{oO.innerHTML=$bj;oO.className='scn';}};oO=$bq.getElementById('Odds'+$bu);if(oO!==null){oO.value=$bi;};oO=$bq.getElementById('Risk'+$bu);if(oO!==null){oO.onkeyup();};$bs.innerHTML=$bI;$bs.setAttribute('ix',$bk);$br=$bJ;};if(($bg!==$bD)&&($bg.length>0)&&($bh.length>0)){var oL=$bq.getElementById('dl'+$bu);if(oL!==null){oL.innerHTML=$bh;oL.className='scn';};$bs.innerHTML=$bI;$bs.setAttribute('ix',$bk);$br=true;};if(Number($bm)>0){$u=top.getObjHandle('bslip');$u.bsSS($bu,true);var $bL=$bq.getElementById('multiHeader');var $bM=$bq.getElementById('multiples');var $bN=$bq.getElementById('imgMop');var $bO=$bq.getElementById('txtBSMS');if(($bO!==null)&&($bO.value>0)){if($bL!==null){$bL.style.display='none';};if($bM!==null){$bM.style.display='none';};if($bN!==null){var $51=$bN.replace(/bsmb.gif/g,'bsmb2.gif');$bN.src=$51}};$br=true;}else if(Number($bm)==0){var $u=top.frames['bslip'];$u.bsSS($bu,false);}}}};if($br){var $bP=$bq.getElementById('lnkPB');var $bQ=$bq.getElementById('lnkIPB');var $bR=$bq.getElementById('lnkAB');var $bS=$bq.getElementById('tntc');var $bT=$bq.getElementById('trlm');if($bP!==null){$bP.style.display='none';$bP.style.visibility='hidden';};if($bQ!==null){$bQ.style.display='';$bQ.style.visibility='visible';};if($bR!==null){$bR.style.display='';$bR.style.visibility='visible';};if($bS!==null){$bS.style.display='';$bS.style.visibility='visible';};if($bT!==null){$bT.style.display='none';$bT.style.visibility='hidden';};if(top.resizeBslipWin()){top.resizeBslipWin();}}}};var flclients=[];function registerFlashClient(id){flclients.push(id);if((typeof top.startTmrs!=='undeined')&&(top.startTmrs!==null)){top.startTmrs();}};function getIFrame($bU){var $bV;for(var i=0;i<window.frames.length;i++){if(window.frames[i].name==$bU||window.frames[i].id==$bU){$bV=window.frames[i];break;}};return $bV;};function RemoveFlashObject(bK){try{var el=document.getElementById(bK);if(el!=null){el.pageUnloading();};swfobject.removeSWF(bK);}catch(bL){}};function CheckFlashConnections(){try{var $bW=getIFrame("dataFrame");}catch($27){}};function RemoveClients(){try{var el=top.document.getElementById('WC');el.removeClients(flclients);}catch($27){}};function RemoveFlashObjects(){RemoveFlashObject('flashtl');RemoveFlashObject('flash');RemoveFlashObject('flashraces');RemoveFlashObject('flashhigh');RemoveClients();};function showMessageWindow($v){if(GetBrowser()=="CHROME"&&document.getElementById("txtFlashVersion").value=="0"){return;};if(typeof top.getIFObj!=='undefined'&&typeof top.getIFObj=='function'){var $5P=top.frames['messageWindow'];if(($5P!==null)&&(typeof $5P!=='undefined')){var $bX=document.getElementById("txtMURL").value;var $2t=document.getElementById("txtURL").value.replace("mainpage.asp","");$2t="http://"+$2t+"openMessage.asp?url="+String($bX)+"&pageID="+String($v)+"&pageSourceID=1"+"&rn="+GetRndNum();$5P.location=$2t;}}};function showLIW(){var $u=top.getObjDocHandle('bslip');var $bY=top.getObjDocHandle('bsliptop');if($u!==null){var $bZ=$u.getElementById('dLgn');var $c0=$u.getElementById('dLCnt');var $c1=$bY.getElementById('dLgn');var $c2=$u.getElementById('txtUserName1');var $c3=$u.getElementById('txtPassword1');if($c2!==null){$c2.value="";$c2.onblur($c2);};if($c3!==null){$c3.value="";$c3.onblur($c3);};if($c1!==null){$c1.style.display="";$c1.style.visibility="visible";};if($bZ!==null){$bZ.style.display="";$bZ.style.visibility="visible";};if($c0!==null){$c0.style.display="";$c0.style.visibility="visible";}}else{var $1T=setTimeout('showLIW()',100);}};function hideLIW(id){var $u=top.getObjDocHandle('bslip');var $bY=top.getObjDocHandle('bsliptop');if($u!==null){var $bZ=$u.getElementById('dLgn');var $c0=$u.getElementById('dLCnt');var $c1=$bY.getElementById('dLgn');var $c4=$u.getElementById('trlm');if($bZ!==null){$bZ.style.display="none";$bZ.style.visibility="hidden";};if($c0!==null){$c0.style.display="none";$c0.style.visibility="hidden";};if($c1!==null){$c1.style.display="none";$c1.style.visibility="hidden";};if(typeof id=='undefined'){if($c4!==null){$c4.style.display="none";$c4.style.visibility="hidden";}};if(top.resizeBslipWin()){top.resizeBslipWin();}}else{var $1T=setTimeout('hideLIW()',100);}};function bsLI(){var $8X=top.getObjDocHandle('main');var $u=top.getObjDocHandle('bslip');if($8X!==null){var $c5=$8X.getElementById('txtUserName1');var $c6=$8X.getElementById('txtPassword1');var $c7=$8X.getElementById('aLGI');var $c2=$u.getElementById('txtUserName1');var $c3=$u.getElementById('txtPassword1');if($c5!==null){$c5.value=$c2.value;};if($c6!==null){$c6.value=$c3.value;};if($c7!==null){$c7.onclick();}}else{var $1T=setTimeout('bsLI()',100);}};function bsELI($5L){var $5M=document.all?event.keyCode:$5L.which?$5L.which:$5L.keyCode?$5L.keyCode:$5L.charcode;var $u=top.getObjDocHandle('bslip');if($u!==null){var $5N=$u.getElementById('txtUserName1');var $5O=$u.getElementById('txtPassword1');if(typeof $5N!==null&&typeof $5O!==null){if($5N.value.length>0&&$5O.value.length>0&&Number($5M)==13){bsLI();}}}};function bsJN(){var $8X=top.getObjDocHandle('main');if($8X!==null){var $c8=$8X.getElementById('ajn');if($c8!==null){$c8.onclick();}}else{var $1T=setTimeout('bsJN()',100);}};function shFLPW(id){var $c9=top.document.getElementById("dFLN");var $ca=top.document.getElementById("dFLNC");var $cb=document.getElementById("dFLNPW");var $cc=document.getElementById("dFLNW");if(($c9!==null)&&($ca!==null)){if($cb!==null){if(Number(id)==0){hideLIW('1');$c9.style.display="block";$c9.style.visibility="visible";$ca.innerHTML=$cc.innerHTML;$ca.style.display="block";$ca.style.visibility="visible";$ca.style.zIndex=100000;flwpos();}else{hideLIW('1');$c9.style.display="block";$c9.style.visibility="visible";$ca.innerHTML=$cb.innerHTML;$ca.style.display="block";$ca.style.visibility="visible";$ca.style.zIndex=100000;flwpos();};window.onresize=function(e){flwpos();}}}};function flwpos(){var $8I=top.document.getElementById("dFLNC");if($8I!==null){var mw=235;var mh=198;var sw=top.document.body.clientWidth;var sh=top.document.body.clientHeight;var st=typeof(top.document.documentElement.scrollTop)=='number'?top.document.documentElement.scrollTop:0;if(0===st){st=top.document.body.scrollTop;};var l=315;var t=215;$8I.style.left=l+"px";$8I.style.top=t+"px";}};function hdFLPW(){var $c9=top.document.getElementById("dFLN");var $ca=top.document.getElementById("dFLNC");var $cd=document.getElementById("tLGF");if(($c9!==null)&&($ca!==null)){if($cd!==null){$cd.value="0";};$c9.style.display="none";$c9.style.visibility="hidden";$ca.style.display="none";$ca.style.visibility="hidden";}};function flLC(id){var $ce=null;switch(id){case 'll':$ce=document.getElementById("aLLL");break;case 'lc':$ce=document.getElementById("lnkCHAT");break;};if($ce!==null){$ce.onclick();}};function flGO(){var $8X=top.getObjDocHandle('main');if($8X!==null){var $cf=top.document.getElementById("txtFLUserName");var $cg=top.document.getElementById("txtFLPassword");var $c5=$8X.getElementById('txtUserName1');var $c6=$8X.getElementById('txtPassword1');var $c7=$8X.getElementById('aLGI');if($c5!==null){$c5.value=$cf.value;};if($c6!==null){$c6.value=$cg.value;};if($c7!==null){$c7.onclick();};shFLPW('1');}else{var $1T=setTimeout('flGO()',100);}};function GetNAVVer(){return 'Navigation_vA062cr';}


