
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;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;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 $00='';var $01=false;var $02='';var $03='';var $04='';var $O=SOGetSlipObj();if($K!==null){var $M=$K.getElementById('chkRtnSlns');$L=$M!==null?true:false;if(($M!==null)&&(!$M.checked)){$Z=false;}};var $05=false;var $06=document.getElementById('chkCouponSelected');if($06!==null){$06=$06.value;if($06.indexOf('#73#')>0){$05=true;}};if((4520==document.frmMain.txtCurrentPageID.value)||(($05)&&(4999==document.frmMain.txtCurrentPageID.value))){$04=ProcessUS(1);$02=ProcessUS();$03=ProcessCast();if(($04.length>0)&&($02.length>0)){$04="";};if($04.length>0){if(!SOValidCombi(g_cstrTypeNormal)){return false;};$02="";$03="";SOSetUSHorse($O,"");$04=SOGetAllSingles(g_cstrTypeNormal,false)+$04;SOSetCast($O,"");}else{if(!SOValidCombi(g_cstrTypeUS)){return false;};$04="";SOSetNormal($O,"");$02=SOGetAllSingles(g_cstrTypeUS,false)+$02;$03=SOGetCastData(g_cstrTypeUS,false)+$03;};ResetUSHorseCoupon();SOSetUSHorse($O,$02);SOSetNormal($O,$04);SOSetCast($O,$03);}else if(4525==document.frmMain.txtCurrentPageID.value){var $07=Number(document.getElementById('txtClassID').value)==4?g_cstrTypeETote:g_cstrTypeTote;if(!SOValidCombi($07)){return false;};$02=ProcessTote($07);$03=ProcessCast();ResetToteCoupon();if(document.frmMain.chkBanker){vTB(document.frmMain.chkBanker);};$02=SOGetAllSingles($07,false)+$02;$03=SOGetCastData($07,false)+$03;if($07==g_cstrTypeETote){SOSetETote($O,$02);}else{SOSetTote($O,$02);};SOSetCast($O,$03);}else if(4530==document.frmMain.txtCurrentPageID.value||4535==document.frmMain.txtCurrentPageID.value){if(!SOValidCombi(g_cstrTypeTote)){return false;};$03=ProcessPot();$02=SOGetAllSingles(g_cstrTypeTote,false)+$02;$03=SOGetCastData(g_cstrTypeTote,false)+$03;SOSetTote($O,$02);SOSetCast($O,$03);}else if(4521==document.frmMain.txtCurrentPageID.value){if(!SOValidCombi(g_cstrTypeUS)){return false;};$03=ProcessPot();$02=SOGetAllSingles(g_cstrTypeUS,false)+$02;$03=SOGetCastData(g_cstrTypeUS,false)+$03;SOSetUSHorse($O,$02);SOSetCast($O,$03);}else if(4522==document.frmMain.txtCurrentPageID.value){if(!SOValidCombi(g_cstrTypeETote)){return false;};$03=ProcessPot();$02=SOGetAllSingles(g_cstrTypeETote,false)+$02;$03=SOGetCastData(g_cstrTypeETote,false)+$03;SOSetETote($O,$02);SOSetCast($O,$03);}else{if(!SOValidCombi(g_cstrTypeNormal)){return false;};$03=ProcessCast();var i;var $08=['chkE','chkT','chkS','chk2','chk3','chk4'];var $09=0;for(i=0;i<$08.length;i++){SetElementDisabledState($08[i],false);SetElementCheckedState($08[i],false);};var $N=SOGetCount(g_cstrTypeNormal);for(i=0;i<document.frmMain.elements.length;i++){var $0a=document.frmMain.elements[i].name;if($0a.substring(0,3)=="chk"){var $0b=document.frmMain.elements[i];if($0b.checked){if(($N+$09)<g_MaxSelections){var $0c=FrmtBS($0b.value);if(SONotExists($0c,g_cstrTypeNormal,false)){$02=$02+$0c+';';$09=$09+1;}else{$01=true;};$0b.checked=false;}else{mlAlert(2);break;}}}};if($01){mlAlert(53);};$02=SOGetAllSingles(g_cstrTypeNormal,false)+$02;$03=SOGetCastData(g_cstrTypeNormal,false)+$03;SOSetNormal($O,$02);SOSetCast($O,$03);};if(($04.length!==0)||($02.length!==0)||($03.length!==0)){if(!$L){SOCloseMultiOption();}else{var $R=$K.getElementById('txtBSMS');if($R!==null){$R.value='0';}};if($03.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($0d){$0d=$0d.replace(/pendingtype=/g,'pt=');$0d=$0d.replace(/#selectionorder=/g,'#so=');$0d=$0d.replace(/#odds=/g,'#o=');$0d=$0d.replace(/#fixture=/g,'#f=');$0d=$0d.replace(/#fixturepart=/g,'#fp=');$0d=$0d.replace(/#classificationid=/g,'#c=');$0d=$0d.replace(/#line=/g,'#ln=');$0d=$0d.replace(/#Line=/g,'#ln=');$0d=$0d.replace(/#fpidplayer=/g,'#pid=');$0d=$0d.replace(/#fpidmatch=/g,'#mid=');return $0d;};function mSB(){var $0e=document.getElementsByTagName('input');var sC=0;for(var i=0;i<$0e.length;i++){if($0e[i].type=='checkbox'){if($0e[i].checked){sC=sC+1;}}};unhighlightallselection(document.frmMain,1);if(!CheckState()){return false;};if(!CookieTest()){return false;};if(mS(sC)){return true;}};function OpenCertDetails($0f){window.open($0f,"anew",$0g="height=400,width=450,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,directories=no,status=yes");};function pD(){CookieTest();var $0h="status=no,toolbar=no,menubar=no,resizable=yes,location=yes,alwaysRaised=yes";var $0f="https://www.paypal.com/cgi-bin/webscr?cmd=_ext-enter&redirect_cmd=_xclick";var $0i="&business=customerservices@bet365usa.com&item_name=Bet365 Deposit&no_note=1&no_shipping=1";var $0j="&amount="+document.all.txtDeposit.value;var w=window.open(($0f+$0i+$0j),"bet365popup",$0h);snp(2260);SubmitForm();};function scorecastUpdateOdds($C){var $0k=$C.options[$C.selectedIndex].value.split("%");window.document.frmMain.txtParticipantCode.value=$0k[0];window.document.frmMain.txtOdds.value=$0k[1];};function sP($0l,$0m){$0n="popupid="+$0l;$0o=1070;var $0p="";if(typeof $0m!='undefined'){$0p="&specialsvents="+$0m;};$0q="popup.asp?popup=true&pageid="+$0o+"&"+$0n+$0p+'&rn='+GetRndNum();openPopUpWin($0q,g_windowSizeLarge[0],400);return true;};function pU($v){$0r="languageid="+GetCookie("settings","languageid");$0s="oddstypeid="+GetCookie("settings","oddstypeid");$0t="sitetypeid="+GetCookie("settings","sitecontentid");$0q="popup.asp?popup=true&pageid="+$v+"&"+$0r+"&"+$0s+"&"+$0t+'&rn='+GetRndNum();openPopUpWin($0q,610,450);};function openPopUpWin($0u,$0v,$0w){window.open($0u,"anew",$0g="toolbar=0,scrollbars=1,location=0,status=0,menubar=0,resizable=0,width="+$0v+",height="+$0w);};function nMP($C){CookieTest();var id=$C.options[$C.selectedIndex].value;snp(id);gP(id);};function updateNavigationPB($0x,$0y){$0x+="=";var $0z=document.frmMain.txtNavigationPB.value;var $0A=$0z.indexOf($0x);var $0B=$0z.indexOf(";",$0A);var $0C=$0z.substring($0A,$0B);$0z=Replace($0z,$0C,$0x+$0y);document.frmMain.txtNavigationPB.value=$0z;};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 $0D=new Array(31,28,31,30,31,30,31,31,30,31,30,31);var $0E=document.frmMain.cboDay.selectedIndex;var $0F=document.frmMain.cboMonth.selectedIndex;var $0G=document.frmMain.cboYear.options[document.frmMain.cboYear.selectedIndex].value;var $0H=$0D[$0F];if($0F==1){if(IsLeapYear($0G)===true){$0H=29;}};document.frmMain.cboDay.length=0;document.frmMain.cboDay.length=$0H;for(i=0;i<$0H;i++){document.frmMain.cboDay.options[i].text=String(i+1);};if($0E>($0H-1)){$0E=$0H-1;};document.frmMain.cboDay.selectedIndex=$0E;};function MC2($0I,$0J,$0K){var $0D=new Array(31,28,31,30,31,30,31,31,30,31,30,31);var $0E=$0I.selectedIndex;var $0F=$0J.selectedIndex;var $0G=$0K.options[$0K.selectedIndex].value;var $0H=$0D[$0F];if($0F==1){if(IsLeapYear($0G)===true){$0H=29;}};$0I.length=0;$0I.length=$0H;for(i=0;i<$0H;i++){$0I.options[i].text=String(i+1);};if($0E>($0H-1)){$0E=$0H-1;};$0I.selectedIndex=$0E;};function IsLeapYear($0L){if($0L%400===0){return true;};if(($0L%4===0)&&($0L%100!==0)){IsLeapYear=true;};return false;};function uNC1($C){var $0M="uNC1";CookieTest();var $0N=$C.options[$C.selectedIndex].value;updateSiteNavigationPB("c1text",$0N);SubmitForm();};function gPC($v,$0O,$0P,$0Q,$0R,$0S,$0T,$0U,$0V,$0W,$0X,TD){if(CheckState()!==true){return;};CookieTest();snp($v);updateSiteNavigationPB("pagetemplateid",$v);if((typeof $0X=="undefined")||(Number($0X)==0)){updateSiteNavigationPB("c1id",$0P);updateSiteNavigationPB("c1idtable",$0Q);updateSiteNavigationPB("c2id",$0S);updateSiteNavigationPB("c2idtable",$0T);updateSiteNavigationPB("c3id",$0V);updateSiteNavigationPB("c3idtable",$0W);var $0Y=document.getElementById('txtTOC');if((null !==$0Y)&&(typeof $0Y!=='undefined')){$0Y.value='';}};updateSiteNavigationPB("c1idselected",$0P);updateSiteNavigationPB("c1idtableselected",$0Q);updateSiteNavigationPB("c2idselected",$0S);updateSiteNavigationPB("c2idtableselected",$0T);updateSiteNavigationPB("c3idselected",$0V);updateSiteNavigationPB("c3idtableselected",$0W);setTD(TD);SubmitForm();};function gPC2($v,$0O,$0P,$0Q,$0R,$0S,$0T,$0U,$0V,$0W,$0Z,$10,TD){if($v===resultsPageId){getResults($0Z,$0P,$0S,TD);}else{document.frmMain.txtClassID.value=$0Z;updateSiteNavigationPB("classificationid",$0Z);if(typeof $10=="undefined"){$10=GetNavigationPB('sectionid');if($10===0){$10=1;}};if($10!='-1'){updateSiteNavigationPB("sectionid",$10);};gPC($v,$0O,$0P,$0Q,$0R,$0S,$0T,$0U,$0V,$0W,0,TD);}};function gPCS($11){if(CheckState()!==true){return;};var $0M="gPCS";CookieTest();var $12=$11.split("#");document.frmMain.txtClassID.value=$12[8];gPC($12[0],$12[1],$12[2],$12[3],$12[4],$12[5],$12[6],$12[7]);};function gSL($13,$14,$15,$16,$17,$18,$19,$1a,$1b,$1c,$1d,TD){document.frmMain.txtClassID.value=$13;var $1e=(parseFloat(document.frmMain.txtFlashVersion.value)>=reqFlashVersion);var $1f=(document.frmMain.txtFlashEnable.value=="true");if($17==5&&$1e&&$1f){document.getElementById("FlashEvent").value=String($16)+'-'+String($17)+'-'+String($19)+'-'+String($1a)+'-'+String($13);document.getElementById("FlashDiary").value="";LaunchInPlay2(TD);}else{if(($13==2||$13==73)&&($1c==1||$1c==2||$1c==3)){updateSiteNavigationPB("sectionid",$1c);$1c=-1;};if((arguments.length>11)&&(typeof arguments[12]!=='undefined')&&(typeof arguments[12]!==null)&&(Number(arguments[12])>0)){updateSiteNavigationPB("sectionid",arguments[12]);};gPC($14,$15,$16,$17,$18,$19,$1a,$1b,$1c,$1d,0,TD);}};function gCFP($11){if(CheckState()!==true){return;};CookieTest();var $12=$11.split("#");if((typeof self.opener==='undefined')||(self.opener===null)){document.frmMain.txtClassID.value=$12[7];snp($12[0]);updateSiteNavigationPB("pagetemplateid",$12[0]);updateSiteNavigationPB("c1id",$12[1]);updateSiteNavigationPB("c1idtable",$12[2]);updateSiteNavigationPB("c2id",$12[3]);updateSiteNavigationPB("c2idtable",$12[4]);updateSiteNavigationPB("c3id",$12[5]);updateSiteNavigationPB("c3idtable",$12[6]);updateSiteNavigationPB("cardcouponid",$12[8]);updateSiteNavigationPB("classificationid",$12[7]);updateSiteNavigationPB("c1idselected",$12[1]);updateSiteNavigationPB("c1idtableselected",$12[2]);updateSiteNavigationPB("c2idselected",$12[3]);updateSiteNavigationPB("c2idtableselected",$12[4]);document.frmMain.submit();}else{self.opener.document.frmMain.txtClassID.value=$12[7];snp($12[0],true);updateParentSiteNavigationPB("pagetemplateid",$12[0]);updateParentSiteNavigationPB("c1id",$12[1]);updateParentSiteNavigationPB("c1idtable",$12[2]);updateParentSiteNavigationPB("c2id",$12[3]);updateParentSiteNavigationPB("c2idtable",$12[4]);updateParentSiteNavigationPB("c3id",$12[5]);updateParentSiteNavigationPB("c3idtable",$12[6]);updateParentSiteNavigationPB("cardcouponid",$12[8]);updateParentSiteNavigationPB("classificationid",$12[7]);updateParentSiteNavigationPB("c1idselected",$12[1]);updateParentSiteNavigationPB("c1idtableselected",$12[2]);updateParentSiteNavigationPB("c2idselected",$12[3]);updateParentSiteNavigationPB("c2idtableselected",$12[4]);self.opener.document.frmMain.submit();window.close();}};function updateParentSiteNavigationPB($0x,$0y){$0x+="=";var $0z=self.opener.document.frmMain.txtSiteNavigationPB.value;var $0A=$0z.indexOf($0x);var $0B=$0z.indexOf(";",$0A);var $0C=$0z.substring($0A,$0B);$0z=Replace($0z,$0C,$0x+$0y);self.opener.document.frmMain.txtSiteNavigationPB.value=$0z;};function gPCC($C){if(CheckState()!==true){return;};var $12;var $1g=new Array(0,0,0);var $1h=new Array(0,0,0);var $1i=new Array(0,0,0);var $1j;var $1k="True";var $1l=false;var $1m=document.frmMain.txtClassID.value;CookieTest();var $1n=$C.name;if($C.name=="cboSportC1"){$1h=setC2();$1i=setC3();$1g[0]=$C.options[$C.selectedIndex].text;$12=$C.options[$C.selectedIndex].value.split("#");$1g[1]=$12[0];$1g[2]=$12[1];$1h[1]=0;$1h[2]=0;$1j=GetCookie("session","currentpageid");if($12.length>2){if($12[2]!==''){updateSiteNavigationPB("sectionid",$12[2]);}};var $1o=document.frmMain.cboSportC2;if(typeof $1o!=='undefined'){if((Number($1o.selectedIndex)>=0)&&(Number(document.frmMain.txtCPID.value)==4307)){var $1p=GetNavigationPB("fixtureid");var $1q=document.frmMain.txtClassID.value;if(($1p>0)&&($1q==8||$1q==12||$1q==16||$1q==17||$1q==18||$1q==19||$1q==75||$1q==78||$1q==83||$1q==36)){$1j="4307";}else{$1j="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");$1k='undefined';$1g=setC1();$1h[0]=$C.options[$C.selectedIndex].text;$12=$C.options[$C.selectedIndex].value.split("#");$1h[1]=$12[0];$1h[2]=$12[1];if($1m=="9"&&$C.options[$C.selectedIndex].value.split("#").length>2){$1i[1]=$12[2];$1i[2]=$12[3];}else if($C.options[$C.selectedIndex].value.split("#").length>2){$1l=true;$1m=$12[2];$1i[1]=$12[3];$1i[2]=$12[4];if(($1m==2||$1m==73)&&$12[5]!=="undefined"){updateSiteNavigationPB("sectionid",$12[5]);}};$1j="100000";updateSiteNavigationPB("plbtid",0);};if($C.name=="cboPartBetTypes"){if($C.options[$C.selectedIndex].value===0){return false;};$1k='undefined';$1g=setC1();$1h=setC2();$1i[0]=$C.options[$C.selectedIndex].text;$12=$C.options[$C.selectedIndex].value.split("#");$1i[1]=$12[0];$1i[2]=$12[1];$1j="100000";};if(true==$1l){gPC2($1j,$1g[0],$1g[1],$1g[2],$1h[0],$1h[1],$1h[2],$1i[0],$1i[1],$1i[2],$1m);}else{if($1k=="True"){gPC($1j,$1g[0],$1g[1],$1g[2],$1h[0],$1h[1],$1h[2],$1i[0],$1i[1],$1i[2],$1k);}else{gPC($1j,$1g[0],$1g[1],$1g[2],$1h[0],$1h[1],$1h[2],$1i[0],$1i[1],$1i[2]);}}};function setC1(){var $12;var $1g=new Array(3);if(!bShowNav()){$1g[0]=GetSessionData('txtc1text');$1g[1]=GetSessionData('txtc1id');$1g[2]=GetSessionData('txtc1idtable');}else{var $C=document.frmMain.cboSportC1;$1g[0]=$C.options[$C.selectedIndex].text;$12=$C.options[$C.selectedIndex].value.split("#");$1g[1]=$12[0];$1g[2]=$12[1];};return $1g;};function setC2(){var $12;var $1g=new Array(3);if(!bShowNav()){$1g[0]=GetSessionData('txtc2text');$1g[1]=GetSessionData('txtc2id');$1g[2]=GetSessionData('txtc2idtable');}else{var $C=document.frmMain.cboSportC2;$1g[0]=$C.options[$C.selectedIndex].text;$12=$C.options[$C.selectedIndex].value.split("#");$1g[1]=$12[0];$1g[2]=$12[1];};return $1g;};function setC3(){var $C=document.frmMain.cboPartBetTypes;var $12;var $1g=new Array(3);if(typeof $C!="undefined"){$1g[0]=$C.options[$C.selectedIndex].text;$12=$C.options[$C.selectedIndex].value.split("#");$1g[1]=$12[0];$1g[2]=$12[1];}else{$1g[0]='';$1g[1]=0;$1g[2]=0;};return $1g;};function gTL($1j,$0P,$1r,$0S,$1s,$0V,$1t,$1u,$1v){if(typeof $1v!="undefined"){document.frmMain.txtClassID.value=$1v;};updateSiteNavigationPB("fixtureid",$1u);gPC($1j,'',$0P,$1r,'',$0S,$1s,'',$0V,$1t);};function gS($v,$1w,$1x,$1y,TD){if(CheckState()!==true){return;};var $0M="gS";if(stringLength($1w)<1){return false;};CookieTest();SetBState('0');SetMState('0');snp($v);document.frmMain.txtCpnSelected.value='';document.frmMain.txtClassID.value=$1w;updateSiteNavigationPB("classificationid",$1w);ResetNavigationPB($v);if($1x){updateSiteNavigationPB("splashoption","group");};if($1y){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,$1z,$1A,$1B){if(CheckState()!==true){return;};var $0M="gF";CookieTest();snp($v);updateSiteNavigationPB("pagetemplateid",$v);updateSiteNavigationPB("plbtid",$1A);updateSiteNavigationPB("fixtureid",$1z);updateSiteNavigationPB("playerid",0);SubmitForm();};function gMM($v,$1z,$1A,$1C){if(CheckState()!==true){return;};var $0M="gF";CookieTest();snp($v);updateSiteNavigationPB("pagetemplateid",$v);updateSiteNavigationPB("c1text","Match Markets");updateSiteNavigationPB("plbtid",$1A);updateSiteNavigationPB("fixtureid",$1z);updateSiteNavigationPB("playerid",0);updateSiteNavigationPB("c1textselect","");if($1C=="Goalscorer"){updateSiteNavigationPB("c2text","Goalscorers");}else{updateSiteNavigationPB("c2text",$1C);};SubmitForm();};function gMB($v,$1z,$1D,$1E){if(CheckState()!==true){return;};var $0M="gMB";CookieTest();snp($v);updateSiteNavigationPB("pagetemplateid",$v);updateSiteNavigationPB("c1text",$1D);updateSiteNavigationPB("c2text",$1E);updateSiteNavigationPB("c3text","");updateSiteNavigationPB("plbtid",0);updateSiteNavigationPB("fixtureid",$1z);updateSiteNavigationPB("playerid",0);updateSiteNavigationPB("c1textselect","");SubmitForm();};function scorecastChangePlayer($C){if(CheckState()!==true){return;};CookieTest();$1F=$C.options[$C.selectedIndex].value;var $0y="playerid="+$1F;var $0z=document.frmMain.txtNavigationPB.value;var $0A=$0z.indexOf("playerid=");var $0B=$0z.indexOf(";",$0A);var $0C=$0z.substring($0A,$0B);$0z=Replace($0z,$0C,$0y);document.frmMain.txtNavigationPB.value=$0z;updateSiteNavigationPB("playerid",$1F);SubmitForm();};function updateSiteNavigationPB($0x,$0y){$0x+="=";var $0z=document.frmMain.txtSiteNavigationPB.value;var $0A=$0z.indexOf($0x);var $0B=$0z.indexOf(";",$0A);var $0C;if($0A<0){$0z=$0z+';'+$0x+$0y;}else if($0B<0){$0C=$0z.substring($0A);$0z=Replace($0z,$0C,$0x+$0y);}else{$0C=$0z.substring($0A,$0B);$0z=Replace($0z,$0C,$0x+$0y);};document.frmMain.txtSiteNavigationPB.value=$0z;};function GetNavigationPB($0x,$1G,$1H){if(typeof(document.frmMain.txtNavigationPB)=="undefined"){return "";};$0x+="=";var $0z;if($1G!=="undefined"&&$1G==1){$0z=document.frmMain.txtNavigationPB.value;}else{if((typeof $1H!=='undefined')&&($1H!==null)){$0z=$1H.value;}else{$0z=document.frmMain.txtSiteNavigationPB.value;}};var $0A=$0z.indexOf($0x);var $0B=$0z.indexOf(";",$0A);if($0A==-1){return 0;};var $0C=$0z.substring($0A,$0B);var $1I=$0C.split('=');if(Number($1I[1])>0){return Number($1I[1]);}else{return 0;}};function gM($C){if(CheckState()!==true){return;};if(Number($C.options[$C.selectedIndex].value)===0){return;};CookieTest();var $12=$C.options[$C.selectedIndex].value.split("#");snp($12[0]);updateSiteNavigationPB("pagetemplateid",$12[0]);if(GetSessionData('txtc1text')=="Match Markets"){updateSiteNavigationPB("fixtureid",$12[1]);updateSiteNavigationPB("challengeid",0);}else{return false;};updateSiteNavigationPB("c3text",$12[2]);SubmitForm();};function dIB($v,$1J,TD){if(CheckState()!==true){return;};if(arguments.length>2){$1w=arguments[2];document.frmMain.txtClassID.value=$1w;};$1K="plbtid="+document.frmMain.txtPLBTID.value;$1L="lastcouponpageid="+document.frmMain.txtCurrentPageID.value;$1M="c2idtable="+$1J;$1N="classificationid="+document.frmMain.txtClassID.value;$0q="./sitetr.asp?rul=popup.asp&popup=true&pageid="+$v+"&"+$1K+"&"+$1L+"&"+$1M+"&"+$1N+"&td="+TD+'&rn='+GetRndNum();window.open($0q,"anew",$0g="toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=520,height=250");};function dIB2($v,$1O,$1P,TD){if(CheckState()!==true){return;};$1K="";$1Q="";if((typeof $v==='undefined')&&($v===0)){$v=5240;};if(typeof $1O!='undefined'){$1K="&plbtid="+Number($1O);};if((typeof $1P!='undefined')&&(Number($1P)>0)){$1Q="&fixtureid="+Number($1P);};$0q="./sitetr.asp?rul=popup.asp&popup=true&pageid="+$v+$1K+$1Q+'&td='+TD+'&rn='+GetRndNum();window.open($0q,"anew",$0g="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){$1R="https://";}else{$1R="http://";};document.frmMain.method="post";document.frmMain.action=$1R+document.frmMain.txtURL.value;};function gotoMythical($C){var $0M="gotoMythical";CookieTest();var $12=$C.options[$C.selectedIndex].value.split("#");updateSiteNavigationPB("c1text",$12[0]);updateSiteNavigationPB("c2text",$12[1]);updateSiteNavigationPB("c3text",$12[2]);SubmitForm();};function gPaC($1S){if($1S.name=='cboOdds'){var $D=$1S.options[$1S.selectedIndex].value;var $E=document.getElementById('txtDOT');if(($E!==null)&&(typeof $E!=='undefined')){$E.value=$D;};SubmitForm();return;};var $12=$1S.options[$1S.selectedIndex].value.split("#");CookieTest();snp(4600);document.frmMain.txtClassID.value=$12[1];updateSiteNavigationPB("cardcouponid",$12[0]);updateSiteNavigationPB("classificationid",$12[1]);SubmitForm();};function CheckLogIn(sBS){return ChckUserLoged(sBS,22);};function ChckUserLoged($1T,$1U){var $1V=document.getElementById('txtLGN');if($1V!==null){if(Number($1V.value)==1){return true;}else{if(typeof $1T=="undefined"){if(typeof $1U!=="undefined"){mlAlert($1U);}else{mlAlert(36);}};return false;}};return false;};function gLi(){var $1j=2000;var $1W=null;document.frmMain.txtCurrentPageID.value=$1j;snp($1j);$1W=document.getElementById('txtMURL');UpdateTkn();if(($1W!==null)&&($1W.value.length>0)){$1W=$1W.value;}else{$1W=document.getElementById('txtURL');$1W=$1W.value;};if(typeof top.getIFObj!=='undefined'&&typeof top.getIFObj=='function'){var $1X=top.getIFObj('flshCK');$1X.state=0;if($1X!==null&&typeof $1X!=='undefined'){$1X.src='about:blank';}};var $1Y=document.getElementById("txtFlashVersion2");if($1Y.value===""){try{if(typeof top.getPStatus!=='undefined'&&top.getPStatus!==null){var y=top.getPStatus();if($1Y!==null){$1Y.value=y;}}}catch(e){$1Y.value="-2";}};document.frmMain.method="post";document.frmMain.action="https://"+$1W+"?process=y";document.frmMain.submit();};function CheckGuest($1j){if(Number($1j)==2210||Number($1j)==2130||Number($1j)==2110){var $1Z=eval("document.frmMain.txtGuestAcc");var $20=("IEx"==GetBrowser());if(typeof $1Z!="undefined"){var $21=GetCookie('session','imagespath');var $22=eval("document.frmMain.StyleName");var $23="S=";if(Number($1j)==2210){if($20){$23+=$22.value+";Err=Dep;ImPath="+$21;}else{$23=59;}}else if(Number($1j)==2130){if($20){$23+=$22.value+";Err=With;ImPath="+$21;}else{$23=60;}}else if(Number($1j)==2110){if($20){$23+=$22.value+";Err=Pref;ImPath="+$21;}else{$23=61;}};var $24="";if($20){$24=window.showModalDialog("Sorry.htm",$23,"dialogHeight:280px;dialogWidth:420px;dialogTop:400px;dialogLeft:300px;edge:raised;resizable:yes;status=no;resizable=no;");if($24===true){$1Z.value="true";return true;}else{$1Z.value="false";return false;}}else{return mlConfirm($23);}}}};function JoinNow(){var $1Z=eval("document.frmMain.txtGuestAcc");if(typeof $1Z!="undefined"){$1Z.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 $25=top.getObjHandle('dataframeX');if($25!==null){$25.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 $26=GetCookie("session","faqitem");if(9603===Number(document.frmMain.txtCPID.value)&&$26!==null&&typeof($26)!=="undefined"){jumpTo($26,$26);};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);};var $27=document.getElementById('tSO');if($27!==null){var $28=isNaN($27.value)?0:$27.value;if(Number($28)>0){setTimeout('gP(-1)',$28);}}};function UpdateTkn(){var $29=GetCookie("session","stk");var $2a=document.getElementById('txtTKN');if(($2a!==null)&&(typeof $29!=='undefined')&&($29!==null)&&($2a.value!==$29)){$2a.value=$29;}};function SetSlipState(){if(!top.IsLoaded('bslip')){var $1U=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 $2b=top.getIFObj('bslip');var $2c=top.frames['SlipObj'];if((typeof $2c!=='undefined')&&($2c!==null)){var $2d=$2c.document;if((typeof $2d!=='undefined')&&($2d!==null)){$2e=$2d.getElementById('txtSeqID');if($2e!==null){$2f=GetCookie('seq','slip');$2g=($2e!==null)?$2e.value:'';if($2g!==$2f){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($1j,$2h){SetCookie("session","sourceid",$2h);PM($1j);};function UseSSL(){var $y=false;var $2i=document.getElementById('txtAS');if(typeof $2i!=='undefined'){if($2i!==null){if($2i.value==='1'){$y=true;}}};return $y;};function PM($1j,TD){var $2j=GetQS();var $2k=Number($1j);if($2k==3000||$2k==2010||$2k==2210||$2k==2130||$2k==2110||$2k==2180||$2k==2100){if(!ChckUserLoged()){gP(-1);return false;}};if(Number($1j)==2010){var $2l=1;if((document.frmMain.txtNavigationPB!==null)&&(typeof document.frmMain.txtNavigationPB!=='undefined')){var $2m=document.frmMain.txtNavigationPB.value;var $2n=$2m.indexOf("SiteContentTypeID=");var $2o=$2m.indexOf(";",$2n);var $2p=$2m.substring($2n+18,$2o);switch(Number($2p)){case 5:$2l=5;break;case 4:$2l=3;break;default:$2l=1;break;}};$2j=$2j+'&prd='+$2l;setPrd('1');setPmt('0');};var width;var height;if(2200==$1j){var $2q=document.getElementById('txtAFC');if($2q!==null){if($2q.value.length>0){$2j='&affiliate='+$2q.value;}};width=g_windowSizeMedium[0];height=g_windowSizeMedium[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)){$2j=$2j+'&td='+TD;};windowOpen($1j,true,"http://"+getURL($1j)+"?ibpid="+$1j+$2j+'&rn='+GetRndNum(),"height="+height+",width="+width+",left="+$r+",top="+$s);if(2200==$1j||$1j==2740||$1j==5380){MOAW();}};function PCP($1j,$2r,$2s){var $1W=getURL($1j);windowOpen($1j,true,"http://"+$1W+"?ibpid="+$1j+'&rn='+GetRndNum(),"height="+$2r+",width="+$2s+",left=300,top=300");};function sslPC($1j){var $1W=getURL($1j);windowOpen($1j,true,"http://"+$1W+"?ibpid="+$1j+'&rn='+GetRndNum(),"height="+$2r+",width="+$2s+",left=300,top=300,height="+g_windowSizeLarge[1]+",width="+g_windowSizeLarge[0]);};function RsPC($1j){var $2t=Number($1j);var $2j=GetQS();if((5665==$2t)||(2495==$2t)||(5544==$2t)){if(!CheckLogIn(false)){mlAlert(36);return;}};var $1W=getURL($1j);var $2u='http://'+$1W+'?ibpid='+$1j+$2j+'&rn='+GetRndNum();if(arguments.length>1&&5544!=$2t){if(arguments[1].indexOf('~')==-1){$2u+='&gametype='+arguments[1]+'&nb=1';}};if(arguments.length>1&&5544==$2t){if(arguments[1].indexOf('~')==-1){$2u+='&po='+arguments[1];}};if(arguments.length>1){if(arguments[1].indexOf('~')>0){$2u+='&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($1j,true,$2u,"height="+height+",width="+width+",left="+$r+",top="+$s);if($1j==5430){MOAW();}};function RsPCBS($1j){var $2t=Number($1j);if((5665==$2t)||(2495==$2t)){if(!CheckLogIn(false)){if(!IsLogIn(false)){mlAlert(36);return;}}};var $2r=GetScreenRes();var $r=GetScrennWidth();var $s=GetScrennTop();var $2u=(UseSSL()?'https://':'http://')+top.frames['main'].document.frmMain.txtURL.value+'?popmembers='+$1j;windowOpen($1j,true,$2u,"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 $1W=document.location.href;if(($1W.indexOf('hdcpage.asp')>0)||($1W.indexOf('hdpage.asp')>0)){return false;};if(document.frmMain=="undefined"){return false;};if(DoSubmitForm===0){var $2v=document.getElementById("txtCurrentPageID");if($2v!==null){$2v.value=0;scp(0);cPC();ClosePopParent();}};return true;};function ClosePopParent(){closeWindow(winMMM);};function LaunchInPlay($2w){var $2x=screen.width;var $2y=screen.height;var $2z,$2A,$2B;if($2y<768){$2A=776;$2z=516;$2B=1;}else{$2A=1016;$2z=680;$2B=2;};var $2C=GetNavigationPB("languageid",1);if(($2w===null)||(typeof $2w=='undefined')){LaunchInPlay2();return false;};var $2D=Number(($2x-$2A)/2);var $2E=Number(($2y-$2z)/2);var $2F='./Flash_InPlay/InPlay_v23.asp?size='+$2B+'&detectflash=false';inPlayPopUp=window.open($2F,'ainplay',$2G='toolbar=0,scrollbars=1,location=0,status=0,menubar=0,resizable=0,left='+$2E+',top='+$2D+',width='+$2A+', height='+$2z);return true;};function sTN($C){var $2H=$C.options[$C.selectedIndex].value;var $2I=document.frmMain.txtNumbers.value.split("#");for(i=0;i<$2I.length;i++){var $2J=$2I[i].split("%");if($2J[0]==$2H){document.frmMain.txtplacebet.value=$2J[1];document.frmMain.txtcustomerservice.value=$2J[2];}}};function gLN($2K){if(CheckState()!==true){return;};if(0===$2K.selectedIndex){return;};if(0===$2K.value.length){return;};var $v=$2K.value.split(',')[0];var $2L=$2K.value.split(',')[1];CookieTest();var $B=document.getElementById('txtLS1');if((typeof($B)!=='undefined')&&(null !==$B)){$B.value='';};gLC($v,$2L);};function lottodisplay($2M){var h=document.getElementById('div_navlotto_h');var s=document.getElementById('div_navlotto_s');if($2M==1){intShowHide(h,false);intShowHide(s,true);}else{intShowHide(h,true);intShowHide(s,false);};SetMState($2M);};function gLC($v,$2L){if(CheckState()!==true){return;};CookieTest();snp($v);updateSiteNavigationPB('lotterycode',$2L);updateSiteNavigationPB('c1id',666);SubmitForm();};function snp($2N){if(arguments.length>1&&arguments[1]){self.opener.document.frmMain.txtNPID.value=Number($2N);}else if(typeof(document.frmMain.txtNPID)=="undefined"){}else{document.frmMain.txtNPID.value=Number($2N);}};function scp($2O){document.frmMain.txtCPID.value=Number($2O);};function spp($2P){document.frmMain.txtPPID.value=Number($2P);};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($2Q){if(!this.OKToAddNumbersSelection()){return false;};var $B=document.getElementById('txtLS1');if((typeof($B)!=='undefined')&&(null !==$B)){$B.value=$2Q;};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 $2R;$2R=false;for(i=0;i<arguments.length;i++){if('P'==arguments[i]){$2R=true;break;}};if(!$2R){this.ClearAllParlaySelections(true);};$2R=false;for(i=0;i<arguments.length;i++){if('L'==arguments[i]){$2R=true;break;}};if(!$2R){this.ClearAllNumbersSelections(true);};this.Refresh();return true;};function $g(){var $2S=document.getElementById("txtPTS");if((typeof($2S)!=='undefined')&&(null !==$2S)){this.ParlaySelections=$2S.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($2T,$2U){return true;};function SetElementCheckedState($2V,$2W){if(document.frmMain.elements[$2V]){if(document.frmMain.elements[$2V].length){var $2X=document.frmMain.elements[$2V].length;for(var i=0;i<$2X;i++){document.frmMain.elements[$2V][i].checked=$2W;}}else{document.frmMain.elements[$2V].checked=$2W;}}};function SetElementDisabledState($2V,$2W){var $2Y;var $h;if(document.frmMain.elements[$2V]){if(document.frmMain.elements[$2V].length){var $2X=document.frmMain.elements[$2V].length;for(var i=0;i<$2X;i++){$2Y=true;$h=document.frmMain.elements[$2V][i];if(arguments.length>2){if('USH'==arguments[2]){var $2Z=$h.value.charAt(0);if(('A'==arguments[3]&&$2Z!='A')||('0'==arguments[3]&&$2Z=='A')||('3'==arguments[3]&&$2Z!='3')){$2Y=false;}}};if($2Y){if($h.getAttribute('FD')){$h.disabled=true;}else{$h.disabled=$2W;}}}}else{$h=document.frmMain.elements[$2V];if($h.getAttribute('FD')){$h.disabled=true;}else{$h.disabled=$2W;}}}};function vUSHQuinella($30){var $2X=document.frmMain.elements[$30].length;var $31=0;var $h;var $32=0;var $33=new Array();var i;var $34=0+document.frmMain.elements.length;var $35=0;for(i=0;i<$2X;i++){$h=document.frmMain.elements[$30][i];if($h.checked){$31++;$33[$33.length]=$h.value;}};if(0===$31){return 0;};var $36=isNaN(Number($30.substring(4,3)))?2:Number($30.substring(4,3));for(i=0;i<$2X;i++){$h=document.frmMain.elements[$30][i];if($h.checked&&$31<$36){if(arguments.length>1){if(null===$h.getAttribute('bgsave')){$h.setAttribute('bgsave',$h.style.backgroundColor);};$h.style.backgroundColor='red';};$32++;}else{if(null !==$h.getAttribute('bgsave')){$h.style.backgroundColor=$h.getAttribute('bgsave');}}};return($32>0)?-1:$33;};function vUSHAnyOrder($X){var $2X=document.frmMain.elements[$X].length;var $31=0;var $h;var $37=vUSHCreateArrCounts($X);var $38=('chkW'==$X)?2:$37.length-1;var $32=0;var $33=new Array();var i;var $39=document.frmMain.elements[$X];for(i=0;i<$2X;i++){$h=$39[i];if('A'==$h.value.charAt(0)){if($h.checked){$31++;$33[$33.length]=$h.value.substring(1,$h.value.length);}}};for(i=0;i<$2X;i++){$h=$39[i];if('A'==$h.value.charAt(0)){if($h.checked&&$31<$38){if(arguments.length>1){if(null===$h.getAttribute('bgsave')){$h.setAttribute('bgsave',$h.style.backgroundColor);};$h.style.backgroundColor='red';};$32++;}else{if(null !==$h.getAttribute('bgsave')){$h.style.backgroundColor=$h.getAttribute('bgsave');}}}};return($32>0)?-1:$33;};function vUSHPopulatearrCheck($3a){var $3b=0;var $3c;var $3d;var $3e='';var $3f='';var j;var $3g='S';if(document.frmMain.chkBanker){if(document.frmMain.chkBanker.checked){$3g='B';}};if(arguments.length>1){$3b=arguments[1];};$3d='';for(var i=0;i<$3a.length;i++){if(arguments.length>1){var $3h=false;for(j=0;j<arguments[2].length;j++){if(arguments[2][j]==i){$3h=true;break;}};if($3h){continue;}};if($3a[i][$3b][2]){if(($3b+1)==$3a[i].length||(1==$3b&&'B'==$3g)){$3a[i][$3b][3]++;if('B'!=$3g){$3d='';};if(0===$3d.length){if(arguments.length>1){for(j=0;j<arguments[2].length;j++){$3a[arguments[2][j]][j][3]++;if($3d.length>0){$3d+=',';};$3d+=$3a[arguments[2][j]][j][1];}}};if($3d.length>0){$3d+=',';};$3d+=$3a[i][$3b][1];if('B'!=$3g){if($3e.length>0){$3e+=';';};$3e+=$3d;}}else{$3c=new Array();if(arguments.length>1){for(var k=0;k<arguments[2].length;k++){$3c[$3c.length]=arguments[2][k];}};$3c[$3c.length]=i;$3f=vUSHPopulatearrCheck($3a,($3b+1),$3c);if($3f.length>0){if($3e.length>0){$3e+=';';};$3e+=$3f;}}}};if('B'===$3g&&0!==$3d.length){if($3e.length>0){$3e+=';';};$3e+=$3d;};return $3e;};function vUSHCreateArrCounts($X){var $37=new Array();var $3i=document.getElementsByName($X);var $2X=$3i.length;var $3j;var $2Z;$37[0]=new Array();$37[0][0]=0;$37[0][1]=0;for(var i=0;i<$2X;i++){$3j=$3i[i];$2Z=$3j.value.charAt(0);$3k=('A'==$2Z)?0:Number($2Z);if($37[$3k]){$37[$3k][0]++;}else{$37[$3k]=new Array();$37[$3k][0]=1;$37[$3k][1]=0;};if($3j.checked){$37[$3k][1]++;}};return $37;};function vUSHValidateCombinations($X){var $3a=new Array();var $37=vUSHCreateArrCounts($X);var i;var j;var k;var $3i=document.getElementsByName($X);var $2X=$3i.length;var $3j;var $32=0;var $33=new Array();var $3f;var $3g='S';if(document.frmMain.chkBanker){if(document.frmMain.chkBanker.checked){$3g='B';}};j=0;for(i=0;i<$2X;i++){$3j=$3i[i];if(1==Number($3j.value.charAt(0))){$3a[j]=new Array();for(k=0;k<$37.length-1;k++){$3a[j][k]=new Array();};$3a[j][0][0]=$3j;$3a[j][0][1]=Number($3j.value.substring(1,$3j.value.length));$3a[j][0][2]=$3j.checked;$3a[j][0][3]=0;j++;}};for(i=0;i<$2X;i++){$3j=$3i[i];if(!$3j.disabled){if('A'!=$3j.value.charAt(0)&&1!=Number($3j.value.charAt(0))){for(j=0;j<$3a.length;j++){if(Number($3a[j][0][1])==Number($3j.value.substring(1,$3j.value.length))){k=Number($3j.value.charAt(0))-1;$3a[j][k][0]=$3j;$3a[j][k][1]=Number($3j.value.substring(1,$3j.value.length));$3a[j][k][2]=$3j.checked;$3a[j][k][3]=0;}}}}};$3f=vUSHPopulatearrCheck($3a);if($3f.length>0){$33=$3f.split(';');};for(i=0;i<$3a.length;i++){for(j=0;j<$37.length-1;j++){if($3a[i][j][2]&&0===$3a[i][j][3]){if('B'!=$3g){if(arguments.length>1){if(null===$3a[i][j][0].getAttribute('bgsave')){$3a[i][j][0].setAttribute('bgsave',$3a[i][j][0].style.backgroundColor);};$3a[i][j][0].style.backgroundColor='red';};$32++;}}else{if($3a[i][j][0]){if(null !==$3a[i][j][0].getAttribute('bgsave')){$3a[i][j][0].style.backgroundColor=$3a[i][j][0].getAttribute('bgsave');}}}}};if(0===$32&&'B'==$3g&&$X!=='chkW'){if(0<$37[1][1]&&2>$37[2][1]){$32++;}};return($32>0)?-1:$33;};function vUSHForecast($2T){var i;var $3l=('A'==$2T.value.charAt(0))?0:Number($2T.value.charAt(0));var $37=vUSHCreateArrCounts($2T.name);var $2X=document.frmMain.elements[$2T.name].length;var $3m=0;var $3n=0;var $3g='S';if(document.frmMain.chkBanker){if(document.frmMain.chkBanker.checked){$3g='B';}};for(i=0;i<$37.length;i++){$3n+=$37[i][1];};if(0===$3l){for(i=1;i<$37.length;i++){$3m+=$37[i][1];}}else{$3m+=$37[0][1];};var $34=0+document.frmMain.elements.length;var $35=0;for(i=0;i<$34;i++){if(document.frmMain.elements[i].checked){if('chkOdds'==document.frmMain.elements[i].name){$35++;break;}}};if($3l){vUSHValidateCombinations($2T.name);};if(1==$3n-$3m){SetElementDisabledState($2T.name,true,'USH',(0===$3l)?'0':'A');};if(0===$3n){if('B'!=$3g){SetElementDisabledState($2T.name,false,'USH',(0===$3l)?'0':'A');};$34=0+document.frmMain.elements.length;$35=0;for(i=0;i<$34;i++){if(document.frmMain.elements[i].checked){if('chkWPS'==document.frmMain.elements[i].name){$35++;break;}}}};if(0===$3l){vUSHAnyOrder($2T.name);}};function vUSH($2T){highlightselection($2T);if('chkE'==$2T.name||'chkT'==$2T.name||'chkS'==$2T.name){return vUSHForecast($2T);};if('chkQ'==$2T.name){if(!vUSHQuinella($2T.name)){$2T.checked=false;return false;}else{return true;}}};function vTB($2T){if($2T.checked){vRS();$2T.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($2T){};function vFT($2T){};function ProcessUS($3o){var i;var $01=false;var $3p=false;var $3q='';var $3r=SOGetCount(g_cstrTypeUS);var $3s='chkWPS';if((typeof $3o!=='undefined')&&($3o!==null)&&$3o==1){$3s='chkOdds';};for(i=0;i<document.frmMain.elements.length;i++){if(document.frmMain.elements[i].checked){if($3s==document.frmMain.elements[i].name){var $3t=FrmtBS(document.frmMain.elements[i].value);if(SONotExists($3t,g_cstrTypeUS,false)){document.frmMain.elements[i].checked=false;if($3r<g_MaxSelections){$3q=$3q+$3t+';';$3r=$3r+1;}else{$3p=true;}}else{$01=true;}}}};if($01){mlAlert(53);};if($3p){mlAlert(2);};return $3q;};function ProcessTote($07){if(typeof $07=='undefined'){$07=g_cstrTypeTote;};var i,j,k;var $01=false;var $3p=false;var $3u='';var $3r=SOGetCount($07);for(k=1;k<=TCC;k++){for(j=1;j<=eval('TCP'+k);j++){if(($3v=document.getElementById('chkTW'+'_'+k+'_'+j))){if($3v.checked){$3v.checked=false;var $3w=FrmtBS($3v.value);if(SONotExists($3w,$07,false)){if($3r<g_MaxSelections){$3u=$3u+$3w+';';$3r=$3r+1;}else{$3p=true;}}else{$01=true;}}};if(($3v=document.getElementById('chkTP'+'_'+k+'_'+j))){if($3v.checked){$3v.checked=false;var $3x=FrmtBS($3v.value);if(SONotExists($3x,$07,false)){if($3r<g_MaxSelections){$3u=$3u+$3x+';';$3r=$3r+1;}else{$3p=true;}}else{$01=true;}}};if(($3v=document.getElementById('chkTS'+'_'+k+'_'+j))){if($3v.checked){$3v.checked=false;var $3y=FrmtBS($3v.value);if(SONotExists($3y,$07,false)){if($3r<g_MaxSelections){$3u=$3u+$3y+';';$3r=$3r+1;}else{$3p=true;}}else{$01=true;}}};if(($3v=document.getElementById('chkTE'+'_'+k+'_'+j))){if($3v.checked){$3v.checked=false;var $3z=FrmtBS($3v.value);if(SONotExists($3z,$07,false)){if($3r<g_MaxSelections){$3u=$3u+$3z+';';$3r=$3r+1;}else{$3p=true;}}else{$01=true;}}}}};if($01){mlAlert(53);};if($3p){mlAlert(2);};return $3u;};function ProcessPot($3A){var $3B;var $3C;switch(Number(document.frmMain.txtCPID.value)){case 4520:$3B='U';break;case 4521:$3B='R';break;case 4530:case 4535:case 4525:$3B='T';break;case 4540:$3B='J';break;case 4522:$3B='E';break;default:$3B='N';break;};$3C='S';if(document.frmMain.chkBanker){if(document.frmMain.chkBanker.checked){$3C='B';}};var i,j,k;var $3D,$3E;var $3F;var $3v;var $3G=new Array();var $3H;var $3I;var $3J;var $3K;var $01=false;var $00='';$3J=false;for(i=0;i<TCC;i++){$3D=0;$3E=0;for(j=0;j<eval('TCL'+(i+1));j++){$3F=false;for(k=0;k<eval('TCP'+(i+1));k++){if(($3v=document.getElementById('chkT_'+(i+1)+'_'+(j+1)+'_'+(k+1)))){if($3v.checked){$3F=true;break;}}};if($3F){$3E++;}else{$3D++;}};if($3D>0&&$3E>0){mlAlert(91);return false;};if($3E>0){$3J=true;}};if($3J){for(i=0;i<TCC;i++){$3H='';$3I='';$3L=GetCookie('session','U');$3L++;SetCookie('session','U',$3L);for(j=0;j<eval('TCL'+(i+1));j++){for(k=0;k<eval('TCP'+(i+1));k++){if(($3v=document.getElementById('chkT_'+(i+1)+'_'+(j+1)+'_'+(k+1)))){if($3v.checked){$3H+=$3I+$3v.getAttribute('T')+','+$3v.getAttribute('value').toString()+','+$3L;$3I='~';$3v.checked=false;sRace($3v,true);}}}};if(''!==$3H){$3G[$3G.length]=$3B+TCT+'P'+$3H;}};for(i=0;i<$3G.length;i++){if(SONotExists($3G[i],g_cstrTypeCast,false)){$00=$00+$3G[i]+';';}else{$01=true;}}};if($01){mlAlert(53);};return $00;};function ProcessCast(){var $3B;var $3C;var $3r=SOGetCount(g_cstrTypeCast);var $3p=false;switch(Number(document.frmMain.txtCPID.value)){case 4520:$3B='U';break;case 4530:case 4535:case 4525:$3B='T';break;case 4028:$3B='J';break;default:$3B='N';break;};$3C='S';if(document.frmMain.chkBanker){if(document.frmMain.chkBanker.checked){$3C='B';}};var $3M=document.getElementById('cpntrni');if(($3B=='U')&&($3M!==null)){$3B='R';};var $3N=document.getElementById('cpnetote');if(($3B=='T')&&($3N!==null)){$3B='E';};var $3O=document.getElementById('cpnfgtote')!==null?true:false;var i;var $3P;var $3G=new Array();var $32=0;var $3Q=0;var $08=new Array();$08[0]='chkE';$08[1]='chkT';$08[2]='chkW';if('U'==$3B||$3B=='R'||'J'==$3B){$08[2]='chkS';};if('U'==$3B||'J'==$3B||$3B=='R'||$3O){if($3B!=='J'){if(document.frmMain.elements['chkQ']){$3P=vUSHQuinella('chkQ',true);if(-1==$3P){$32++;}else{if($3P.length>0){$3G[$3G.length]=$3B+'Q'+(($3P.length>2)?'C':'S')+document.frmMain.txtFixtureID.value+'~'+$3P.join(',');$3Q++;}}}}else{for(i=2;i<=4;i++){var $3R='chk'+i;if(document.frmMain.elements[$3R]){$3P=vUSHQuinella($3R,true);if(-1==$3P){$32++;}else{if($3P.length>0){$3G[$3G.length]=$3B+i+(($3P.length>i)?'C':'S')+document.frmMain.txtFixtureID.value+'~'+$3P.join(',');$3Q++;}}}}}};for(i=0;i<$08.length;i++){if(!document.frmMain.elements[$08[i]]){continue;};$3P=vUSHValidateCombinations($08[i],true);if(-1==$3P){$32++;}else{if($3P.length>0){for(var j=0;j<$3P.length;j++){$3G[$3G.length]=$3B+$08[i].charAt(3)+$3C+document.frmMain.txtFixtureID.value+'~'+$3P[j];$3Q++;}}};$3P=vUSHAnyOrder($08[i],true);if(-1==$3P){$32++;}else{if($3P.length>0){$3G[$3G.length]=$3B+$08[i].charAt(3)+'C'+document.frmMain.txtFixtureID.value+'~'+$3P.join(',');$3Q++;}}};if($32){mlAlert(57);return false;};$3u='';var $01=false;if(0===$32&&$3Q>0){for(i=0;i<$3G.length;i++){if(SONotExists($3G[i],g_cstrTypeCast,false)){if($3r<g_MaxSelections){$3u+=$3G[i]+';';$3r=$3r+1;}else{$3p=true;}}else{$01=true;}}};if($01){mlAlert(53);};if($3p){mlAlert(2);};return $3u;};function ProcessForeignToteCoupon(){var i,j,k;var $2U=new BettingSlipObject();if(!$2U.OK){delete $2U;return false;};for(k=1;k<=TCC;k++){for(j=1;j<=eval('TCP'+k);j++){if(($3v=document.getElementById('chkTW'+'_'+k+'_'+j))){if($3v.checked){$3v.checked=false;if(!$2U.AddForeignToteSelection($3v.value)){return false;}}};if(($3v=document.getElementById('chkTP'+'_'+k+'_'+j))){if($3v.checked){$3v.checked=false;if(!$2U.AddForeignToteSelection($3v.value)){return false;}}};if(($3v=document.getElementById('chkTS'+'_'+k+'_'+j))){if($3v.checked){$3v.checked=false;if(!$2U.AddNormalSelection($3v.value)){return false;}}};if(($3v=document.getElementById('chkTE'+'_'+k+'_'+j))){if($3v.checked){$3v.checked=false;if(!$2U.AddForeignToteSelection($3v.value)){return false;}}}}};if(!ProcessCastSelections($2U)){return false;};ResetToteCoupon();return true;};function ResetUSHorseCoupon(){var i;var $3S=arguments.length;var $08=['chkOdds','chkWPS','chkQ','chkE','chkT','chkS'];for(i=0;i<$08.length;i++){SetElementDisabledState($08[i],false);SetElementCheckedState($08[i],false);};$2X=document.frmMain.elements.length;for(i=0;i<$2X;i++){var $h=document.frmMain.elements[i];if(null !==$h.getAttribute('bgsave')){$h.style.backgroundColor=$h.getAttribute('bgsave');}};return false;};function ResetToteCoupon(){var $08=['chkE','chkT','chkW'];for(i=0;i<$08.length;i++){SetElementDisabledState($08[i],false);SetElementCheckedState($08[i],false);};$2X=document.frmMain.elements.length;for(i=0;i<$2X;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 $3T=Number(document.frmMain.txtCPID.value);if(4520==$3T||4010==$3T){ResetUSHorseCoupon();};if(4525==$3T||4540==$3T){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==$3T||4280==$3T||4270==$3T||4020==$3T){ResetUSHorseCoupon(true);}};function SetMinsToPost($3U,$3V,$3W){var $3X;var DP;var D;var T;var P;var M;if($3W){DP=$3U.getAttribute('A2');D=DP.split('T')[0].split('-');T=DP.split('T')[1].split('.')[0].split(':');$3X=new Date(D[0],D[1]-1,D[2],T[0],T[1],T[2]);P=new Date(($3V.getTime()+($3V.getTime()-$3X.getTime())+($3U.getAttribute('A3')*1000)));$3U.setAttribute('A2',P.getTime());}else{P=new Date($3U.getAttribute('A2'));};M=Math.round(((P.getTime()-$3V.getTime())/1000)/60);var x=String($3U.getAttribute('A1').replace(/%1/,M));$3U.innerText=x;};function mtp($3Y){if('IE'==GetBrowser()){var $3U=window.MTP;var $3V=new Date();if($3U.length){for(var i=0;i<$3U.length;i++){SetMinsToPost($3U[i],$3V,(0===arguments.length?true:false));}}else{SetMinsToPost($3U,$3V,(0===arguments.length?true:false));};var $1U=setTimeout('mtp(1)',1000);}};function getRegExp($G){var $3Z=['^','$','*','\\','+','?','.','|','[',']','(',')','/'];var $40=$G;for(var i=0;i<$3Z.length;i++){RE=new RegExp('\\'+$3Z[i],'g');$40=$40.replace(RE,'\\'+$3Z[i]);};var $41=new RegExp($40);return $41;};function gCPar($42){var $43=$42.split("#");CookieTest();snp(4600);document.frmMain.txtClassID.value=$43[1];updateSiteNavigationPB("cardcouponid",$43[0]);updateSiteNavigationPB("classificationid",$43[1]);SubmitForm();};function FC($2K){if(DocLoaded===0){$2K.blur();return false;}};function aLayBet($44,$45,$46){var $2U=new BettingSlipObject();if(!$2U.OK){delete $2U;return false;};if((10143==$44)||(10148==$44)){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 $47=document.getElementById($45);var $48=$47.getAttribute('pcode');aBet($48);if(typeof $46!=='undefined'){$47.className=$46;}else{$47.className='ln';};highlightselection($47,$46);};function loadGT($2t){document.frmMain.txtGameBets.value="1";gP($2t);};function setLang($C){var arrData=$C.split("#");SetCookie('aps03','lng',arrData[0]);gP(-1,'',1);$p=top.frames['bsliptop'];if(null !==$p){var $1W=$p.location.href;$p.location.replace($1W=$1W.replace("fin=0","fin=1"));};if(IsBSExists()){RefreshSlip('1');};LoadMIP(true);};function lData(ID){var $49=document.getElementById(ID);var $4a=document.getElementById('d'+ID);var $4b=ID;if(ID=='tod'){$4b='tln';};if(ID=='tln'){$4b='tod';};ulData($4b);var aP=findPos($49);if($4a.style.display=='none'){if(ID=='tln'){$4a.style.left=(Number(aP[0])-11)+'px';$4a.style.top='6px';}else{$4a.style.left=(Number(aP[0])-11)+'px';var $2t=(document.getElementById('txtCPID')!==null?document.getElementById('txtCPID').value:0);if(Number($2t)==9611){$4a.style.top='61px';}else{$4a.style.top='42px';}};$4a.style.display='';}};function ulData(ID){var $4a=document.getElementById('d'+ID);if($4a!==null){$4a.style.display='none';}};function findPos($2K){var $4c=$4d=0;if($2K.offsetParent){$4c=$2K.offsetLeft;$4d=$2K.offsetTop;while($2K=$2K.offsetParent){$4c+=$2K.offsetLeft;$4d+=$2K.offsetTop;}};return[$4c,$4d];};function MOAW(){if(1==Number(GetCookie("session","p"))){SetCookie("session","p","0");var $4e=document.getElementById('tLS');if($4e!==null){$4e.value=2;};SubmitForm();}else if(1==Number(GetCookie("session","p"))){SetCookie("session","p","0");return false;}else{var $1U=setTimeout('MOAW()',100);}};function MMW(){if(typeof(top.getIFObj)!=="undefined"){if(winMMM.closed){if(IsBSExists()){SOBSRefresh();}}else{var $1U=setTimeout('MMW()',100);}}};var $4f=0;var $4g=null;var $4h;var $4i;var h;var m;var s;var $4j;var $4k;var $4l;var $4m=0;var $4n=0;function Start(yy,mo,da,hh,mm,ss){$4i=new Date(yy,(mo-1),da,hh,mm,ss);$4j=new Date(yy,(mo-1),da,hh,mm,ss);$4k=new Date(yy,(mo-1),da,hh,mm,ss);$4h=document.getElementById('clock');$4l=document.getElementById('cTZI');if(typeof $4h!='undefined'){UpdateTimer();};GetFlashVersion();};function UpdateTimer(){if($4f){clearTimeout($4f);$4o=0;};$4i.setTime($4i.getTime()+1000);if($4i.getHours()<10){h='0'+$4i.getHours();}else{h=$4i.getHours();};if($4i.getMinutes()<10){m='0'+$4i.getMinutes();}else{m=$4i.getMinutes();};if($4i.getSeconds()<10){s='0'+$4i.getSeconds();}else{s=$4i.getSeconds();};$4h.innerHTML=""+h+":"+m+":"+s;$4f=setTimeout("UpdateTimer()",1000);};function gRace($4p,iLegNo){var $4q=eval('CVL'+$4p);var arrCVL=$4q.split('#');if(arrCVL[1]!=iLegNo){document.getElementById($4q).style.display='none';eval('CVL'+$4p+'=\''+arrCVL[0]+'#'+iLegNo+'\';');$4q=eval('CVL'+$4p);document.getElementById($4q).style.display='';}};function sRace($2K){if(!CheckLogIn()){$2K.checked=false;return;};var $4r=$2K.name.split('_');if(arguments.length<2){gRace($4r[1],$4r[2]);};document.getElementById(('chkR'==$4r[0]?'chkT':'chkR')+'_'+$4r[1]+'_'+$4r[2]+'_'+$4r[3]).checked=$2K.checked;};function gMP($2t,$4b){if(typeof $4b=='undefined'){var $4s=$2t.split('#');if($4s.length>0){setPrd($4s[2]);setPmt($4s[1]);gP($4s[0]);}else{gPS($2t);}}else{var $4t=$4b.options[$4b.selectedIndex].value;gPS($4t);}};function gPS($2t){snp($2t);document.frmMain.method="post";document.frmMain.action="https://"+document.frmMain.txtURL.value;document.frmMain.submit();};function DisplayFunds(){var $00=document.getElementById('pData').value;var $4u=document.frmMain.oPTF.options[document.frmMain.oPTF.selectedIndex].value;var $4v=document.frmMain.oPTT.options[document.frmMain.oPTT.selectedIndex].value;$00=$00.split('#');var $4w=$00[6].split('=')[1];var $4x=$00[7].split('=')[1];if(($4u==1&&$4v==3)||($4u==3&&$4v==1)||($4u==1&&$4v==1)||($4u==3&&$4v==3)||($4u==4&&$4v==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(($4u==1&&$4v==4)||($4u==4&&$4v==1)||($4u==3&&$4v==4)||($4u==4&&$4v==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(($4u==1&&$4v==4)||($4u==3&&$4v==4)){document.getElementById('ucr').innerHTML=$4w;document.getElementById('pcr').innerHTML=$4x;};if(($4u==4&&$4v==1)||($4u==4&&$4v==3)){document.getElementById('ucr').innerHTML=$4x;document.getElementById('pcr').innerHTML=$4w;};if(($4u==1&&$4v==3)||($4u==3&&$4v==1)||($4u==1&&$4v==1)||($4u==3&&$4v==3)||($4u==4&&$4v==4)){document.getElementById('ucr').innerHTML=$4w;document.getElementById('pcr').innerHTML=$4x;};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($4y){var $4z,$4A,$00,$4B,$4C;if(typeof $4y==='undefined'){var $4u=document.frmMain.oPTF.options[document.frmMain.oPTF.selectedIndex].value;var $4v=document.frmMain.oPTT.options[document.frmMain.oPTT.selectedIndex].value;if($4u==4||$4v==4){$4z="";$4A=document.frmMain.txtAmt1.value;$00=document.getElementById('pData').value;$00=$00.split('#');$4B=$00[0].split('=')[1];$4C=$00[1].split('=')[1];if($4u!=4){$4z=(($4A/$4B)*$4C);};if($4v!=4){$4z=(($4A/$4C)*$4B);};document.frmMain.txtCValue.value=$4z;rndDeci(document.frmMain.txtCValue,1);document.getElementById('pcc').innerHTML=document.frmMain.txtCValue.value;}}else{$4z="";$4A=document.frmMain.amount.value;$00=document.getElementById('pkrDta').value;$00=$00.split('#');$4B=$00[0].split('=')[1];$4C=$00[1].split('=')[1];if(Number($4y)===1){$4z=(($4A/$4B)*$4C);document.frmMain.txtCValue.value=$4z;rndDeci(document.frmMain.txtCValue,1);};if(Number($4y)===2){$4z=(($4A/$4C)*$4B);document.frmMain.txtCValue.value=$4z;rndDeci(document.frmMain.txtCValue,1);}}};function pCS($4D){chkNum($4D);document.getElementById('pcc').innerHTML='';document.frmMain.txtCValue.value="0.00";};function chkNum($4E){if(String($4E.value)=="0."){return false;};if(isNaN($4E.value)){$4E.value="";return true;};if($4E.value===""){$4E.value="";return true;};if(typeof document.frmMain.oPTT!='undefined'){var $4v=document.frmMain.oPTT.options[document.frmMain.oPTT.selectedIndex].value;if($4v==4){rndDeci($4E,0);}else{rndDeci($4E,1);}}else{rndDeci($4E,1);}};function DoTrnsfr($2t){if($2t==2270){var $4F=document.getElementById("chkDirect");var $4G=document.getElementById("trialexpired");if($4F.checked===true){if(Number($4G.value)==1){if(mlConfirm(120)===false){return false;}}}};var $4H,$4I,$4J,lB;var $1W=document.frmMain.txtURL.value;var $4K;var $4L=document.getElementById("txtDialingCode");if(typeof($4L)!=="undefined"&&$4L!==null){$4L.setAttribute("disabled",false);$4L.removeAttribute("disabled");};if(typeof frames['exbal']!=='undefined'){$4K=frames['exbal'].lDWBBal;}else{$4K=0;};if(($2t==3000)||($2t==3020)){var $4u=document.frmMain.oPTF.options[document.frmMain.oPTF.selectedIndex].value;var $4v=document.frmMain.oPTT.options[document.frmMain.oPTT.selectedIndex].value;if($4u==4||$4v==4){document.frmMain.txtAmt.value=document.frmMain.txtAmt1.value;CalcChips();}else{document.frmMain.txtAmt.value=document.frmMain.txtAmt2.value;};if($4u==3){if(!mlConfirm(88)){return false;}};$4J=document.getElementById('trcsn');if(typeof $4J.cells[2]!=='undefined'&&$4u==3){lB=$4J.cells[2].innerHTML;if(Number(lB)>0&&Number($4K)===1){if(mlConfirm(86)===false){document.frmMain.reset();return false;}}};if(Number(document.frmMain.txtAmt.value)>0){SVOT();}}else if(($2t==2220)||($2t==2270)||($2t==2450)||($2t==2570)||($2t==2580)||($2t==2590)||($2t==2610)||($2t==2600)||($2t==2605)){$4H=document.frmMain.sProduct;$4I=document.frmMain.sPayment;if(Number($4H.options[$4H.selectedIndex].value)===4){CalcChips(1);};if((typeof $4H!=='undefined')&&(typeof $4I!=='undefined')){setPrd($4H.options[$4H.selectedIndex].value);setPmt($4I.options[$4I.selectedIndex].value);};SVOD();}else if(($2t==2130)||($2t==2615)||($2t==2170)||($2t==2496)||($2t==2176)||($2t==2177)||($2t==2178)){$4H=document.frmMain.sProduct;$4I=document.frmMain.sPayment;if(Number($4H.options[$4H.selectedIndex].value)===4){CalcChips(2);};if((typeof $4H!=='undefined')&&(typeof $4I!=='undefined')){setPrd($4H.options[$4H.selectedIndex].value);setPmt($4I.options[$4I.selectedIndex].value);if($4H.options[$4H.selectedIndex].value==3){if(!mlConfirm(88)){return false;}};$4J=document.getElementById('cbb');if($4J!==null&&$4H.options[$4H.selectedIndex].value==3){lB=$4J.innerHTML;if(Number(lB)>0&&Number($4K)===1){if(mlConfirm(86)===false){document.frmMain.reset();return false;}}}};SVOW();}else{$4H=document.frmMain.sProduct;$4I=document.frmMain.sPayment;if((typeof $4H!=='undefined')&&(typeof $4I!=='undefined')){setPrd($4H.options[$4H.selectedIndex].value);setPmt($4I.options[$4I.selectedIndex].value);};VS();};return true;};function LdPmts($2K,$2t){if($2K.name=='sProduct'){setPrd($2K.options[$2K.selectedIndex].value);setPmt('0');};if($2K.name=='sPayment'){setPmt($2K.options[$2K.selectedIndex].value);};gPS($2t);};function gTPP($00){var $z=$00.split('#');setPrd($z[1]);setPmt($z[2]);document.frmMain.paymenttrans.value=$z[3];gPS($z[0]);};function rsGT(){var $4M=document.frmMain.txtGameBets;if(typeof $4M!=='undefined'){$4M.value=0;}};function LoadBal($4N,$4O,$4P,$4Q){window.frames.exbal.location.href='./ex-request.asp?uid='+$4N+'&uname='+$4O+'&product='+$4P+'&sDep='+$4Q+'&rn='+GetRndNum();};function PMPopUp($1j){$r=GetScrennWidth();$s=GetScrennTop();var $1W=document.frmMain.txtURL.value;var $4R=document.frmMain.action;$1W=$1W.replace($4R,'mainpage.asp');windowOpen($1j,true,"https://"+$1W+"?popmembers="+$1j+'&rn='+GetRndNum(),"height="+g_windowSizeLarge[1]+",width="+g_windowSizeLarge[0]+",left="+$r+",top="+$s);if(2200==$1j){MOAW();}};function IBLo($v){cPC();if(!(-1==$v)){ClS('IB');};ResetNavigationPB();SetCookie('session','si','');SetCookie('session','li','');};function pSMT($2t){snp($2t);if(arguments.length>1&&5544==$2t){document.frmMain.action=document.frmMain.action+'?po1='+arguments[1]+'&po='+arguments[1];};SubmitForm();};function simpleOpenClose($4S,$4T,$4U){var $4V;var $4W;var $4X;$4S='cpnCtl_'+$4S;$4V=document.getElementById($4S);if($4T!==null){$4T='cpnCtl_'+$4T;$4W=document.getElementById($4T);};if($4U!==null){$4U='cpnCtl_'+$4U;$4X=document.getElementById($4U);};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($4X!==null&&(typeof $4X!=='undefined')){intShowHide($4X,($4X.style.display==='none'||$4X.style.visibility==='hidden'));};if((top!==null)&&(typeof top!=='undefined')){if(typeof top.SetDiemens=='function'){top.SetDiemens();}}};function ClientShowHide($4Y){var $4Z=document.getElementById('cpnDiv_'+$4Y);var $50=document.getElementById('cpnBtn_'+$4Y);var $51;if($4Z.style.display==='none'){$51=true;}else{$51=false;};intShowHide($4Z,$51);var $52=$50.src;if($51){$50.src=$52.replace(/iconOpen.gif/g,'iconOpen.gif');}else{$50.src=$52.replace(/iconClose.gif/g,'iconClose.gif');}};function intShowHide($4Z,$51){if($51){switch(GetBrowser()){case 'SAFARI':case 'NETSCAPE':$4Z.style.display='block';$4Z.style.visibility='visible';break;case 'OPERA':case 'FIREFOX':$4Z.style.display='block';break;default:$4Z.style.visibility='visible';$4Z.style.display='block';break;}}else{switch(GetBrowser()){case 'SAFARI':case 'NETSCAPE':$4Z.style.display='none';$4Z.style.visibility='hidden';break;case 'OPERA':case 'FIREFOX':$4Z.style.display='none';break;default:$4Z.style.visibility='hidden';$4Z.style.display='none';break;}}};function clickOpenClose($53,v2,v3,v4,v5,v6,v7,v8,v9,$54,$55,$56,$57,$58,$59,$5a,$5b,$5c,$5d,$5e){var $5f;var $50;var $5g;var $5h;var $5i;var $5j;var $5k;var $5l;$53=''+$53;$5j=$53.split('#');$5k=$5j[0];$5l=$5j[1];updateSiteNavigationPB("plbtid",$5k);updateSiteNavigationPB("fixtureid",$5l);WhichDiv=$53;$50=document.getElementById('cpnBtn_'+$53);$5f=document.getElementById('cpnDiv_'+$53);var $0Y=document.getElementById('txtTOC');if($5f.style.display==='none'||$5f.style.visibility==='hidden'){if(top.IsLoaded('dataframeX')){document.frmMain.tcocsel.value=WhichDiv;switch(GetBrowser()){case 'SAFARI':case 'NETSCAPE':$5f.style.display='block';$5f.style.visibility='visible';break;case 'OPERA':case 'FIREFOX':$5f.style.display='block';break;default:$5f.style.visibility='visible';$5f.style.display='block';break;};if((null !==$0Y)&&(typeof $0Y!=='undefined')){var $5m=''+$0Y.value+$53+',';$0Y.value=$5m;};gPCFX(v2,v3,v4,v5,v6,v7,v8,v9,$54,$55,$56,$57,$58,$59,$5a,$5b,$5c,$5d,$5e);}}else{if((null !==$0Y)&&(typeof $0Y!=='undefined')){$5j=$0Y.value.split(',');$0Y.value='';var $5m='';for(i=0;i<$5j.length-1;i++){if($5j[i]!==$53){$5m+=$5j[i]+',';}};$0Y.value=$5m;};$5f.innerHTML='';switch(GetBrowser()){case 'SAFARI':case 'NETSCAPE':$5f.style.visibility='hidden';$5f.style.display="none";break;case 'OPERA':case 'FIREFOX':$5f.style.display='none';break;case 'IE':$5f.style.visibility='hidden';$5f.style.display='none';break;default:break;};var $52=$50.src;$50.src=$52.replace(/iconOpen.gif/g,'iconClose.gif');}};function gPCFX($F,$5n,$5o,$5p,$5q,$5r,$5s,$5t,$5u,$5v,$5w,$5x,$5y,$5z,$5A,$5B,$5C,$5D,$5E,$5F){if(CheckState()!==true){return;};CookieTest();var $5G=GetNavigationPB("c1id");var $5H=GetNavigationPB("c1idtable");var $5I=GetNavigationPB("c2id");var $5J=GetNavigationPB("c2idtable");var $5K=GetNavigationPB("c3id");var $5L=GetNavigationPB("c3idtable");updateSiteNavigationPB("pagetemplateid",$F);if(typeof $0L=="undefined"){updateSiteNavigationPB("c1id",$5o);updateSiteNavigationPB("c1idtable",$5p);updateSiteNavigationPB("c2id",$5r);updateSiteNavigationPB("c2idtable",$5s);updateSiteNavigationPB("c3id",$5u);updateSiteNavigationPB("c3idtable",$5v);};updateSiteNavigationPB("c1idselected",$5o);updateSiteNavigationPB("c1idtableselected",$5p);updateSiteNavigationPB("c2idselected",$5r);updateSiteNavigationPB("c2idtableselected",$5s);updateSiteNavigationPB("c3idselected",$5u);updateSiteNavigationPB("c3idtableselected",$5v);getdivdata($F);updateSiteNavigationPB("pagetemplateid",100000);if(typeof $0L=="undefined"){updateSiteNavigationPB("c1id",$5x);updateSiteNavigationPB("c1idtable",$5y);updateSiteNavigationPB("c2id",$5A);updateSiteNavigationPB("c2idtable",$5B);updateSiteNavigationPB("c3id",$5D);updateSiteNavigationPB("c3idtable",$5E);};updateSiteNavigationPB("c1idselected",$5x);updateSiteNavigationPB("c1idtableselected",$5y);updateSiteNavigationPB("c2idselected",$5A);updateSiteNavigationPB("c2idtableselected",$5B);updateSiteNavigationPB("c3idselected",$5D);updateSiteNavigationPB("c3idtableselected",$5E);if($5H==7){updateSiteNavigationPB("c1id",$5G);updateSiteNavigationPB("c1idtable",$5H);updateSiteNavigationPB("c2id",$5I);updateSiteNavigationPB("c2idtable",$5J);updateSiteNavigationPB("c3id",$5K);updateSiteNavigationPB("c3idtable",$5L);updateSiteNavigationPB("c1idselected",$5G);updateSiteNavigationPB("c1idtableselected",$5H);updateSiteNavigationPB("c2idselected",$5I);updateSiteNavigationPB("c2idtableselected",$5J);updateSiteNavigationPB("c3idselected",$5K);updateSiteNavigationPB("c3idtableselected",$5L);}};function sLi($5M){var $5N=document.all?event.keyCode:$5M.which?$5M.which:$5M.keyCode?$5M.keyCode:$5M.charcode;var $5O=document.frmMain.txtUserName;var $5P=document.frmMain.txtPassword;if(typeof $5O!=='undefined'&&typeof $5P!=='undefined'){if($5O.value.length>0&&$5P.value.length>0&&Number($5N)==13){gLi();}}};function unhighlightallselection($5Q,$5R){if($5R==undefined){$5R=0;};for(var i=0;i<$5Q.elements.length;i++){if($5Q.elements[i].type=='checkbox'){if($5Q.elements[i].checked){if($5R==1){highlightselection($5Q.elements[i],1);}else{$5Q.elements[i].checked=false;highlightselection($5Q.elements[i],0);}}}}};function highlightselection($5S,$5R){var $5T='#FEF5BA';var $5U='#FFFFFF';var $5V;var $5W='';var $5X='w';var $5Y='substitute';var $5Z=$5S.parentNode.id.toString();var $60=false;var blnIE=('IE'==GetBrowser()?true:false);var $61;var $2K;var i;if(blnIE){$61=document.styleSheets[1].rules;}else{$61=document.styleSheets[1].cssRules;};for(i=0;i<$61.length;i++){if($61[i].selectorText==".it2"){$5V=$61[i].style.backgroundColor;break;}};if($5S.checked===undefined){$60=true;};if($5Z.indexOf('p')<1){return;};$5Z=$5S.parentNode.id.replace('gp','');for(i=0;i<$5Z;i++){if(i===0){if($5S.parentNode.className.indexOf($5Y)>0){$5S.parentNode.className=$5S.parentNode.className.replace($5Y,$5X);}else{if($5S.parentNode.className.indexOf($5X)>0){$5S.parentNode.className=$5S.parentNode.className.replace($5X,$5Y);}}};if(i==1){$2K=getNextTD($5S.parentNode.nextSibling);if($2K.className.indexOf($5Y)>0){$2K.className=$2K.className.replace($5Y,$5X);}else{if($2K.className.indexOf($5X)>0){$2K.className=$2K.className.replace($5X,$5Y);}}};if(i==2){$2K=getNextTD($2K.nextSibling);if($2K.className.indexOf($5Y)>0){$2K.className=$2K.className.replace($5Y,$5X);}else{if($2K.className.indexOf($5X)>0){$2K.className=$2K.className.replace($5X,$5Y);}}};if(i==3){$2K=getNextTD($2K.nextSibling);if($2K.className.indexOf($5Y)>0){$2K.className=$2K.className.replace($5Y,$5X);}else{if($2K.className.indexOf($5X)>0){$2K.className=$2K.className.replace($5X,$5Y);}}};if($5S.parentNode.className.indexOf($5X)>0){$5W=$5U;}else{$5W=$5V;};if($60){$5S.parentNode.style.backgroundColor=$5T;}else{if($5S.checked&&$5R!=1){if(i===0){$5S.parentNode.style.backgroundColor=$5T;};if(i==1){$2K.style.backgroundColor=$5T;};if(i==2&&$5S.parentNode.nextSibling.nextSibling!==null){$2K.style.backgroundColor=$5T;};if(i==3&&$5S.parentNode.nextSibling.nextSibling.nextSibling!==null){$2K.style.backgroundColor=$5T;}}else{if(i===0){$5S.parentNode.style.backgroundColor=$5W;};if(i==1){$2K.style.backgroundColor=$5W;};if(i==2&&$5S.parentNode.nextSibling.nextSibling!==null){$2K.style.backgroundColor=$5W;};if(i==3&&$5S.parentNode.nextSibling.nextSibling.nextSibling!==null){$2K.style.backgroundColor=$5W;}}}}};function getNextTD($2K){var $62='';if($2K){$62=$2K;while($62.nodeType!==1){$62=$62.nextSibling;};return $62;}};function clickSplash($63){var $50;var $5f;var $64;var $65;var $66=false;$50=document.getElementById('cpnBtn_'+$63);$5f=document.getElementById('cpnDiv_'+$63);$64=document.getElementById('cpnSelectAll_'+$63);$65=document.getElementById('cpnCreate_'+$63);if($5f.style.display==='none'||$5f.style.visibility==='hidden'){intShowHide($5f,true);if($64!==null){intShowHide($64,true);};if($65!==null){$65.style.display="inline";$65.style.visibility="visible";};$66=true;}else{intShowHide($5f,false);if($64!==null){intShowHide($64,false);};if($65!==null){$65.style.display="none";$65.style.visibility="hidden";}};var $52=$50.src;if($51){$50.src=$52.replace(/iconClose.gif/g,'iconOpen.gif');}else{$50.src=$52.replace(/iconOpen.gif/g,'iconClose.gif');}};function gBOC($1w,TD){if(CheckState()!==true){return;};var $0M="gBOC";var $v=4999;var $67;var $68=true;var $69;var $6a='';var $6b;var $6c;g_cpnSelected='';g_cpnSelectedCount=0;CookieTest();snp($v);document.frmMain.txtClassID.value=$1w;$67=document.getElementsByName('chkCouponSelected');for(i=0;i<$67.length;i++){$6c=$67.item(i);if($6c.checked){if(g_cpnSelectedCount===maxCoupons+1){break;}else{if(g_cpnSelected===''){g_cpnSelected=g_cpnSelected+$6c.getAttribute("value");}else{g_cpnSelected=g_cpnSelected+','+$6c.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 $6d=document.getElementById("oddsDropDownHolder");var $6e=document.getElementById("oddsdisplay");if($6d!==null&&$6e!==null&&$6d.innerHTML!==''){$6e.innerHTML=$6d.innerHTML;$6e.style.visibility="visible";$6e.style.display="block";}};function showPrintLink(){var $6f=document.getElementById("cTopNav");var $6g=document.getElementById("printlink");var $6h=document.getElementById("printImg");if($6f!==null&&$6g!==null&&$6h!==null){$6g.style.visibility="visible";$6h.style.visibility="visible";$6g.style.display="block";$6h.style.display="block";}};function printPage($6i){var $6j=document.getElementById("txtNavigationPB").value;var $6k=$6j.toString();var $6l=$6k.indexOf("languageid=")+11;var $6m=$6k.indexOf(";");var $6n=$6k.substring($6l,$6m);var $6o=window.open("print/print.htm","PrintCoupon_"+$6n,"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 $6p="";$6q=opener.document.getElementById("centerData");$6f=opener.document.getElementById("middleTitle");$6r=opener.document.getElementById("div_cbocontainer");$6s=opener.document.getElementById("div_blurb_top");$6t=opener.document.getElementById("cHdr");$6u=opener.document.getElementById("div-crpf");$6v=opener.document.getElementById("regexPrintFlag");var $6w="0";if($6v!==null){$6w="1";};if(typeof($6q)=="object"&&typeof($6f)=="object"){var $6x=opener.document.getElementsByTagName("input");for($6y=0;$6y<$6x.length;$6y++){if($6x[$6y].type=="checkbox"){if($6x[$6y].checked==1){$6x[$6y].setAttribute("checked","checked");}};if($6x[$6y].type=="text"){if($6x[$6y].value!==''){$6x[$6y].setAttribute("value",$6x[$6y].value);}}};var $6z='';var $6A='';var $6B='';var $6C='';var $6D='';if($6f!==null){$6z=$6f.innerHTML;};if($6r!==null){$6A=$6r.innerHTML;};if($6s!==null){$6B=$6s.innerHTML;};if($6t!==null){$6C='<b>'+$6t.innerHTML+'</b>';};if($6u!==null){$6D=$6u.innerHTML;};$6E=$6q.innerHTML;$6E=$6E.replace($6z,$6C);$6E=$6E.replace($6A,"");$6E=$6E.replace($6B,"");$6E=$6E.replace($6D,"");};var $6F=$6E;var $6G=$6E;if($6F!==""){$6F=$6F.replace(/(\r\n|\r|\n|\t)/g,'');document.getElementById("Textarea2").value=$6F;$6F=cleanUpHTML($6F,$6w);document.getElementById("printText").innerHTML="";document.getElementById("printText").innerHTML=$6F;document.getElementById("text2").value=$6G+" Bet365";document.close();GetPageLanguageID();}}};function navigation_display(){SetBPID('0');SwapBlurbLink();if(null===document.getElementById('div_cbocontainer')){return;};var $6H=document.getElementById('div_cbocontainer');var $6I=document.getElementById('spn_navdropstext');if(bShowNav()){display_object($6I,false);display_object($6H,true);};return;};function bShowBlurb(){var $6J=document.getElementById('navblurbOC');var $6K=($6J!==null)?$6J.value:0;if($6K.length===0){$6K=0;};return Boolean(parseInt($6K));};function bShowNav(){var $6L=document.getElementById('navmenuOC');var $6M=($6L!==null)?$6L.value:0;if($6M.length===0){$6M=0;};return Boolean(parseInt($6M));};function SwapBlurbLink(b){var $6N=document.getElementById('spn_navblurbtext');var $6O=document.getElementById('spn_navblurbtext_2');var SBL=document.getElementById('showblurblink');var $6P=bShowNav();var $6Q=bShowBlurb();if(SBL===null||SBL==undefined){SBL=0;}else{SBL=SBL.value;};if(SBL===0){display_object($6N,false);display_object($6O,false);};if($6Q&&$6P){display_object($6N,false);display_object($6O,false);};if($6Q&&!$6P){display_object($6N,false);display_object($6O,false);};if(!$6Q&&!$6P){if(SBL==1){display_object($6N,true)};display_object($6O,false);};if(!$6Q&&$6P){display_object($6N,false);if(SBL==1){display_object($6O,true)};}};function navigation_manager($6R,TD){var $6H=document.getElementById('div_cbocontainer');var $6I=document.getElementById('spn_navdropstext');SetMState($6R);SwapBlurbLink();if($6R===0){display_object($6H,false);display_object($6I,true);return;};if(isdataloaded(1)!==true){if($6R!==0){if(top.IsLoaded('dataframeX')){setTD(TD);getdivdata(2095);setTD('');}}}else{display_object($6I,false);display_object($6H,true);}};function navigation_blurbs($6R){var $6S=document.getElementById('spn_navblurbtext');var $6T=document.frmMain.txtCurrentPageID.value;SetBState($6R);SetBPID($6T);if($6R!==0&&isdataloaded(2)!==true){if(top.IsLoaded('dataframeX')){getdivdata(2096);navigation_blurbs_display(true);}}else{if($6R==1){navigation_blurbs_display(true);}else{navigation_blurbs_display(false);}}};function SetBState($6U){var $6J=document.getElementById('navblurbOC');if($6J!==null){$6J.value=$6U;}};function SetBPID($6V){var $6J=document.getElementById('navblurbPID');if($6J!==null){$6J.value=$6V;}};function SetMState($6U){var $6L=document.getElementById('navmenuOC');if($6L!==null){$6L.value=$6U;}};function navigation_blurbs_display($6W){var $6X=document.getElementById('div_blurb_top');for(var ii=1;ii<5;ii++){$6X=document.getElementById('div_blurb_bottom_'+ii);display_object($6X,$6W);}};function getdivdata($6Y){var $6Z=top.getObjHandle('dataframeX');if($6Z!==null){var $70=document.frmMain.txtCPID.value;snp($6Y);var $00=document.getElementById('webSD');$00=$00.innerHTML;var $71=top.getObjDocHandle('dataframeX');$71.frmMainX.innerHTML=$00;$71.frmMainX.action='hdpage.asp?view=2&rn='+GetRndNum();var $72=$71.getElementById('tX');$72.value='1';$71.frmMainX.submit();CopyData($6Y);snp($70);}};var $1U=0;function CopyData($1j){if(!top.IsLoaded('dataframeX')){if(Number($1U)>0){clearTimeout($1U);};$1U=setTimeout('CopyData('+$1j+')',500);}else{var $6Z=top.frames['dataframeX'];var $71=$6Z.document;var $72=$71.getElementById('tX');if(($72===null)||(Number($72.value)===1)){if(Number($1U)>0){clearTimeout($1U);};$1U=setTimeout('CopyData('+$1j+')',500);}else{if(Number($1j)==1034){uSDC(WhichDiv);}else if(Number($1j)==2095){updatedivnavdata();}else if(Number($1j)==2096){updatedivnavblurb();}else if(Number($1j)==1092){upsbr();}else{updateDivContent(WhichDiv);};if((top!==null)&&(typeof top!=='undefined')){if(typeof top.SetDiemens=='function'){setTimeout('top.SetDiemens()',500);}}}}};function uSDC($73){var $5f;var $50;var $74;var $75;var $76;var $77;$74=top.getObjDocHandle('dataframeX');if(typeof($73)!="undefined"){$5f=$74.getElementById('cpnDiv_'+$73);$75=$74.getElementById('cpnHead_'+$73);$77=document.getElementById('cpnDiv_'+$73);$76=document.getElementById('cpnHead_'+$73);$50=document.getElementById('cpnBtn_'+$73);if($75!==null&&$76!==null){$76.innerHTML=$75.innerHTML;};if(!$77){$77=document.getElementById('cpnDiv');};if($5f!==null&&$77!==null){$77.innerHTML=$5f.innerHTML;intShowHide($77,true);var $52=$50.src;$50.src=$52.replace(/iconClose.gif/g,'iconOpen.gif');}}};function updatedivnavdata(){var $78=bShowNav();var $79=top.getObjDocHandle('dataframeX');if($78===""){$78=false;};var $7a=$79.getElementById('div_cbo_hidden');var $C=document.getElementById('div_cbocontainer');if($C!==null&&$7a!==null){$C.innerHTML=$7a.innerHTML;};if($78){var $7b=document.getElementById('div_cbocontainer');var $6I=document.getElementById('spn_navdropstext');display_object($6I,false);display_object($7b,true);};var $7c=document.getElementById('gotcombos');if($7c!==null){$7c.value="1";}};function updatedivnavblurb(){var $79=top.getObjDocHandle('dataframeX');for(var ii=1;ii<5;ii++){var $7d=$79.getElementById('div_blurb_top_hidden');var $7e=$79.getElementById('div_blurb_bottom_hidden');var $7f=document.getElementById('div_blurb_top');var $7g=document.getElementById('div_blurb_bottom_'+ii);if($7f!==null&&$7d!==null){$7f.innerHTML=$7d.innerHTML;};if($7g!==null&&$7e!==null){$7g.innerHTML=$7e.innerHTML;}};var $7h=document.getElementById('gotblurbdata');if($7h!==null){$7h.value="1";}};function upsbr(){var $7i=top.getObjDocHandle('dataframeX');var hDiv=$7i.getElementById('datadiv_results');var $7j=document.getElementById('searchbets_results');if($7j!==null&&hDiv!==null){$7j.innerHTML=hDiv.innerHTML;}};function updateDivContent($73){var $5f;var $50;var $7k;var $74;var $C;var $12;var $75;var $7l;var $77;var $7m;var $7n;$7k=top.getObjHandle('dataframeX');$74=top.getObjDocHandle('dataframeX');if(typeof($73)!="undefined"){$7m=$74.getElementById('txtBetID');if($7m!==null){$73=$7m.value;};$50=document.getElementById('cpnBtn_'+$73);$5f=document.getElementById('cpnDiv_'+$73);$77=$74.getElementById('cpnDiv_'+$73);if(!$77){$77=$74.getElementById('cpnDiv');};if($5f!==null&&$77!==null){$5f.innerHTML=$77.innerHTML;$75=document.getElementById('divHeader_'+$73);$7l=$74.getElementById('divHeader_'+$73);if($75!==null&&$7l!==null){$75.innerHTML=$7l.innerHTML;};switch(GetBrowser()){case 'OPERA':$5f.style.display='inline-block';break;case 'SAFARI':case 'NETSCAPE':$5f.style.visibility='visible';$5f.style.display='block';break;case 'FIREFOX':$5f.style.display='inline';break;case 'IE':$5f.style.visibility='visible';$5f.style.display='inline';break;default:break;};var $52=$50.src;$50.src=$52.replace(/iconClose.gif/g,'iconOpen.gif');if($73.indexOf('44#')===0||$73==='80056'||$73==='1554'||$73==='190056'||$73==='360042'||$73==='750055'||$73==='870037'||$73==='120020'){for(i=0;i<aSCP.length;i++){if(aSCP[i][0]===$7k.aSCP[0][0]){aSCP[i]=$7k.aSCP[0];$7n=true;break;}};if(!$7n){aSCP.push($7k.aSCP[0]);};SCL($7k.aSCP[0][0]);}}}};function isdataloaded($7o){var $79;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 $12;var $1g=new Array(0,0,0);var $1h=new Array(0,0,0);var $1i=new Array(0,0,0);var $1j=2095;var $1k="True";var $1l=false;var $1m;CookieTest();var $1n=$C.name;if($C.name=="cboSportC1"){$1h=setC2();$1i=setC3();$1g[0]=$C.options[$C.selectedIndex].text;$12=$C.options[$C.selectedIndex].value.split("#");$1g[1]=$12[0];$1g[2]=$12[1];$1h[1]=0;$1h[2]=0;$1j=GetCookie("session","currentpageid");var $1o=document.frmMain.cboSportC2;if(typeof $1o!=='undefined'){if((Number($1o.selectedIndex)>=0)&&(Number(document.frmMain.txtCPID.value)!=1020)){var $1p=GetNavigationPB("fixtureid");var $1q=document.frmMain.txtClassID.value;if(($1p>0)&&($1q==8||$1q==12||$1q==16||$1q==17||$1q==18||$1q==19||$1q==75||$1q==78||$1q==83||$1q==36)){$1j="4307";}else{$1j="100000";}}}};if($C.name=="cboSportC2"){if(Number($C.options[$C.selectedIndex].value)===0){return false;};updateSiteNavigationPB("fixtureid",0);updateSiteNavigationPB("next24hr","false");$1k='undefined';$1g=setC1();$1h[0]=$C.options[$C.selectedIndex].text;$12=$C.options[$C.selectedIndex].value.split("#");$1h[1]=$12[0];$1h[2]=$12[1];if($C.options[$C.selectedIndex].value.split("#").length>2){$1l=true;$1m=$12[2];$1i[1]=$12[3];$1i[2]=$12[4];};$1j="100000";};if($C.name=="cboPartBetTypes"){if($C.options[$C.selectedIndex].value===0){return false;};$1k='undefined';$1g=setC1();$1h=setC2();$1i[0]=$C.options[$C.selectedIndex].text;$12=$C.options[$C.selectedIndex].value.split("#");$1i[1]=$12[0];$1i[2]=$12[1];$1j="100000";};var $0O=$1g[0];var $0P=$1g[1];var $0Q=$1g[2];var $0R=$1h[0];var $0S=$1h[1];var $0T=$1h[2];var $0U=$1i[0];var $0V=$1i[1];var $0W=$1i[2];var $0X=$1m;if(CheckState()!==true){return;};var $0M="gPC";CookieTest();updateSiteNavigationPB("pagetemplateid",$1j);if(typeof $0X=="undefined"){updateSiteNavigationPB("c1id",$0P);updateSiteNavigationPB("c1idtable",$0Q);updateSiteNavigationPB("c2id",$0S);updateSiteNavigationPB("c2idtable",$0T);updateSiteNavigationPB("c3id",$0V);updateSiteNavigationPB("c3idtable",$0W);SetCookie('session','TrackOpenClose','');};updateSiteNavigationPB("c1idselected",$0P);updateSiteNavigationPB("c1idtableselected",$0Q);updateSiteNavigationPB("c2idselected",$0S);updateSiteNavigationPB("c2idtableselected",$0T);updateSiteNavigationPB("c3idselected",$0V);updateSiteNavigationPB("c3idtableselected",$0W);document.frmMain.txtCpnSelected.value='';if($7q==1){if(top.IsLoaded('dataframeX')){getdivdata(2095);}}else{snp($1j);SubmitForm();}};function display_object($2K,$7r){if($2K===null){return;};var $7s=GetBrowser();if($7r===false){switch($7s){case 'SAFARI':case 'NETSCAPE':$2K.style.visibility='hidden';$2K.style.display='none';break;case 'OPERA':case 'FIREFOX':$2K.style.display='none';break;case 'IE':$2K.style.visibility='hidden';$2K.style.display='none';break;default:break;}}else{if($7r===true||($2K.style.display==='none'||$2K.style.visibility==='hidden')){switch($7s){case 'SAFARI':case 'NETSCAPE':$2K.style.visibility='visible';$2K.style.display='block';break;case 'OPERA':case 'FIREFOX':$2K.style.display='block';break;case 'IE':$2K.style.visibility='visible';$2K.style.display='block';break;default:break;}}else{switch($7s){case 'SAFARI':case 'NETSCAPE':$2K.style.visibility='hidden';$2K.style.display='none';break;case 'OPERA':case 'FIREFOX':$2K.style.display='none';break;case 'IE':$2K.style.visibility='hidden';$2K.style.display='none';break;default:break;}}}};var $7t='';function couponSelectAll($4Y,$7u){var $7v=document.getElementById('chkSelectAll_'+$4Y);var $7w=document.getElementById('cpnDiv_'+$4Y);var $7x=0;var $7y;var $6c;var $7z;var $7A;var $7B='';var $7C=''
var eleParent=document.getElementById('splashData');var $6b=eleParent.getElementsByTagName('input');var $7D=false;var $7E=$4Y.split('#');if($7E[0]=='2'||$7E[0]=='4'||$7E[0]=='73'){$7D=true;};if($7D){for(i=0;i<$6b.length;i++){$6c=$6b.item(i);if($6c.checked){if($6c.getAttribute('checkcode')!==$4Y){mlAlert(188,maxCoupons);return false;}}}};if($7D&&$7t===''){$7t=$4Y;};if($7D){for(i=0;i<$6b.length;i++){$6c=$6b.item(i);if($6c.id!=='chkSelectAll_'+$4Y){if($6c.checked&&$6c.name!=="chkCouponSelected"){if($7D){$7t='';return false;}}else{$6c.checked=false;}}else{if(!$6c.checked){$7t='';}}}};if($7u==1){$7w=document.getElementById('cpnDiv_Challenge_'+$4Y);};if($7v===null||$7w===null){return false;};$7y=$7w.getElementsByTagName('input');for(j=0;j<$7y.length;j++){$6c=$7y.item(j);if($6c.name==="chkCouponSelected"){if($7v.checked){$6c.checked=true;if(checkNumberOfCheckedCoupons($6c)==false){return false};}else{$6c.checked=false;}}};return true;};function checkNumberOfCheckedCoupons($7F){var $6b;var $6c;var $7G=0;var $7H=false;var $7I=113;var $7J=122;var $7K=-1;var eleParent=document.getElementById('splashData');$6b=eleParent.getElementsByTagName('input');var $7L=true;var $7M=0;var $7N=new Array();var $7O=false;var $7P=false;for(i=0;i<$6b.length;i++){$6c=$6b.item(i);if($6c.name==="chkCouponSelected"){if($6c.checked){var $7Q=ReturnClassificationID($6c.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<$6b.length;i++){$6c=$6b.item(i);if($6c.name==="chkCouponSelected"){if($6c.checked){var $7R=isUSHorse($6c.value);if(($7H&&$7R)||(!$7L&&!$7H&&!$7R)){i=$6b.length+1;$7G=maxCoupons+1;$7K=$7J;}else if($7G===maxCoupons+1){i=$6b.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 $0M="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 $1U=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,$10){if(CheckState()!==true){return;};if($10===null)$10=1;var $0M="gSFX";CookieTest();snp($v);document.frmMain.txtClassID.value=$85;updateSiteNavigationPB("sectionid",$10);updateSiteNavigationPB("c1id",$86);updateSiteNavigationPB("c1idtable",$87);updateSiteNavigationPB("challengeid",$88);updateSiteNavigationPB("plbtid",$89);updateSiteNavigationPB("splashoption",''+$8a+':'+$8b);getdivdata($v);};function cSPH($63,$85,$86,$87,$88,$89,$8a,$8b,$10){var $50;var $5f;var $64;var $65;var $8c;$50=document.getElementById('cpnBtn_'+$63);$5f=document.getElementById('cpnDiv_'+$63);$64=document.getElementById('cpnSelectAll_'+$63);$65=document.getElementById('cpnCreate_'+$63);$8c=document.getElementById('cpnTitle_'+$63);WhichDiv=$63;var $2c=top.frames['dataframeX'];var $2d=$2c.document;var $72=$2d.getElementById('tX');if($5f.style.display==='none'||$5f.style.visibility==='hidden'){if(top.IsLoaded('dataframeX')){document.frmMain.tcocsel.value=WhichDiv;$5f.innerHTML='';gSFX(1034,$85,$86,$87,$88,$89,$8a,$8b,$10);}}else{intShowHide($5f,false);if($64!==null){intShowHide($64,false);};if($65!==null){$65.style.display="none";$65.style.visibility="hidden";};if($8c!==null){$8c.style.position='';};var $52=$50.src;$50.src=$52.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 $1U=setTimeout('RefreshBS()',100);}else{var $2b=top.getObjHandle('bslip');$2b.style.display='block';LoadBS();}};function ShowBS(){var $u=top.frames['bslip'];var $K=$u.document;if(typeof $K.frmMain.txtCPID!=='undefined'){$2t=$K.frmMain.txtCPID.value;}else{$2t=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 $52;var $8m=document.getElementById('txtBSMS');if((typeof $8m!=='undefined')&&(null !==$8m)){$8l=$8m.value;}else{$8l='0';};if(typeof $8j!=='undefined'){$52=$8j.src;}else{$8j=document.getElementById('imgMop');$52=$8j.src;};if(Number($8l)===0){if((typeof $8m!=='undefined')&&(null !==$8m)){$8m.value='1';};$52=$52.replace(/bsmb2.gif/g,'bsmb.gif');$8j.src=$52;}else{if((typeof $8m!=='undefined')&&(null !==$8m)){$8m.value='0';};$52=$52.replace(/bsmb.gif/g,'bsmb2.gif');$8j.src=$52;};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 $1X=top.getIFObj('flshCK');var $8o=top.sFCU;if($1X!==null&&typeof $1X!=='undefined'){if((String($8o)!==String($1X.src))&&($8o.length>0)){$1X.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 $2i=$8p.elements['txtAS'];if(typeof $2i!=='undefined'){if($2i!==null){if($2i.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 $45;if(!(typeof $8P==='undefined')){$45=document.getElementById("hidParam");$45.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($0d){AddSlip($0d);};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){$8Y.subscribeToTopic($8W);}}};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 $00=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($00.indexOf(';')>0){$00=$00.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 $1p=$00.match(/f=.*?#/);var $95=$00.match(/fp=.*?#/);$1p=String($1p).replace(/f\=/,'');$95=String($95).replace(/fp\=/,'');$92=$92+'#'+$1p+$95;if($8X!==null){var $96=$8X.getElementById('tRLP');if($96!==null){$96.value=$92;$8X.frmMain.submit();}}};$00=$00+$91;var rx=new RegExp('#f=[0-9]*#');$00=$00.replace(rx,'#');aBet($00,1);};function FL_AddBet(id,$97,$98,$99){if(!(IsSlipCompatible(g_cintSportSlip))){return false;};var $00=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($00.indexOf(';')>0){$00=$00.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 $1p=$00.match(/f=.*?#/);var $95=$00.match(/fp=.*?#/);$1p=String($1p).replace(/f\=/,'');$95=String($95).replace(/fp\=/,'');$92=$92+'#'+$1p+$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';};$00=$00+$91+$9a;var rx=new RegExp('#f=[0-9]*#');$00=$00.replace(rx,'#');aBet($00,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($0d){if(CheckState()!==true){return false;};if(!(IsSlipCompatible(g_cintFinSlip))){showFinancialsSlip();};$0d=$0d.replace(/,/g,'#');$0d+=('#'+g_cstrOpenBetsOpen+'='+SOfinGetOpenBetsOpen());$0d+=('#'+g_cstrOpenBetsList+'='+SOfinGetAllHiddenOpenBets());var $O=SOGetSlipObj();if(($O!==null)&&(typeof $O!=='undefined')){var $u=top.getObjHandle('bslip');$u.finClearSubs();SOSetFinancials($O,$0d);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 $0M="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 $1W='./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($1W,"height="+height+",width="+width+",left="+$r+",top="+$s);};function gAnchor($1n){window.location.hash=$1n;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,$0O,$0P,$0Q,$0R,$0S,$0T,$0U,$0V,$0W,$0X){var $1e=(parseFloat(document.frmMain.txtFlashVersion.value)>=reqFlashVersion);var $9t=(document.frmMain.txtFlashEnable.value==="true");if($1e&&$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,$0O,$0P,$0Q,$0R,$0S,$0T,$0U,$0V,$0W,$0X);}};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($13,$2x,$2y,$9x,$9y,$9z,$9A,$9B,$1U,$9C,$9D){if(typeof($9C)==="undefined"||$9C===null){$9C=$1U;};if(typeof($9D)==="undefined"||$9D===null){$9D="showall";};var $9E='<object id="'+$1U+'" classid="'+$13+'" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="'+$2x+'" height="'+$2y+'" > '+'<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="'+$2x+'" height="'+$2y+'" 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($2t,TD){if(!ChckUserLoged()){gP(-1);return false;};var $1W="./defaulthmr.asp"
$0q=$1W+"?popup=true&rn="+GetRndNum()+"&ibpid="+$2t;if((typeof TD!=='undefined')&&(TD!==null)){$9m=$0q+'&td='+TD;}else{$9m=$0q;};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($2t,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($5M){var $5N=document.all?event.keyCode:$5M.which?$5M.which:$5M.keyCode;if($5N=='e'.charCodeAt()||$5N=='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(){$0q='../popup.asp?popup=true&pageid=5702&rn='+GetRndNum();window.open($0q,"anew",$0g="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 $6l=$9V.toUpperCase().indexOf("<SELECT");var $6m=($9V.toUpperCase().indexOf("</SELECT>")+9);for($6y=0;($6y<$6l);$6y++){var $9W=$9V.substring($6l,$6m);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);};$6l=$9V.indexOf("<SELECT");$6m=($9V.indexOf("</SELECT>")+9);}}else{var $6l=$9V.toUpperCase().indexOf("<SELECT");var $6m=($9V.toUpperCase().indexOf("</SELECT>")+9);for($6y=0;$6l!=-1;$6y++){var $9W=$9V.substring($6l,$6m);$9V=$9V.replace($9W,"");$6l=$9V.toUpperCase().indexOf("<SELECT");$6m=($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 $1U;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')){$1U=setTimeout('CSpSt()',100);}else{SOBSRefresh();document.frmMain.txtJL.value=0;}}else{if(top.IsLoaded('SlipObj')&&top.IsLoaded('bslip')){if(typeof(top.getObjHandle)!="undefined"){var $2b=top.document.getElementById('bslip');if((typeof $2b!=='undefined')&&($2b!==null)){$2b.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 $4b=$E.value;reloadBSF($4b);};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{$1U=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 $1U=setTimeout('RefreshSlip("'+$a5+'","'+$D+'")',100);}else{if(Number($a5)==1){SOBSRefresh();}else{SORefresh(false,$D);}}}};function backFunc($5M){var $a6=top.frames['SlipObj'];if((typeof $a6!=='undefined')&&($a6!==null)){var $a7=$a6.document;if((typeof $a7!=='undefined')&&($a7!==null)){var $2e=$a7.getElementById('txtSeqID');if((typeof $2e!=='undefined')&&($2e!==null)){var $a8=$2e.value;var $2f=GetCookie('seq','slip');if($2f!=$a8){SOProcessBrowserRefresh($a7);}}}}};function LaunchFlashTest($a9,$aa,$ab){var $2x=screen.width;var $2y=screen.height;var $2z,$2A,$2B;$2A=250;$2z=191;$2B=1;var $2D=Number(($2x-$2A)/2);var $2E=Number(($2y-$2z)/2);var $2F='./../home/Flash_InPlay/Flash_Tester.asp?size='+$2B+'&detectflash=false'+'&Mode='+$a9;if((typeof $a9=='undefined')||($a9==null)||(Number($aa)==1)||(Number($a9)==0)){window.open($2F,'ainp',$2G='toolbar=0,scrollbars=0,location=0,status=0,menubar=0,resizable=0,left='+$2E+',top='+$2D+',width='+$2A+', height='+$2z);}else{if(Number($ab)==3){$2F='http://get.adobe.com/es/flashplayer/';}else if(Number($ab)==4){$2F='http://get.adobe.com/fr/flashplayer/';}else if(Number($ab)==5){$2F='http://get.adobe.com/de/flashplayer/';}else if(Number($ab)==6){$2F='http://get.adobe.com/it/flashplayer/';}else{$2F='http://get.adobe.com/flashplayer/';};inPlayPopUp=window.open($2F,'ainplay',$2G='left='+$2E+',top='+$2D+',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 $5N=document.all?event.keyCode:e.which?e.which:e.keyCode;if($5N!==null&&typeof($5N)!="undefined"){if($5N==13){var $2v=document.getElementById("txtCPID");if($2v!==null&&typeof($2v)!="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 $1W=$p.location.href;$p.location.replace($1W=$1W.replace("fin=0","fin=1"));};$p=top.frames['bsliptop'];if(null !==$p){var $1W=$p.location.href;$p.location.replace($1W=$1W.replace("fin=0","fin=1"));};$p=top.frames['SlipObj'];if(null !==$p){var $1W=$p.location.href;$p.location.replace($1W=$1W.replace("process=y",""));}};function hideFinancialsSlip(){var $p=top.frames['bslip'];if(null !==$p){var $1W=$p.location.href;$p.location.replace($1W.replace("fin=1","fin=0"));};$p=top.frames['bsliptop'];if(null !==$p){var $1W=$p.location.href;$p.location.replace($1W=$1W.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($1W,$aj,$ak){title="bet365 ";$2u="http://"+$1W;title=($aj);if(window.sidebar){window.sidebar.addPanel(title,$2u,"");}else if(window.external){window.external.AddFavorite($2u,title);}};function cpnBK(TD){var $al=document.getElementById('txtSiteNavigationPB');var $am=document.getElementById('txtSNPPB');if($al!==null&&$am!==null){var $2t=GetNavigationPB('pagetemplateid',0,$am);var $an=GetNavigationPB('classificationid',0,$am);if(Number($an)>0){document.frmMain.txtClassID.value=$an;snp($2t);}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 $1W='./sitetr.asp?rul='+$9m+'&rn='+GetRndNum();window.open($1W,'lsw','width='+width+',height='+height+',left='+$r+',top='+$s+',status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes');};function Tgle($2K){var oN=$2K.name;var sN=oN.substring(oN.length-1,oN.length);var $ao,$ap;if(Number(sN)==1){$ao=document.getElementById(oN);sN=oN.substring(0,oN.length-1);$ap=document.getElementById(sN);if($ao!==null&&$ap!==null){switch(GetBrowser()){case 'SAFARI':case 'NETSCAPE':$ao.style.visibility='hidden';$ap.style.display='block';$ap.style.visibility='visible';break;case 'OPERA':case 'FIREFOX':$ap.style.display='block';$ap.style.visibility='visible';$ao.style.display='none';break;default:$ap.style.visibility='visible';$ap.style.display='block';$ao.style.display='none';break;};$ap.focus();}}else{$ao=document.getElementById(oN+'1');$ap=document.getElementById(oN);if($ao!==null&&$ap!==null&&$2K.value.length===0){switch(GetBrowser()){case 'SAFARI':case 'NETSCAPE':$ap.style.visibility='hidden';$ao.style.display='block';$ao.style.visibility='visible';break;case 'OPERA':case 'FIREFOX':$ao.style.display='block';$ap.style.display='none';break;default:$ao.style.visibility='visible';$ao.style.display='block';$ap.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($2K,$aq){var $ar=$2K.getAttribute('bd');var $as=$2K.getAttribute('col');var $at=$2K.className;if($at.indexOf(' z')>0){$at=$at.replace(' z',' w');}else{if($at.indexOf(' w')>0){$at=$at.replace(' w',' z');}};if($at.indexOf(' it2')==-1){$at=$at+' it2';$2K.className=$at;}else{$2K.className=$at;};if($2K.style.backgroundColor.length){$2K.style.backgroundColor='';}else{$2K.style.backgroundColor='#FEF5BA';aBet($ar);};if(($as!==null)&&(Number($as)>0)&&(typeof $aq=='undefined')){var $49;if(Number($as)==1){$49=$2K.nextSibling;ShB($49,1);};if(Number($as)==2){$49=$2K.previousSibling;ShB($49,1);}}};function hTM($2K,e){if(Number(e)==1){$2K.src=$2K.src.replace(/1.png/g,'2.png');};if(Number(e)==2){$2K.src=$2K.src.replace(/2.png/g,'1.png');}};function LoadMIP($au){if(!top.IsLoaded('inplay')){var $1U=setTimeout('LoadMIP()',500);}else{var $av=top.getObjDocHandle('inplay');if($av!==null){var $aw=$av.getElementById('tSBPID');var $ax=$av.getElementById('txtClassID');var $ay=$av.getElementById('txtDOT');var $az=$av.getElementById('PageType');var $aA=$av.getElementById('imgDiv');var $aB=$av.getElementById('txtNPID');var $aC=$av.getElementById('txtsd');var $aD=$av.getElementById('txtTKN');var $aE=document.getElementById('txtCPID');var $aF=document.getElementById('txtClassID');var $aG=document.getElementById('txtDOT');var $aH=document.getElementById('imgDiv');var $aI=document.getElementById('txtsd');var $aJ=document.getElementById('txtTKN');var $aK=0;var $aL=0;var $aM=0;var $aN=0;var $aO=0;var $aP=0;var $aQ=0;var $aR=0;var $aS=$au;if(($aJ!==null)&&($aD!==null)){$aD.value=$aJ.value;};if($aE!==null){$aK=$aE.value;};if(Number($aK)==1022){return false;};if($aw!==null){$aL=$aw.value;};if($aF!==null){$aM=$aF.value;};if($ax!==null){$aN=$ax.value;};if($aG!==null){$aO=$aG.value;};if($ay!==null){$aP=$ay.value;};if($az!==null){$aQ=$az.value;};if($aI!==null){$aR=$aI.value;};if(Number($aK)==1010&&$aQ!=='H'&&(!$aS)){$aM=0;$aS=true;};if(Number($aK)==9610&&$aQ!=='F'&&(!$aS)){$aS=true;};if(Number($aK)==9611&&$aQ!=='F'&&(!$aS)){$aS=true;};if((Number($aO)!==Number($aP))&&(!$aS)){$aS=true;};if($aQ!=='S'&&(!$aS)){$aS=true;};if((Number($aM)!==Number($aN))&&($aQ=='S')&&(!$aS)){var $aT='';if($aH!==null){$aT=$aH.innerHTML;};if(($aA!==null)&&($aT.length!==0)){$aA.innerHTML=$aT;var $aU=top.getObjHandle('inplay');if($aU!==null){$aU.ResizeIP();}};if(($aE!==null)&&($aw!==null)){$aw.value=$aK;};if(($aF!==null)&&($ax!==null)){$ax.value=$aM;};if(($aG!==null)&&($ay!==null)){$ay.value=$aO;};if($aC!==null){$aC.value=$aR;}};if($aS){if(($aE!==null)&&($aw!==null)){$aw.value=$aK;};if(($aF!==null)&&($ax!==null)){$ax.value=$aM;};if(($aG!==null)&&($ay!==null)){$ay.value=$aO;};if($aB!==null){$aB.value=1022;};if($aC!==null){$aC.value=$aR;};if($av.frmMain.action.indexOf('?')===-1){$av.frmMain.action=$av.frmMain.action+'?rn='+GetRndNum();};$av.frmMain.submit();}}}};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($2t,$aV,TD){var $aW=document.getElementById("sitegroupid");if(($aW!==null)&&(Number($aV)>=0)){$aW.value=$aV;};gP($2t,TD);};function launchPromo($aX){if(typeof $aX=="undefined"){$aX="";};window.open('Promotions/bet365promo.asp?'+$aX,"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($aY){var $aZ=document.getElementById("sitegroupid");$aZ.value=$aY;};function setTD($z){if((typeof $z!=='undefined')&&($z!==null)){var $b0=document.getElementById("tTD");if($b0!==null){$b0.value=unescape($z);}}};function LdStrmETote($b1,$b2,$b3){var $r=GetScrennWidth();var $s=GetScrennTop();var $1W='./EtoteStream.asp?sid='+$b1+'&stm='+$b2+'&fxid='+$b3+'&rn='+GetRndNum();window.open($1W,"etotestream","height=600,width=600,status=no,toolbar=no,menubar=no,location=no,left="+$r+",top="+$s+",scrollbars=yes,resizable=no");};function LdFormETote($b4){if(CheckState()!==true){return;};var $ac=GetNavigationPB("languageid",1);var $0q="prevform.asp?greyform=1&fxid="+$b4+"&lid="+$ac;window.open($0q,"bet365_Form",$0g="height=600,width=1023,left=150,top=200,toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=0");};function UpdateExtSession($b5){var $b6=false;if(typeof top.getIFObj!=='undefined'&&typeof top.getIFObj=='function'){var $1X=top.getIFObj('flshCK');if($1X!==null&&typeof $1X!=='undefined'){$1X.state=0;$b6=true;}};var $b7=document.getElementById('txtTKN');if(typeof($b7)!=='undefined'||$b7!==null){$b7.value=$b5;gP(-1);if($b6){$1X.state=1;}}};function LBS(sD,$b8){if(CheckState()!==true){setTimeout('LBS("'+sD+'","'+$b8+'")',1000);};if(!top.IsLoaded('bslip')){setTimeout('LBS("'+sD+'","'+$b8+'")',1000);};if((CheckState()==true)&&top.IsLoaded('bslip')){var $K=top.getObjDocHandle('bslip');if($K!==null){aBet(sD,'undefined',"1",$b8);}}};function launchRules($v,$b9,$2t,$ba){var qs="?ibpid="+$v+"&sg="+$b9+"&sctid=1&prd="+$2t+"&lng="+$ba+'&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($bb){var $w=null;if(Number($bb)===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($bb)===Number(g_cintFinSlip)){var $bc=SOSelectionCount();$w=SOIsFinancials();if($w!==null){if((Number($w)===-1)&&(Number($bc)>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($00){var $bd=document.getElementById('tFLS');if($bd!==null){$bd.value=$00;}};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($4b){var $u=top.getObjHandle('bslip');if($u!==null){$u.ReloadBSFlsh($4b);}else{var $1U=setTimeout('reloadBSF('+$4b+')',1000);}};function FL_UBS($be,$3x){var $bf='';var $bg='';var $bh='';var $bi='';var $bj='';var $0c='';var $bk='';var $bl=-1;var $bm='';var $bn='';var $u=top.getObjHandle('bslip');var $bo=false;var $bp=top.getObjDocHandle('bslip');if($bp!==null){var $4E=$bp.getElementById('pbTxt');if($4E!==null){if($4E.style.display==''){return false;}}};for(var i in $be.data){switch(i){case 'HA':$bf=$be.data[i];break;case 'HD':$bg=$be.data[i];break;case 'HS':$bj=$be.data[i];break;case 'ID':$0c=$be.data[i];break;case 'OD':$bh=$be.data[i];break;case 'convertedOdds':$bi=$be.data[i];break;case 'SU':$bl=$be.data[i];break;case 'SA':$bm=$be.data[i];break;case 'IT':$bn=$be.data[i];break;case 'FI':$bk=$be.data[i];break;default:break;}};$bn=$bn.length==0?$3x:$bn;$bl=$be.type=='D'?1:$bl;var $bq=false;if($bp!==null){$br=$bp.getElementById('SelCount');if($br!==null){$br=lrtrim($br.innerHTML);if(($br.length>0)&&(!isNaN(Number($br)))){$bc=Number($br);}else{$bc=0;}};if($bc===0){$bc=14;};for($bs=1;$bs<=$bc;$bs++){$bt=$bs+1000;$br=$bp.getElementById('pbn'+$bt);$bo=false;if($u!==null){$bo=$u.isBSS($bt);};if($br!==null){$bu=lrtrim($br.innerHTML);var $bv=$bu.split('#');var $bw='';var $bx='0';var $by='';var $bz='';var $bA='';var $bB='';var $bC='';var $bD='';var $bE='';var $bF=$br.getAttribute('tp')!==null?$br.getAttribute('tp'):'';for(var j=0;j<$bv.length;j++){var $bG=$bv[j].split('=');if($bG[0]){switch($bG[0]){case 'pt':$bw=$bG[1];break;case 'so':$bx=$bG[1];break;case 'o':$by=$bG[1];break;case 'f':$bz=$bG[1];break;case 'fp':$bA=$bG[1];break;case 'c':$bB=$bG[1];break;case 'ln':$bC=$bG[1];break;case 'sa':$bD=$bG[1];break;case 'mt':$bE=$bG[1];break;default:break;}}};if($bn==$bF){var $bH='pt=N#so=0#o=OD#fp=FP#c=CL#ln=HA#sa=SA#';$bH=$bH.replace('OD',($bh.length>0?$bh:$by));$bH=$bH.replace('FI',$bz);$bH=$bH.replace('FP',$bA);$bH=$bH.replace('CL',$bB);$bH=$bH.replace('HA',($bf.length>0?$bf:$bC));$bH=$bH.replace('SA',($bm.length>0?$bm:$bD));if(($bh!==$by)&&($bi!==null)){var oO=$bp.getElementById('do'+$bt);var $bI=true;if(oO!==null){var $bJ=$bp.getElementById('optOdds'+$bt);if($bJ!==null){$bJ[1].text=$bi;$bJ[1].value='1#'+$bh;$bI=false;if($bJ.selectedIndex==1){$bI=true;oO.style.width="20px";oO.style.display="block";oO.className='scn';}}else{oO.innerHTML=$bi;oO.className='scn';}};oO=$bp.getElementById('Odds'+$bt);if(oO!==null){oO.value=$bh;};oO=$bp.getElementById('Risk'+$bt);if(oO!==null){oO.onkeyup();};$br.innerHTML=$bH;$br.setAttribute('ix',$bj);$bq=$bI;};if(($bf!==$bC)&&($bf.length>0)&&($bg.length>0)){var oL=$bp.getElementById('dl'+$bt);if(oL!==null){oL.innerHTML=$bg;oL.className='scn';};$br.innerHTML=$bH;$br.setAttribute('ix',$bj);$bq=true;};if(Number($bl)>0){$u=top.getObjHandle('bslip');$u.bsSS($bt,true);var $bK=$bp.getElementById('multiHeader');var $bL=$bp.getElementById('multiples');var $bM=$bp.getElementById('imgMop');var $bN=$bp.getElementById('txtBSMS');if(($bN!==null)&&($bN.value>0)){if($bK!==null){$bK.style.display='none';};if($bL!==null){$bL.style.display='none';};if($bM!==null){var $52=$bM.replace(/bsmb.gif/g,'bsmb2.gif');$bM.src=$52}};$bq=true;}else if(Number($bl)==0){var $u=top.frames['bslip'];$u.bsSS($bt,false);}}}};if($bq){var $bO=$bp.getElementById('lnkPB');var $bP=$bp.getElementById('lnkIPB');var $bQ=$bp.getElementById('lnkAB');var $bR=$bp.getElementById('tntc');if($bO!==null){$bO.style.display='none';$bO.style.visibility='hidden';};if($bP!==null){$bP.style.display='';$bP.style.visibility='visible';};if($bQ!==null){$bQ.style.display='';$bQ.style.visibility='visible';};if($bR!==null){$bR.style.display='';$bR.style.visibility='visible';};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($bS){var $bT;for(var i=0;i<window.frames.length;i++){if(window.frames[i].name==$bS||window.frames[i].id==$bS){$bT=window.frames[i];break;}};return $bT;};function RemoveFlashObject(bK){try{var el=document.getElementById(bK);if(el!=null){el.pageUnloading();};swfobject.removeSWF(bK);}catch(bL){}};function CheckFlashConnections(){try{var $bU=getIFrame("dataFrame");}catch($bV){}};function RemoveClients(){try{var el=top.document.getElementById('WC');el.removeClients(flclients);}catch($bV){}};function RemoveFlashObjects(){RemoveFlashObject('flashtl');RemoveFlashObject('flash');RemoveFlashObject('flashraces');RemoveFlashObject('flashhigh');RemoveClients();};function GetNAVVer(){return 'Navigation_vA0039cr';}


