
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';};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;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;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;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;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';}};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 $1Y=eval("document.frmMain.txtGuestAcc");var $1Z=("IEx"==GetBrowser());if(typeof $1Y!="undefined"){var $20=GetCookie('session','imagespath');var $21=eval("document.frmMain.StyleName");var $22="S=";if(Number($1j)==2210){if($1Z){$22+=$21.value+";Err=Dep;ImPath="+$20;}else{$22=59;}}else if(Number($1j)==2130){if($1Z){$22+=$21.value+";Err=With;ImPath="+$20;}else{$22=60;}}else if(Number($1j)==2110){if($1Z){$22+=$21.value+";Err=Pref;ImPath="+$20;}else{$22=61;}};var $23="";if($1Z){$23=window.showModalDialog("Sorry.htm",$22,"dialogHeight:280px;dialogWidth:420px;dialogTop:400px;dialogLeft:300px;edge:raised;resizable:yes;status=no;resizable=no;");if($23===true){$1Y.value="true";return true;}else{$1Y.value="false";return false;}}else{return mlConfirm($22);}}}};function JoinNow(){var $1Y=eval("document.frmMain.txtGuestAcc");if(typeof $1Y!="undefined"){$1Y.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 $24=top.getObjHandle('dataframeX');if($24!==null){$24.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 $25=GetCookie("session","faqitem");if(9603===Number(document.frmMain.txtCPID.value)&&$25!==null&&typeof($25)!=="undefined"){jumpTo($25,$25);};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 $26=document.getElementById('tSO');if($26!==null){var $27=isNaN($26.value)?0:$26.value;if(Number($27)>0){setTimeout('gP(-1)',$27);}};if(typeof top.getIFObj!=='undefined'&&typeof top.getIFObj=='function'){var $1X=top.getIFObj('flshCK');if($1X!==null&&typeof $1X!=='undefined'){if($1X.state==0){setTimeout('UpdateUQID();',1500);}}}};function UpdateTkn(){var $28=GetCookie("session","stk");var $29=document.getElementById('txtTKN');if(($29!==null)&&(typeof $28!=='undefined')&&($28!==null)&&($29.value!==$28)){$29.value=$28;}};function UpdateUQID(){if(typeof top.getIFObj!=='undefined'&&typeof top.getIFObj=='function'){var $1X=top.getIFObj('flshCK');if($1X!==null&&typeof $1X!=='undefined'){if($1X.state==0){var $2a=top.sFCU;var $2b=document.getElementById('txtTKN');if(typeof($2b)!=='undefined'||$2b!==null){$2b='?stk='+$2b.value;$1X.state=1;$1X.src=$1X.src+$2b+'&setU=1';}}}}};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 $2c=top.getIFObj('bslip');var $2d=top.frames['SlipObj'];if((typeof $2d!=='undefined')&&($2d!==null)){var $2e=$2d.document;if((typeof $2e!=='undefined')&&($2e!==null)){$2f=$2e.getElementById('txtSeqID');if($2f!==null){$2g=GetCookie('seq','slip');$2h=($2f!==null)?$2f.value:'';if($2h!==$2g){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,$2i){SetCookie("session","sourceid",$2i);PM($1j);};function UseSSL(){var $y=false;var $2j=document.getElementById('txtAS');if(typeof $2j!=='undefined'){if($2j!==null){if($2j.value==='1'){$y=true;}}};return $y;};function PM($1j,TD){var $2k=GetQS();var $2l=Number($1j);if($2l==3000||$2l==2010||$2l==2210||$2l==2130||$2l==2110||$2l==2180||$2l==2100){if(!ChckUserLoged()){gP(-1);return false;}};if(Number($1j)==2010){var $2m=1;if((document.frmMain.txtNavigationPB!==null)&&(typeof document.frmMain.txtNavigationPB!=='undefined')){var $2n=document.frmMain.txtNavigationPB.value;var $2o=$2n.indexOf("SiteContentTypeID=");var $2p=$2n.indexOf(";",$2o);var $2q=$2n.substring($2o+18,$2p);switch(Number($2q)){case 5:$2m=5;break;case 4:$2m=3;break;default:$2m=1;break;}};$2k=$2k+'&prd='+$2m;setPrd('1');setPmt('0');};var width;var height;if(2200==$1j){var $2r=document.getElementById('txtAFC');if($2r!==null){if($2r.value.length>0){$2k='&affiliate='+$2r.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)){$2k=$2k+'&td='+TD;};windowOpen($1j,true,"http://"+getURL($1j)+"?ibpid="+$1j+$2k+'&rn='+GetRndNum(),"height="+height+",width="+width+",left="+$r+",top="+$s);if(2200==$1j||$1j==2740||$1j==5380){MOAW();}};function PCP($1j,$2s,$2t){var $1W=getURL($1j);windowOpen($1j,true,"http://"+$1W+"?ibpid="+$1j+'&rn='+GetRndNum(),"height="+$2s+",width="+$2t+",left=300,top=300");};function sslPC($1j){var $1W=getURL($1j);windowOpen($1j,true,"http://"+$1W+"?ibpid="+$1j+'&rn='+GetRndNum(),"height="+$2s+",width="+$2t+",left=300,top=300,height="+g_windowSizeLarge[1]+",width="+g_windowSizeLarge[0]);};function RsPC($1j){var $2u=Number($1j);var $2k=GetQS();if((5665==$2u)||(2495==$2u)||(5544==$2u)){if(!CheckLogIn(false)){mlAlert(36);return;}};var $1W=getURL($1j);var $2v='http://'+$1W+'?ibpid='+$1j+$2k+'&rn='+GetRndNum();if(arguments.length>1&&5544!=$2u){if(arguments[1].indexOf('~')==-1){$2v+='&gametype='+arguments[1]+'&nb=1';}};if(arguments.length>1&&5544==$2u){if(arguments[1].indexOf('~')==-1){$2v+='&po='+arguments[1];}};if(arguments.length>1){if(arguments[1].indexOf('~')>0){$2v+='&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,$2v,"height="+height+",width="+width+",left="+$r+",top="+$s);if($1j==5430){MOAW();}};function RsPCBS($1j){var $2u=Number($1j);if((5665==$2u)||(2495==$2u)){if(!CheckLogIn(false)){if(!IsLogIn(false)){mlAlert(36);return;}}};var $2s=GetScreenRes();var $r=GetScrennWidth();var $s=GetScrennTop();var $2v=(UseSSL()?'https://':'http://')+top.frames['main'].document.frmMain.txtURL.value+'?popmembers='+$1j;windowOpen($1j,true,$2v,"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 $2w=document.getElementById("txtCurrentPageID");if($2w!==null){$2w.value=0;scp(0);cPC();ClosePopParent();}};return true;};function ClosePopParent(){closeWindow(winMMM);};function LaunchInPlay($2x){var $2y=screen.width;var $2z=screen.height;var $2A,$2B,$2C;if($2z<768){$2B=776;$2A=516;$2C=1;}else{$2B=1016;$2A=680;$2C=2;};var $2D=GetNavigationPB("languageid",1);if(($2x===null)||(typeof $2x=='undefined')){LaunchInPlay2();return false;};var $2E=Number(($2y-$2B)/2);var $2F=Number(($2z-$2A)/2);var $2G='./Flash_InPlay/InPlay_v23.asp?size='+$2C+'&detectflash=false';inPlayPopUp=window.open($2G,'ainplay',$2H='toolbar=0,scrollbars=1,location=0,status=0,menubar=0,resizable=0,left='+$2F+',top='+$2E+',width='+$2B+', height='+$2A);return true;};function sTN($C){var $2I=$C.options[$C.selectedIndex].value;var $2J=document.frmMain.txtNumbers.value.split("#");for(i=0;i<$2J.length;i++){var $2K=$2J[i].split("%");if($2K[0]==$2I){document.frmMain.txtplacebet.value=$2K[1];document.frmMain.txtcustomerservice.value=$2K[2];}}};function gLN($2L){if(CheckState()!==true){return;};if(0===$2L.selectedIndex){return;};if(0===$2L.value.length){return;};var $v=$2L.value.split(',')[0];var $2M=$2L.value.split(',')[1];CookieTest();var $B=document.getElementById('txtLS1');if((typeof($B)!=='undefined')&&(null !==$B)){$B.value='';};gLC($v,$2M);};function lottodisplay($2N){var h=document.getElementById('div_navlotto_h');var s=document.getElementById('div_navlotto_s');if($2N==1){intShowHide(h,false);intShowHide(s,true);}else{intShowHide(h,true);intShowHide(s,false);};SetMState($2N);};function gLC($v,$2M){if(CheckState()!==true){return;};CookieTest();snp($v);updateSiteNavigationPB('lotterycode',$2M);updateSiteNavigationPB('c1id',666);SubmitForm();};function snp($2O){if(arguments.length>1&&arguments[1]){self.opener.document.frmMain.txtNPID.value=Number($2O);}else if(typeof(document.frmMain.txtNPID)=="undefined"){}else{document.frmMain.txtNPID.value=Number($2O);}};function scp($2P){document.frmMain.txtCPID.value=Number($2P);};function spp($2Q){document.frmMain.txtPPID.value=Number($2Q);};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($2R){if(!this.OKToAddNumbersSelection()){return false;};var $B=document.getElementById('txtLS1');if((typeof($B)!=='undefined')&&(null !==$B)){$B.value=$2R;};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 $2S;$2S=false;for(i=0;i<arguments.length;i++){if('P'==arguments[i]){$2S=true;break;}};if(!$2S){this.ClearAllParlaySelections(true);};$2S=false;for(i=0;i<arguments.length;i++){if('L'==arguments[i]){$2S=true;break;}};if(!$2S){this.ClearAllNumbersSelections(true);};this.Refresh();return true;};function $g(){var $2T=document.getElementById("txtPTS");if((typeof($2T)!=='undefined')&&(null !==$2T)){this.ParlaySelections=$2T.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($2U,$2V){return true;};function SetElementCheckedState($2W,$2X){if(document.frmMain.elements[$2W]){if(document.frmMain.elements[$2W].length){var $2Y=document.frmMain.elements[$2W].length;for(var i=0;i<$2Y;i++){document.frmMain.elements[$2W][i].checked=$2X;}}else{document.frmMain.elements[$2W].checked=$2X;}}};function SetElementDisabledState($2W,$2X){var $2Z;var $h;if(document.frmMain.elements[$2W]){if(document.frmMain.elements[$2W].length){var $2Y=document.frmMain.elements[$2W].length;for(var i=0;i<$2Y;i++){$2Z=true;$h=document.frmMain.elements[$2W][i];if(arguments.length>2){if('USH'==arguments[2]){var $30=$h.value.charAt(0);if(('A'==arguments[3]&&$30!='A')||('0'==arguments[3]&&$30=='A')||('3'==arguments[3]&&$30!='3')){$2Z=false;}}};if($2Z){if($h.getAttribute('FD')){$h.disabled=true;}else{$h.disabled=$2X;}}}}else{$h=document.frmMain.elements[$2W];if($h.getAttribute('FD')){$h.disabled=true;}else{$h.disabled=$2X;}}}};function vUSHQuinella($31){var $2Y=document.frmMain.elements[$31].length;var $32=0;var $h;var $33=0;var $34=new Array();var i;var $35=0+document.frmMain.elements.length;var $36=0;for(i=0;i<$2Y;i++){$h=document.frmMain.elements[$31][i];if($h.checked){$32++;$34[$34.length]=$h.value;}};if(0===$32){return 0;};var $37=isNaN(Number($31.substring(4,3)))?2:Number($31.substring(4,3));for(i=0;i<$2Y;i++){$h=document.frmMain.elements[$31][i];if($h.checked&&$32<$37){if(arguments.length>1){if(null===$h.getAttribute('bgsave')){$h.setAttribute('bgsave',$h.style.backgroundColor);};$h.style.backgroundColor='red';};$33++;}else{if(null !==$h.getAttribute('bgsave')){$h.style.backgroundColor=$h.getAttribute('bgsave');}}};return($33>0)?-1:$34;};function vUSHAnyOrder($X){var $2Y=document.frmMain.elements[$X].length;var $32=0;var $h;var $38=vUSHCreateArrCounts($X);var $39=('chkW'==$X)?2:$38.length-1;var $33=0;var $34=new Array();var i;var $3a=document.frmMain.elements[$X];for(i=0;i<$2Y;i++){$h=$3a[i];if('A'==$h.value.charAt(0)){if($h.checked){$32++;$34[$34.length]=$h.value.substring(1,$h.value.length);}}};for(i=0;i<$2Y;i++){$h=$3a[i];if('A'==$h.value.charAt(0)){if($h.checked&&$32<$39){if(arguments.length>1){if(null===$h.getAttribute('bgsave')){$h.setAttribute('bgsave',$h.style.backgroundColor);};$h.style.backgroundColor='red';};$33++;}else{if(null !==$h.getAttribute('bgsave')){$h.style.backgroundColor=$h.getAttribute('bgsave');}}}};return($33>0)?-1:$34;};function vUSHPopulatearrCheck($3b){var $3c=0;var $3d;var $3e;var $3f='';var $3g='';var j;var $3h='S';if(document.frmMain.chkBanker){if(document.frmMain.chkBanker.checked){$3h='B';}};if(arguments.length>1){$3c=arguments[1];};$3e='';for(var i=0;i<$3b.length;i++){if(arguments.length>1){var $3i=false;for(j=0;j<arguments[2].length;j++){if(arguments[2][j]==i){$3i=true;break;}};if($3i){continue;}};if($3b[i][$3c][2]){if(($3c+1)==$3b[i].length||(1==$3c&&'B'==$3h)){$3b[i][$3c][3]++;if('B'!=$3h){$3e='';};if(0===$3e.length){if(arguments.length>1){for(j=0;j<arguments[2].length;j++){$3b[arguments[2][j]][j][3]++;if($3e.length>0){$3e+=',';};$3e+=$3b[arguments[2][j]][j][1];}}};if($3e.length>0){$3e+=',';};$3e+=$3b[i][$3c][1];if('B'!=$3h){if($3f.length>0){$3f+=';';};$3f+=$3e;}}else{$3d=new Array();if(arguments.length>1){for(var k=0;k<arguments[2].length;k++){$3d[$3d.length]=arguments[2][k];}};$3d[$3d.length]=i;$3g=vUSHPopulatearrCheck($3b,($3c+1),$3d);if($3g.length>0){if($3f.length>0){$3f+=';';};$3f+=$3g;}}}};if('B'===$3h&&0!==$3e.length){if($3f.length>0){$3f+=';';};$3f+=$3e;};return $3f;};function vUSHCreateArrCounts($X){var $38=new Array();var $3j=document.getElementsByName($X);var $2Y=$3j.length;var $3k;var $30;$38[0]=new Array();$38[0][0]=0;$38[0][1]=0;for(var i=0;i<$2Y;i++){$3k=$3j[i];$30=$3k.value.charAt(0);$3l=('A'==$30)?0:Number($30);if($38[$3l]){$38[$3l][0]++;}else{$38[$3l]=new Array();$38[$3l][0]=1;$38[$3l][1]=0;};if($3k.checked){$38[$3l][1]++;}};return $38;};function vUSHValidateCombinations($X){var $3b=new Array();var $38=vUSHCreateArrCounts($X);var i;var j;var k;var $3j=document.getElementsByName($X);var $2Y=$3j.length;var $3k;var $33=0;var $34=new Array();var $3g;var $3h='S';if(document.frmMain.chkBanker){if(document.frmMain.chkBanker.checked){$3h='B';}};j=0;for(i=0;i<$2Y;i++){$3k=$3j[i];if(1==Number($3k.value.charAt(0))){$3b[j]=new Array();for(k=0;k<$38.length-1;k++){$3b[j][k]=new Array();};$3b[j][0][0]=$3k;$3b[j][0][1]=Number($3k.value.substring(1,$3k.value.length));$3b[j][0][2]=$3k.checked;$3b[j][0][3]=0;j++;}};for(i=0;i<$2Y;i++){$3k=$3j[i];if(!$3k.disabled){if('A'!=$3k.value.charAt(0)&&1!=Number($3k.value.charAt(0))){for(j=0;j<$3b.length;j++){if(Number($3b[j][0][1])==Number($3k.value.substring(1,$3k.value.length))){k=Number($3k.value.charAt(0))-1;$3b[j][k][0]=$3k;$3b[j][k][1]=Number($3k.value.substring(1,$3k.value.length));$3b[j][k][2]=$3k.checked;$3b[j][k][3]=0;}}}}};$3g=vUSHPopulatearrCheck($3b);if($3g.length>0){$34=$3g.split(';');};for(i=0;i<$3b.length;i++){for(j=0;j<$38.length-1;j++){if($3b[i][j][2]&&0===$3b[i][j][3]){if('B'!=$3h){if(arguments.length>1){if(null===$3b[i][j][0].getAttribute('bgsave')){$3b[i][j][0].setAttribute('bgsave',$3b[i][j][0].style.backgroundColor);};$3b[i][j][0].style.backgroundColor='red';};$33++;}}else{if($3b[i][j][0]){if(null !==$3b[i][j][0].getAttribute('bgsave')){$3b[i][j][0].style.backgroundColor=$3b[i][j][0].getAttribute('bgsave');}}}}};if(0===$33&&'B'==$3h&&$X!=='chkW'){if(0<$38[1][1]&&2>$38[2][1]){$33++;}};return($33>0)?-1:$34;};function vUSHForecast($2U){var i;var $3m=('A'==$2U.value.charAt(0))?0:Number($2U.value.charAt(0));var $38=vUSHCreateArrCounts($2U.name);var $2Y=document.frmMain.elements[$2U.name].length;var $3n=0;var $3o=0;var $3h='S';if(document.frmMain.chkBanker){if(document.frmMain.chkBanker.checked){$3h='B';}};for(i=0;i<$38.length;i++){$3o+=$38[i][1];};if(0===$3m){for(i=1;i<$38.length;i++){$3n+=$38[i][1];}}else{$3n+=$38[0][1];};var $35=0+document.frmMain.elements.length;var $36=0;for(i=0;i<$35;i++){if(document.frmMain.elements[i].checked){if('chkOdds'==document.frmMain.elements[i].name){$36++;break;}}};if($3m){vUSHValidateCombinations($2U.name);};if(1==$3o-$3n){SetElementDisabledState($2U.name,true,'USH',(0===$3m)?'0':'A');};if(0===$3o){if('B'!=$3h){SetElementDisabledState($2U.name,false,'USH',(0===$3m)?'0':'A');};$35=0+document.frmMain.elements.length;$36=0;for(i=0;i<$35;i++){if(document.frmMain.elements[i].checked){if('chkWPS'==document.frmMain.elements[i].name){$36++;break;}}}};if(0===$3m){vUSHAnyOrder($2U.name);}};function vUSH($2U){highlightselection($2U);if('chkE'==$2U.name||'chkT'==$2U.name||'chkS'==$2U.name){return vUSHForecast($2U);};if('chkQ'==$2U.name){if(!vUSHQuinella($2U.name)){$2U.checked=false;return false;}else{return true;}}};function vTB($2U){if($2U.checked){vRS();$2U.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($2U){};function vFT($2U){};function ProcessUS($3p){var i;var $01=false;var $3q=false;var $3r='';var $3s=SOGetCount(g_cstrTypeUS);var $3t='chkWPS';if((typeof $3p!=='undefined')&&($3p!==null)&&$3p==1){$3t='chkOdds';};for(i=0;i<document.frmMain.elements.length;i++){if(document.frmMain.elements[i].checked){if($3t==document.frmMain.elements[i].name){var $3u=FrmtBS(document.frmMain.elements[i].value);if(SONotExists($3u,g_cstrTypeUS,false)){document.frmMain.elements[i].checked=false;if($3s<g_MaxSelections){$3r=$3r+$3u+';';$3s=$3s+1;}else{$3q=true;}}else{$01=true;}}}};if($01){mlAlert(53);};if($3q){mlAlert(2);};return $3r;};function ProcessTote($07){if(typeof $07=='undefined'){$07=g_cstrTypeTote;};var i,j,k;var $01=false;var $3q=false;var $3v='';var $3s=SOGetCount($07);for(k=1;k<=TCC;k++){for(j=1;j<=eval('TCP'+k);j++){if(($3w=document.getElementById('chkTW'+'_'+k+'_'+j))){if($3w.checked){$3w.checked=false;var $3x=FrmtBS($3w.value);if(SONotExists($3x,$07,false)){if($3s<g_MaxSelections){$3v=$3v+$3x+';';$3s=$3s+1;}else{$3q=true;}}else{$01=true;}}};if(($3w=document.getElementById('chkTP'+'_'+k+'_'+j))){if($3w.checked){$3w.checked=false;var $3y=FrmtBS($3w.value);if(SONotExists($3y,$07,false)){if($3s<g_MaxSelections){$3v=$3v+$3y+';';$3s=$3s+1;}else{$3q=true;}}else{$01=true;}}};if(($3w=document.getElementById('chkTS'+'_'+k+'_'+j))){if($3w.checked){$3w.checked=false;var $3z=FrmtBS($3w.value);if(SONotExists($3z,$07,false)){if($3s<g_MaxSelections){$3v=$3v+$3z+';';$3s=$3s+1;}else{$3q=true;}}else{$01=true;}}};if(($3w=document.getElementById('chkTE'+'_'+k+'_'+j))){if($3w.checked){$3w.checked=false;var $3A=FrmtBS($3w.value);if(SONotExists($3A,$07,false)){if($3s<g_MaxSelections){$3v=$3v+$3A+';';$3s=$3s+1;}else{$3q=true;}}else{$01=true;}}}}};if($01){mlAlert(53);};if($3q){mlAlert(2);};return $3v;};function ProcessPot($3B){var $3C;var $3D;switch(Number(document.frmMain.txtCPID.value)){case 4520:$3C='U';break;case 4521:$3C='R';break;case 4530:case 4535:case 4525:$3C='T';break;case 4540:$3C='J';break;case 4522:$3C='E';break;default:$3C='N';break;};$3D='S';if(document.frmMain.chkBanker){if(document.frmMain.chkBanker.checked){$3D='B';}};var i,j,k;var $3E,$3F;var $3G;var $3w;var $3H=new Array();var $3I;var $3J;var $3K;var $3L;var $01=false;var $00='';$3K=false;for(i=0;i<TCC;i++){$3E=0;$3F=0;for(j=0;j<eval('TCL'+(i+1));j++){$3G=false;for(k=0;k<eval('TCP'+(i+1));k++){if(($3w=document.getElementById('chkT_'+(i+1)+'_'+(j+1)+'_'+(k+1)))){if($3w.checked){$3G=true;break;}}};if($3G){$3F++;}else{$3E++;}};if($3E>0&&$3F>0){mlAlert(91);return false;};if($3F>0){$3K=true;}};if($3K){for(i=0;i<TCC;i++){$3I='';$3J='';$3M=GetCookie('session','U');$3M++;SetCookie('session','U',$3M);for(j=0;j<eval('TCL'+(i+1));j++){for(k=0;k<eval('TCP'+(i+1));k++){if(($3w=document.getElementById('chkT_'+(i+1)+'_'+(j+1)+'_'+(k+1)))){if($3w.checked){$3I+=$3J+$3w.getAttribute('T')+','+$3w.getAttribute('value').toString()+','+$3M;$3J='~';$3w.checked=false;sRace($3w,true);}}}};if(''!==$3I){$3H[$3H.length]=$3C+TCT+'P'+$3I;}};for(i=0;i<$3H.length;i++){if(SONotExists($3H[i],g_cstrTypeCast,false)){$00=$00+$3H[i]+';';}else{$01=true;}}};if($01){mlAlert(53);};return $00;};function ProcessCast(){var $3C;var $3D;var $3s=SOGetCount(g_cstrTypeCast);var $3q=false;switch(Number(document.frmMain.txtCPID.value)){case 4520:$3C='U';break;case 4530:case 4535:case 4525:$3C='T';break;case 4028:$3C='J';break;default:$3C='N';break;};$3D='S';if(document.frmMain.chkBanker){if(document.frmMain.chkBanker.checked){$3D='B';}};var $3N=document.getElementById('cpntrni');if(($3C=='U')&&($3N!==null)){$3C='R';};var $3O=document.getElementById('cpnetote');if(($3C=='T')&&($3O!==null)){$3C='E';};var $3P=document.getElementById('cpnfgtote')!==null?true:false;var i;var $3Q;var $3H=new Array();var $33=0;var $3R=0;var $08=new Array();$08[0]='chkE';$08[1]='chkT';$08[2]='chkW';if('U'==$3C||$3C=='R'||'J'==$3C){$08[2]='chkS';};if('U'==$3C||'J'==$3C||$3C=='R'||$3P){if($3C!=='J'){if(document.frmMain.elements['chkQ']){$3Q=vUSHQuinella('chkQ',true);if(-1==$3Q){$33++;}else{if($3Q.length>0){$3H[$3H.length]=$3C+'Q'+(($3Q.length>2)?'C':'S')+document.frmMain.txtFixtureID.value+'~'+$3Q.join(',');$3R++;}}}}else{for(i=2;i<=4;i++){var $3S='chk'+i;if(document.frmMain.elements[$3S]){$3Q=vUSHQuinella($3S,true);if(-1==$3Q){$33++;}else{if($3Q.length>0){$3H[$3H.length]=$3C+i+(($3Q.length>i)?'C':'S')+document.frmMain.txtFixtureID.value+'~'+$3Q.join(',');$3R++;}}}}}};for(i=0;i<$08.length;i++){if(!document.frmMain.elements[$08[i]]){continue;};$3Q=vUSHValidateCombinations($08[i],true);if(-1==$3Q){$33++;}else{if($3Q.length>0){for(var j=0;j<$3Q.length;j++){$3H[$3H.length]=$3C+$08[i].charAt(3)+$3D+document.frmMain.txtFixtureID.value+'~'+$3Q[j];$3R++;}}};$3Q=vUSHAnyOrder($08[i],true);if(-1==$3Q){$33++;}else{if($3Q.length>0){$3H[$3H.length]=$3C+$08[i].charAt(3)+'C'+document.frmMain.txtFixtureID.value+'~'+$3Q.join(',');$3R++;}}};if($33){mlAlert(57);return false;};$3v='';var $01=false;if(0===$33&&$3R>0){for(i=0;i<$3H.length;i++){if(SONotExists($3H[i],g_cstrTypeCast,false)){if($3s<g_MaxSelections){$3v+=$3H[i]+';';$3s=$3s+1;}else{$3q=true;}}else{$01=true;}}};if($01){mlAlert(53);};if($3q){mlAlert(2);};return $3v;};function ProcessForeignToteCoupon(){var i,j,k;var $2V=new BettingSlipObject();if(!$2V.OK){delete $2V;return false;};for(k=1;k<=TCC;k++){for(j=1;j<=eval('TCP'+k);j++){if(($3w=document.getElementById('chkTW'+'_'+k+'_'+j))){if($3w.checked){$3w.checked=false;if(!$2V.AddForeignToteSelection($3w.value)){return false;}}};if(($3w=document.getElementById('chkTP'+'_'+k+'_'+j))){if($3w.checked){$3w.checked=false;if(!$2V.AddForeignToteSelection($3w.value)){return false;}}};if(($3w=document.getElementById('chkTS'+'_'+k+'_'+j))){if($3w.checked){$3w.checked=false;if(!$2V.AddNormalSelection($3w.value)){return false;}}};if(($3w=document.getElementById('chkTE'+'_'+k+'_'+j))){if($3w.checked){$3w.checked=false;if(!$2V.AddForeignToteSelection($3w.value)){return false;}}}}};if(!ProcessCastSelections($2V)){return false;};ResetToteCoupon();return true;};function ResetUSHorseCoupon(){var i;var $3T=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);};$2Y=document.frmMain.elements.length;for(i=0;i<$2Y;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);};$2Y=document.frmMain.elements.length;for(i=0;i<$2Y;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 $3U=Number(document.frmMain.txtCPID.value);if(4520==$3U||4010==$3U){ResetUSHorseCoupon();};if(4525==$3U||4540==$3U){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==$3U||4280==$3U||4270==$3U||4020==$3U){ResetUSHorseCoupon(true);}};function SetMinsToPost($3V,$3W,$3X){var $3Y;var DP;var D;var T;var P;var M;if($3X){DP=$3V.getAttribute('A2');D=DP.split('T')[0].split('-');T=DP.split('T')[1].split('.')[0].split(':');$3Y=new Date(D[0],D[1]-1,D[2],T[0],T[1],T[2]);P=new Date(($3W.getTime()+($3W.getTime()-$3Y.getTime())+($3V.getAttribute('A3')*1000)));$3V.setAttribute('A2',P.getTime());}else{P=new Date($3V.getAttribute('A2'));};M=Math.round(((P.getTime()-$3W.getTime())/1000)/60);var x=String($3V.getAttribute('A1').replace(/%1/,M));$3V.innerText=x;};function mtp($3Z){if('IE'==GetBrowser()){var $3V=window.MTP;var $3W=new Date();if($3V.length){for(var i=0;i<$3V.length;i++){SetMinsToPost($3V[i],$3W,(0===arguments.length?true:false));}}else{SetMinsToPost($3V,$3W,(0===arguments.length?true:false));};var $1U=setTimeout('mtp(1)',1000);}};function getRegExp($G){var $40=['^','$','*','\\','+','?','.','|','[',']','(',')','/'];var $41=$G;for(var i=0;i<$40.length;i++){RE=new RegExp('\\'+$40[i],'g');$41=$41.replace(RE,'\\'+$40[i]);};var $42=new RegExp($41);return $42;};function gCPar($43){var $44=$43.split("#");CookieTest();snp(4600);document.frmMain.txtClassID.value=$44[1];updateSiteNavigationPB("cardcouponid",$44[0]);updateSiteNavigationPB("classificationid",$44[1]);SubmitForm();};function FC($2L){if(DocLoaded===0){$2L.blur();return false;}};function aLayBet($45,$46,$47){var $2V=new BettingSlipObject();if(!$2V.OK){delete $2V;return false;};if((10143==$45)||(10148==$45)){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 $48=document.getElementById($46);var $49=$48.getAttribute('pcode');aBet($49);if(typeof $47!=='undefined'){$48.className=$47;}else{$48.className='ln';};highlightselection($48,$47);};function loadGT($2u){document.frmMain.txtGameBets.value="1";gP($2u);};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 $4a=document.getElementById(ID);var $4b=document.getElementById('d'+ID);var $4c=ID;if(ID=='tod'){$4c='tln';};if(ID=='tln'){$4c='tod';};ulData($4c);var aP=findPos($4a);if($4b.style.display=='none'){if(ID=='tln'){$4b.style.left=(Number(aP[0])-11)+'px';$4b.style.top='6px';}else{$4b.style.left=(Number(aP[0])-11)+'px';var $2u=(document.getElementById('txtCPID')!==null?document.getElementById('txtCPID').value:0);if(Number($2u)==9611){$4b.style.top='61px';}else{$4b.style.top='42px';}};$4b.style.display='';}};function ulData(ID){var $4b=document.getElementById('d'+ID);if($4b!==null){$4b.style.display='none';}};function findPos($2L){var $4d=$4e=0;if($2L.offsetParent){$4d=$2L.offsetLeft;$4e=$2L.offsetTop;while($2L=$2L.offsetParent){$4d+=$2L.offsetLeft;$4e+=$2L.offsetTop;}};return[$4d,$4e];};function MOAW(){if(1==Number(GetCookie("session","p"))){SetCookie("session","p","0");var $4f=document.getElementById('tLS');if($4f!==null){$4f.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 $4g=0;var $4h=null;var $4i;var $4j;var h;var m;var s;var $4k;var $4l;var $4m;var $4n=0;var $4o=0;function Start(yy,mo,da,hh,mm,ss){$4j=new Date(yy,(mo-1),da,hh,mm,ss);$4k=new Date(yy,(mo-1),da,hh,mm,ss);$4l=new Date(yy,(mo-1),da,hh,mm,ss);$4i=document.getElementById('clock');$4m=document.getElementById('cTZI');if(typeof $4i!='undefined'){UpdateTimer();};GetFlashVersion();};function UpdateTimer(){if($4g){clearTimeout($4g);$4p=0;};$4j.setTime($4j.getTime()+1000);if($4j.getHours()<10){h='0'+$4j.getHours();}else{h=$4j.getHours();};if($4j.getMinutes()<10){m='0'+$4j.getMinutes();}else{m=$4j.getMinutes();};if($4j.getSeconds()<10){s='0'+$4j.getSeconds();}else{s=$4j.getSeconds();};$4i.innerHTML=""+h+":"+m+":"+s;$4g=setTimeout("UpdateTimer()",1000);};function gRace($4q,iLegNo){var $4r=eval('CVL'+$4q);var arrCVL=$4r.split('#');if(arrCVL[1]!=iLegNo){document.getElementById($4r).style.display='none';eval('CVL'+$4q+'=\''+arrCVL[0]+'#'+iLegNo+'\';');$4r=eval('CVL'+$4q);document.getElementById($4r).style.display='';}};function sRace($2L){if(!CheckLogIn()){$2L.checked=false;return;};var $4s=$2L.name.split('_');if(arguments.length<2){gRace($4s[1],$4s[2]);};document.getElementById(('chkR'==$4s[0]?'chkT':'chkR')+'_'+$4s[1]+'_'+$4s[2]+'_'+$4s[3]).checked=$2L.checked;};function gMP($2u,$4c){if(typeof $4c=='undefined'){var $4t=$2u.split('#');if($4t.length>0){setPrd($4t[2]);setPmt($4t[1]);gP($4t[0]);}else{gPS($2u);}}else{var $4u=$4c.options[$4c.selectedIndex].value;gPS($4u);}};function gPS($2u){snp($2u);document.frmMain.method="post";document.frmMain.action="https://"+document.frmMain.txtURL.value;document.frmMain.submit();};function DisplayFunds(){var $00=document.getElementById('pData').value;var $4v=document.frmMain.oPTF.options[document.frmMain.oPTF.selectedIndex].value;var $4w=document.frmMain.oPTT.options[document.frmMain.oPTT.selectedIndex].value;$00=$00.split('#');var $4x=$00[6].split('=')[1];var $4y=$00[7].split('=')[1];if(($4v==1&&$4w==3)||($4v==3&&$4w==1)||($4v==1&&$4w==1)||($4v==3&&$4w==3)||($4v==4&&$4w==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(($4v==1&&$4w==4)||($4v==4&&$4w==1)||($4v==3&&$4w==4)||($4v==4&&$4w==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(($4v==1&&$4w==4)||($4v==3&&$4w==4)){document.getElementById('ucr').innerHTML=$4x;document.getElementById('pcr').innerHTML=$4y;};if(($4v==4&&$4w==1)||($4v==4&&$4w==3)){document.getElementById('ucr').innerHTML=$4y;document.getElementById('pcr').innerHTML=$4x;};if(($4v==1&&$4w==3)||($4v==3&&$4w==1)||($4v==1&&$4w==1)||($4v==3&&$4w==3)||($4v==4&&$4w==4)){document.getElementById('ucr').innerHTML=$4x;document.getElementById('pcr').innerHTML=$4y;};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($4z){var $4A,$4B,$00,$4C,$4D;if(typeof $4z==='undefined'){var $4v=document.frmMain.oPTF.options[document.frmMain.oPTF.selectedIndex].value;var $4w=document.frmMain.oPTT.options[document.frmMain.oPTT.selectedIndex].value;if($4v==4||$4w==4){$4A="";$4B=document.frmMain.txtAmt1.value;$00=document.getElementById('pData').value;$00=$00.split('#');$4C=$00[0].split('=')[1];$4D=$00[1].split('=')[1];if($4v!=4){$4A=(($4B/$4C)*$4D);};if($4w!=4){$4A=(($4B/$4D)*$4C);};document.frmMain.txtCValue.value=$4A;rndDeci(document.frmMain.txtCValue,1);document.getElementById('pcc').innerHTML=document.frmMain.txtCValue.value;}}else{$4A="";$4B=document.frmMain.amount.value;$00=document.getElementById('pkrDta').value;$00=$00.split('#');$4C=$00[0].split('=')[1];$4D=$00[1].split('=')[1];if(Number($4z)===1){$4A=(($4B/$4C)*$4D);document.frmMain.txtCValue.value=$4A;rndDeci(document.frmMain.txtCValue,1);};if(Number($4z)===2){$4A=(($4B/$4D)*$4C);document.frmMain.txtCValue.value=$4A;rndDeci(document.frmMain.txtCValue,1);}}};function pCS($4E){chkNum($4E);document.getElementById('pcc').innerHTML='';document.frmMain.txtCValue.value="0.00";};function chkNum($4F){if(String($4F.value)=="0."){return false;};if(isNaN($4F.value)){$4F.value="";return true;};if($4F.value===""){$4F.value="";return true;};if(typeof document.frmMain.oPTT!='undefined'){var $4w=document.frmMain.oPTT.options[document.frmMain.oPTT.selectedIndex].value;if($4w==4){rndDeci($4F,0);}else{rndDeci($4F,1);}}else{rndDeci($4F,1);}};function DoTrnsfr($2u){if($2u==2270){var $4G=document.getElementById("chkDirect");var $4H=document.getElementById("trialexpired");if($4G.checked===true){if(Number($4H.value)==1){if(mlConfirm(120)===false){return false;}}}};var $4I,$4J,$4K,lB;var $1W=document.frmMain.txtURL.value;var $4L;var $4M=document.getElementById("txtDialingCode");if(typeof($4M)!=="undefined"&&$4M!==null){$4M.setAttribute("disabled",false);$4M.removeAttribute("disabled");};if(typeof frames['exbal']!=='undefined'){$4L=frames['exbal'].lDWBBal;}else{$4L=0;};if(($2u==3000)||($2u==3020)){var $4v=document.frmMain.oPTF.options[document.frmMain.oPTF.selectedIndex].value;var $4w=document.frmMain.oPTT.options[document.frmMain.oPTT.selectedIndex].value;if($4v==4||$4w==4){document.frmMain.txtAmt.value=document.frmMain.txtAmt1.value;CalcChips();}else{document.frmMain.txtAmt.value=document.frmMain.txtAmt2.value;};if($4v==3){if(!mlConfirm(88)){return false;}};$4K=document.getElementById('trcsn');if(typeof $4K.cells[2]!=='undefined'&&$4v==3){lB=$4K.cells[2].innerHTML;if(Number(lB)>0&&Number($4L)===1){if(mlConfirm(86)===false){document.frmMain.reset();return false;}}};if(Number(document.frmMain.txtAmt.value)>0){SVOT();}}else if(($2u==2220)||($2u==2270)||($2u==2450)||($2u==2570)||($2u==2580)||($2u==2590)||($2u==2610)||($2u==2600)||($2u==2605)){$4I=document.frmMain.sProduct;$4J=document.frmMain.sPayment;if(Number($4I.options[$4I.selectedIndex].value)===4){CalcChips(1);};if((typeof $4I!=='undefined')&&(typeof $4J!=='undefined')){setPrd($4I.options[$4I.selectedIndex].value);setPmt($4J.options[$4J.selectedIndex].value);};SVOD();}else if(($2u==2130)||($2u==2615)||($2u==2170)||($2u==2496)||($2u==2176)||($2u==2177)||($2u==2178)){$4I=document.frmMain.sProduct;$4J=document.frmMain.sPayment;if(Number($4I.options[$4I.selectedIndex].value)===4){CalcChips(2);};if((typeof $4I!=='undefined')&&(typeof $4J!=='undefined')){setPrd($4I.options[$4I.selectedIndex].value);setPmt($4J.options[$4J.selectedIndex].value);if($4I.options[$4I.selectedIndex].value==3){if(!mlConfirm(88)){return false;}};$4K=document.getElementById('cbb');if($4K!==null&&$4I.options[$4I.selectedIndex].value==3){lB=$4K.innerHTML;if(Number(lB)>0&&Number($4L)===1){if(mlConfirm(86)===false){document.frmMain.reset();return false;}}}};SVOW();}else{$4I=document.frmMain.sProduct;$4J=document.frmMain.sPayment;if((typeof $4I!=='undefined')&&(typeof $4J!=='undefined')){setPrd($4I.options[$4I.selectedIndex].value);setPmt($4J.options[$4J.selectedIndex].value);};VS();};return true;};function LdPmts($2L,$2u){if($2L.name=='sProduct'){setPrd($2L.options[$2L.selectedIndex].value);setPmt('0');};if($2L.name=='sPayment'){setPmt($2L.options[$2L.selectedIndex].value);};gPS($2u);};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 $4N=document.frmMain.txtGameBets;if(typeof $4N!=='undefined'){$4N.value=0;}};function LoadBal($4O,$4P,$4Q,$4R){window.frames.exbal.location.href='./ex-request.asp?uid='+$4O+'&uname='+$4P+'&product='+$4Q+'&sDep='+$4R+'&rn='+GetRndNum();};function PMPopUp($1j){$r=GetScrennWidth();$s=GetScrennTop();var $1W=document.frmMain.txtURL.value;var $4S=document.frmMain.action;$1W=$1W.replace($4S,'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($2u){snp($2u);if(arguments.length>1&&5544==$2u){document.frmMain.action=document.frmMain.action+'?po1='+arguments[1]+'&po='+arguments[1];};SubmitForm();};function simpleOpenClose($4T,$4U,$4V){var $4W;var $4X;var $4Y;$4T='cpnCtl_'+$4T;$4W=document.getElementById($4T);if($4U!==null){$4U='cpnCtl_'+$4U;$4X=document.getElementById($4U);};if($4V!==null){$4V='cpnCtl_'+$4V;$4Y=document.getElementById($4V);};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($4Y!==null&&(typeof $4Y!=='undefined')){intShowHide($4Y,($4Y.style.display==='none'||$4Y.style.visibility==='hidden'));};if((top!==null)&&(typeof top!=='undefined')){if(typeof top.SetDiemens=='function'){top.SetDiemens();}}};function ClientShowHide($4Z){var $50=document.getElementById('cpnDiv_'+$4Z);var $51=document.getElementById('cpnBtn_'+$4Z);var $52;if($50.style.display==='none'){$52=true;}else{$52=false;};intShowHide($50,$52);var $53=$51.src;if($52){$51.src=$53.replace(/iconOpen.gif/g,'iconOpen.gif');}else{$51.src=$53.replace(/iconClose.gif/g,'iconClose.gif');}};function intShowHide($50,$52){if($52){switch(GetBrowser()){case 'SAFARI':case 'NETSCAPE':$50.style.display='block';$50.style.visibility='visible';break;case 'OPERA':case 'FIREFOX':$50.style.display='block';break;default:$50.style.visibility='visible';$50.style.display='block';break;}}else{switch(GetBrowser()){case 'SAFARI':case 'NETSCAPE':$50.style.display='none';$50.style.visibility='hidden';break;case 'OPERA':case 'FIREFOX':$50.style.display='none';break;default:$50.style.visibility='hidden';$50.style.display='none';break;}}};function clickOpenClose($54,v2,v3,v4,v5,v6,v7,v8,v9,$55,$56,$57,$58,$59,$5a,$5b,$5c,$5d,$5e,$5f){var $5g;var $51;var $5h;var $5i;var $5j;var $5k;var $5l;var $5m;$54=''+$54;$5k=$54.split('#');$5l=$5k[0];$5m=$5k[1];updateSiteNavigationPB("plbtid",$5l);updateSiteNavigationPB("fixtureid",$5m);WhichDiv=$54;$51=document.getElementById('cpnBtn_'+$54);$5g=document.getElementById('cpnDiv_'+$54);var $0Y=document.getElementById('txtTOC');if($5g.style.display==='none'||$5g.style.visibility==='hidden'){if(top.IsLoaded('dataframeX')){document.frmMain.tcocsel.value=WhichDiv;switch(GetBrowser()){case 'SAFARI':case 'NETSCAPE':$5g.style.display='block';$5g.style.visibility='visible';break;case 'OPERA':case 'FIREFOX':$5g.style.display='block';break;default:$5g.style.visibility='visible';$5g.style.display='block';break;};if((null !==$0Y)&&(typeof $0Y!=='undefined')){var $5n=''+$0Y.value+$54+',';$0Y.value=$5n;};gPCFX(v2,v3,v4,v5,v6,v7,v8,v9,$55,$56,$57,$58,$59,$5a,$5b,$5c,$5d,$5e,$5f);}}else{if((null !==$0Y)&&(typeof $0Y!=='undefined')){$5k=$0Y.value.split(',');$0Y.value='';var $5n='';for(i=0;i<$5k.length-1;i++){if($5k[i]!==$54){$5n+=$5k[i]+',';}};$0Y.value=$5n;};$5g.innerHTML='';switch(GetBrowser()){case 'SAFARI':case 'NETSCAPE':$5g.style.visibility='hidden';$5g.style.display="none";break;case 'OPERA':case 'FIREFOX':$5g.style.display='none';break;case 'IE':$5g.style.visibility='hidden';$5g.style.display='none';break;default:break;};var $53=$51.src;$51.src=$53.replace(/iconOpen.gif/g,'iconClose.gif');}};function gPCFX($F,$5o,$5p,$5q,$5r,$5s,$5t,$5u,$5v,$5w,$5x,$5y,$5z,$5A,$5B,$5C,$5D,$5E,$5F,$5G){if(CheckState()!==true){return;};CookieTest();var $5H=GetNavigationPB("c1id");var $5I=GetNavigationPB("c1idtable");var $5J=GetNavigationPB("c2id");var $5K=GetNavigationPB("c2idtable");var $5L=GetNavigationPB("c3id");var $5M=GetNavigationPB("c3idtable");updateSiteNavigationPB("pagetemplateid",$F);if(typeof $0L=="undefined"){updateSiteNavigationPB("c1id",$5p);updateSiteNavigationPB("c1idtable",$5q);updateSiteNavigationPB("c2id",$5s);updateSiteNavigationPB("c2idtable",$5t);updateSiteNavigationPB("c3id",$5v);updateSiteNavigationPB("c3idtable",$5w);};updateSiteNavigationPB("c1idselected",$5p);updateSiteNavigationPB("c1idtableselected",$5q);updateSiteNavigationPB("c2idselected",$5s);updateSiteNavigationPB("c2idtableselected",$5t);updateSiteNavigationPB("c3idselected",$5v);updateSiteNavigationPB("c3idtableselected",$5w);getdivdata($F);updateSiteNavigationPB("pagetemplateid",100000);if(typeof $0L=="undefined"){updateSiteNavigationPB("c1id",$5y);updateSiteNavigationPB("c1idtable",$5z);updateSiteNavigationPB("c2id",$5B);updateSiteNavigationPB("c2idtable",$5C);updateSiteNavigationPB("c3id",$5E);updateSiteNavigationPB("c3idtable",$5F);};updateSiteNavigationPB("c1idselected",$5y);updateSiteNavigationPB("c1idtableselected",$5z);updateSiteNavigationPB("c2idselected",$5B);updateSiteNavigationPB("c2idtableselected",$5C);updateSiteNavigationPB("c3idselected",$5E);updateSiteNavigationPB("c3idtableselected",$5F);if($5I==7){updateSiteNavigationPB("c1id",$5H);updateSiteNavigationPB("c1idtable",$5I);updateSiteNavigationPB("c2id",$5J);updateSiteNavigationPB("c2idtable",$5K);updateSiteNavigationPB("c3id",$5L);updateSiteNavigationPB("c3idtable",$5M);updateSiteNavigationPB("c1idselected",$5H);updateSiteNavigationPB("c1idtableselected",$5I);updateSiteNavigationPB("c2idselected",$5J);updateSiteNavigationPB("c2idtableselected",$5K);updateSiteNavigationPB("c3idselected",$5L);updateSiteNavigationPB("c3idtableselected",$5M);}};function sLi($5N){var $5O=document.all?event.keyCode:$5N.which?$5N.which:$5N.keyCode?$5N.keyCode:$5N.charcode;var $5P=document.frmMain.txtUserName;var $5Q=document.frmMain.txtPassword;if(typeof $5P!=='undefined'&&typeof $5Q!=='undefined'){if($5P.value.length>0&&$5Q.value.length>0&&Number($5O)==13){gLi();}}};function unhighlightallselection($5R,$5S){if($5S==undefined){$5S=0;};for(var i=0;i<$5R.elements.length;i++){if($5R.elements[i].type=='checkbox'){if($5R.elements[i].checked){if($5S==1){highlightselection($5R.elements[i],1);}else{$5R.elements[i].checked=false;highlightselection($5R.elements[i],0);}}}}};function highlightselection($5T,$5S){var $5U='#FEF5BA';var $5V='#FFFFFF';var $5W;var $5X='';var $5Y='w';var $5Z='substitute';var $60=$5T.parentNode.id.toString();var $61=false;var blnIE=('IE'==GetBrowser()?true:false);var $62;var $2L;var i;if(blnIE){$62=document.styleSheets[1].rules;}else{$62=document.styleSheets[1].cssRules;};for(i=0;i<$62.length;i++){if($62[i].selectorText==".it2"){$5W=$62[i].style.backgroundColor;break;}};if($5T.checked===undefined){$61=true;};if($60.indexOf('p')<1){return;};$60=$5T.parentNode.id.replace('gp','');for(i=0;i<$60;i++){if(i===0){if($5T.parentNode.className.indexOf($5Z)>0){$5T.parentNode.className=$5T.parentNode.className.replace($5Z,$5Y);}else{if($5T.parentNode.className.indexOf($5Y)>0){$5T.parentNode.className=$5T.parentNode.className.replace($5Y,$5Z);}}};if(i==1){$2L=getNextTD($5T.parentNode.nextSibling);if($2L.className.indexOf($5Z)>0){$2L.className=$2L.className.replace($5Z,$5Y);}else{if($2L.className.indexOf($5Y)>0){$2L.className=$2L.className.replace($5Y,$5Z);}}};if(i==2){$2L=getNextTD($2L.nextSibling);if($2L.className.indexOf($5Z)>0){$2L.className=$2L.className.replace($5Z,$5Y);}else{if($2L.className.indexOf($5Y)>0){$2L.className=$2L.className.replace($5Y,$5Z);}}};if(i==3){$2L=getNextTD($2L.nextSibling);if($2L.className.indexOf($5Z)>0){$2L.className=$2L.className.replace($5Z,$5Y);}else{if($2L.className.indexOf($5Y)>0){$2L.className=$2L.className.replace($5Y,$5Z);}}};if($5T.parentNode.className.indexOf($5Y)>0){$5X=$5V;}else{$5X=$5W;};if($61){$5T.parentNode.style.backgroundColor=$5U;}else{if($5T.checked&&$5S!=1){if(i===0){$5T.parentNode.style.backgroundColor=$5U;};if(i==1){$2L.style.backgroundColor=$5U;};if(i==2&&$5T.parentNode.nextSibling.nextSibling!==null){$2L.style.backgroundColor=$5U;};if(i==3&&$5T.parentNode.nextSibling.nextSibling.nextSibling!==null){$2L.style.backgroundColor=$5U;}}else{if(i===0){$5T.parentNode.style.backgroundColor=$5X;};if(i==1){$2L.style.backgroundColor=$5X;};if(i==2&&$5T.parentNode.nextSibling.nextSibling!==null){$2L.style.backgroundColor=$5X;};if(i==3&&$5T.parentNode.nextSibling.nextSibling.nextSibling!==null){$2L.style.backgroundColor=$5X;}}}}};function getNextTD($2L){var $63='';if($2L){$63=$2L;while($63.nodeType!==1){$63=$63.nextSibling;};return $63;}};function clickSplash($64){var $51;var $5g;var $65;var $66;var $67=false;$51=document.getElementById('cpnBtn_'+$64);$5g=document.getElementById('cpnDiv_'+$64);$65=document.getElementById('cpnSelectAll_'+$64);$66=document.getElementById('cpnCreate_'+$64);if($5g.style.display==='none'||$5g.style.visibility==='hidden'){intShowHide($5g,true);if($65!==null){intShowHide($65,true);};if($66!==null){$66.style.display="inline";$66.style.visibility="visible";};$67=true;}else{intShowHide($5g,false);if($65!==null){intShowHide($65,false);};if($66!==null){$66.style.display="none";$66.style.visibility="hidden";}};var $53=$51.src;if($52){$51.src=$53.replace(/iconClose.gif/g,'iconOpen.gif');}else{$51.src=$53.replace(/iconOpen.gif/g,'iconClose.gif');}};function gBOC($1w,TD){if(CheckState()!==true){return;};var $0M="gBOC";var $v=4999;var $68;var $69=true;var $6a;var $6b='';var $6c;var $6d;g_cpnSelected='';g_cpnSelectedCount=0;CookieTest();snp($v);document.frmMain.txtClassID.value=$1w;$68=document.getElementsByName('chkCouponSelected');for(i=0;i<$68.length;i++){$6d=$68.item(i);if($6d.checked){if(g_cpnSelectedCount===maxCoupons+1){break;}else{if(g_cpnSelected===''){g_cpnSelected=g_cpnSelected+$6d.getAttribute("value");}else{g_cpnSelected=g_cpnSelected+','+$6d.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 $6e=document.getElementById("oddsDropDownHolder");var $6f=document.getElementById("oddsdisplay");if($6e!==null&&$6f!==null&&$6e.innerHTML!==''){$6f.innerHTML=$6e.innerHTML;$6f.style.visibility="visible";$6f.style.display="block";}};function showPrintLink(){var $6g=document.getElementById("cTopNav");var $6h=document.getElementById("printlink");var $6i=document.getElementById("printImg");if($6g!==null&&$6h!==null&&$6i!==null){$6h.style.visibility="visible";$6i.style.visibility="visible";$6h.style.display="block";$6i.style.display="block";}};function printPage($6j){var $6k=document.getElementById("txtNavigationPB").value;var $6l=$6k.toString();var $6m=$6l.indexOf("languageid=")+11;var $6n=$6l.indexOf(";");var $6o=$6l.substring($6m,$6n);var $6p=window.open("print/print.htm","PrintCoupon_"+$6o,"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 $6q="";$6r=opener.document.getElementById("centerData");$6g=opener.document.getElementById("middleTitle");$6s=opener.document.getElementById("div_cbocontainer");$6t=opener.document.getElementById("div_blurb_top");$6u=opener.document.getElementById("cHdr");$6v=opener.document.getElementById("div-crpf");$6w=opener.document.getElementById("regexPrintFlag");var $6x="0";if($6w!==null){$6x="1";};if(typeof($6r)=="object"&&typeof($6g)=="object"){var $6y=opener.document.getElementsByTagName("input");for($6z=0;$6z<$6y.length;$6z++){if($6y[$6z].type=="checkbox"){if($6y[$6z].checked==1){$6y[$6z].setAttribute("checked","checked");}};if($6y[$6z].type=="text"){if($6y[$6z].value!==''){$6y[$6z].setAttribute("value",$6y[$6z].value);}}};var $6A='';var $6B='';var $6C='';var $6D='';var $6E='';if($6g!==null){$6A=$6g.innerHTML;};if($6s!==null){$6B=$6s.innerHTML;};if($6t!==null){$6C=$6t.innerHTML;};if($6u!==null){$6D='<b>'+$6u.innerHTML+'</b>';};if($6v!==null){$6E=$6v.innerHTML;};$6F=$6r.innerHTML;$6F=$6F.replace($6A,$6D);$6F=$6F.replace($6B,"");$6F=$6F.replace($6C,"");$6F=$6F.replace($6E,"");};var $6G=$6F;var $6H=$6F;if($6G!==""){$6G=$6G.replace(/(\r\n|\r|\n|\t)/g,'');document.getElementById("Textarea2").value=$6G;$6G=cleanUpHTML($6G,$6x);document.getElementById("printText").innerHTML="";document.getElementById("printText").innerHTML=$6G;document.getElementById("text2").value=$6H+" Bet365";document.close();GetPageLanguageID();}}};function navigation_display(){SetBPID('0');SwapBlurbLink();if(null===document.getElementById('div_cbocontainer')){return;};var $6I=document.getElementById('div_cbocontainer');var $6J=document.getElementById('spn_navdropstext');if(bShowNav()){display_object($6J,false);display_object($6I,true);};return;};function bShowBlurb(){var $6K=document.getElementById('navblurbOC');var $6L=($6K!==null)?$6K.value:0;if($6L.length===0){$6L=0;};return Boolean(parseInt($6L));};function bShowNav(){var $6M=document.getElementById('navmenuOC');var $6N=($6M!==null)?$6M.value:0;if($6N.length===0){$6N=0;};return Boolean(parseInt($6N));};function SwapBlurbLink(b){var $6O=document.getElementById('spn_navblurbtext');var $6P=document.getElementById('spn_navblurbtext_2');var SBL=document.getElementById('showblurblink');var $6Q=bShowNav();var $6R=bShowBlurb();if(SBL===null||SBL==undefined){SBL=0;}else{SBL=SBL.value;};if(SBL===0){display_object($6O,false);display_object($6P,false);};if($6R&&$6Q){display_object($6O,false);display_object($6P,false);};if($6R&&!$6Q){display_object($6O,false);display_object($6P,false);};if(!$6R&&!$6Q){if(SBL==1){display_object($6O,true)};display_object($6P,false);};if(!$6R&&$6Q){display_object($6O,false);if(SBL==1){display_object($6P,true)};}};function navigation_manager($6S,TD){var $6I=document.getElementById('div_cbocontainer');var $6J=document.getElementById('spn_navdropstext');SetMState($6S);SwapBlurbLink();if($6S===0){display_object($6I,false);display_object($6J,true);return;};if(isdataloaded(1)!==true){if($6S!==0){if(top.IsLoaded('dataframeX')){setTD(TD);getdivdata(2095);setTD('');}}}else{display_object($6J,false);display_object($6I,true);}};function navigation_blurbs($6S){var $6T=document.getElementById('spn_navblurbtext');var $6U=document.frmMain.txtCurrentPageID.value;SetBState($6S);SetBPID($6U);if($6S!==0&&isdataloaded(2)!==true){if(top.IsLoaded('dataframeX')){getdivdata(2096);navigation_blurbs_display(true);}}else{if($6S==1){navigation_blurbs_display(true);}else{navigation_blurbs_display(false);}}};function SetBState($6V){var $6K=document.getElementById('navblurbOC');if($6K!==null){$6K.value=$6V;}};function SetBPID($6W){var $6K=document.getElementById('navblurbPID');if($6K!==null){$6K.value=$6W;}};function SetMState($6V){var $6M=document.getElementById('navmenuOC');if($6M!==null){$6M.value=$6V;}};function navigation_blurbs_display($6X){var $6Y=document.getElementById('div_blurb_top');for(var ii=1;ii<5;ii++){$6Y=document.getElementById('div_blurb_bottom_'+ii);display_object($6Y,$6X);}};function getdivdata($6Z){var $70=top.getObjHandle('dataframeX');if($70!==null){var $71=document.frmMain.txtCPID.value;snp($6Z);var $00=document.getElementById('webSD');$00=$00.innerHTML;var $72=top.getObjDocHandle('dataframeX');$72.frmMainX.innerHTML=$00;$72.frmMainX.action='hdpage.asp?view=2&rn='+GetRndNum();var $73=$72.getElementById('tX');$73.value='1';$72.frmMainX.submit();CopyData($6Z);snp($71);}};var $1U=0;function CopyData($1j){if(!top.IsLoaded('dataframeX')){if(Number($1U)>0){clearTimeout($1U);};$1U=setTimeout('CopyData('+$1j+')',500);}else{var $70=top.frames['dataframeX'];var $72=$70.document;var $73=$72.getElementById('tX');if(($73===null)||(Number($73.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($74){var $5g;var $51;var $75;var $76;var $77;var $78;$75=top.getObjDocHandle('dataframeX');if(typeof($74)!="undefined"){$5g=$75.getElementById('cpnDiv_'+$74);$76=$75.getElementById('cpnHead_'+$74);$78=document.getElementById('cpnDiv_'+$74);$77=document.getElementById('cpnHead_'+$74);$51=document.getElementById('cpnBtn_'+$74);if($76!==null&&$77!==null){$77.innerHTML=$76.innerHTML;};if(!$78){$78=document.getElementById('cpnDiv');};if($5g!==null&&$78!==null){$78.innerHTML=$5g.innerHTML;intShowHide($78,true);var $53=$51.src;$51.src=$53.replace(/iconClose.gif/g,'iconOpen.gif');}}};function updatedivnavdata(){var $79=bShowNav();var $7a=top.getObjDocHandle('dataframeX');if($79===""){$79=false;};var $7b=$7a.getElementById('div_cbo_hidden');var $C=document.getElementById('div_cbocontainer');if($C!==null&&$7b!==null){$C.innerHTML=$7b.innerHTML;};if($79){var $7c=document.getElementById('div_cbocontainer');var $6J=document.getElementById('spn_navdropstext');display_object($6J,false);display_object($7c,true);};var $7d=document.getElementById('gotcombos');if($7d!==null){$7d.value="1";}};function updatedivnavblurb(){var $7a=top.getObjDocHandle('dataframeX');for(var ii=1;ii<5;ii++){var $7e=$7a.getElementById('div_blurb_top_hidden');var $7f=$7a.getElementById('div_blurb_bottom_hidden');var $7g=document.getElementById('div_blurb_top');var $7h=document.getElementById('div_blurb_bottom_'+ii);if($7g!==null&&$7e!==null){$7g.innerHTML=$7e.innerHTML;};if($7h!==null&&$7f!==null){$7h.innerHTML=$7f.innerHTML;}};var $7i=document.getElementById('gotblurbdata');if($7i!==null){$7i.value="1";}};function upsbr(){var $7j=top.getObjDocHandle('dataframeX');var hDiv=$7j.getElementById('datadiv_results');var $7k=document.getElementById('searchbets_results');if($7k!==null&&hDiv!==null){$7k.innerHTML=hDiv.innerHTML;}};function updateDivContent($74){var $5g;var $51;var $7l;var $75;var $C;var $12;var $76;var $7m;var $78;var $7n;var $7o;$7l=top.getObjHandle('dataframeX');$75=top.getObjDocHandle('dataframeX');if(typeof($74)!="undefined"){$7n=$75.getElementById('txtBetID');if($7n!==null){$74=$7n.value;};$51=document.getElementById('cpnBtn_'+$74);$5g=document.getElementById('cpnDiv_'+$74);$78=$75.getElementById('cpnDiv_'+$74);if(!$78){$78=$75.getElementById('cpnDiv');};if($5g!==null&&$78!==null){$5g.innerHTML=$78.innerHTML;$76=document.getElementById('divHeader_'+$74);$7m=$75.getElementById('divHeader_'+$74);if($76!==null&&$7m!==null){$76.innerHTML=$7m.innerHTML;};switch(GetBrowser()){case 'OPERA':$5g.style.display='inline-block';break;case 'SAFARI':case 'NETSCAPE':$5g.style.visibility='visible';$5g.style.display='block';break;case 'FIREFOX':$5g.style.display='inline';break;case 'IE':$5g.style.visibility='visible';$5g.style.display='inline';break;default:break;};var $53=$51.src;$51.src=$53.replace(/iconClose.gif/g,'iconOpen.gif');if($74.indexOf('44#')===0||$74==='80056'||$74==='1554'||$74==='190056'||$74==='360042'||$74==='750055'||$74==='870037'||$74==='120020'){for(i=0;i<aSCP.length;i++){if(aSCP[i][0]===$7l.aSCP[0][0]){aSCP[i]=$7l.aSCP[0];$7o=true;break;}};if(!$7o){aSCP.push($7l.aSCP[0]);};SCL($7l.aSCP[0][0]);}}}};function isdataloaded($7p){var $7a;var $7q=0;if($7p==1){if(document.getElementById('gotcombos').value=='1'){return true;}}else{if(document.getElementById('gotblurbdata').value=='1'){return true;}};return false;};function gPCCnav($C,$7r){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($7r==1){if(top.IsLoaded('dataframeX')){getdivdata(2095);}}else{snp($1j);SubmitForm();}};function display_object($2L,$7s){if($2L===null){return;};var $7t=GetBrowser();if($7s===false){switch($7t){case 'SAFARI':case 'NETSCAPE':$2L.style.visibility='hidden';$2L.style.display='none';break;case 'OPERA':case 'FIREFOX':$2L.style.display='none';break;case 'IE':$2L.style.visibility='hidden';$2L.style.display='none';break;default:break;}}else{if($7s===true||($2L.style.display==='none'||$2L.style.visibility==='hidden')){switch($7t){case 'SAFARI':case 'NETSCAPE':$2L.style.visibility='visible';$2L.style.display='block';break;case 'OPERA':case 'FIREFOX':$2L.style.display='block';break;case 'IE':$2L.style.visibility='visible';$2L.style.display='block';break;default:break;}}else{switch($7t){case 'SAFARI':case 'NETSCAPE':$2L.style.visibility='hidden';$2L.style.display='none';break;case 'OPERA':case 'FIREFOX':$2L.style.display='none';break;case 'IE':$2L.style.visibility='hidden';$2L.style.display='none';break;default:break;}}}};var $7u='';function couponSelectAll($4Z,$7v){var $7w=document.getElementById('chkSelectAll_'+$4Z);var $7x=document.getElementById('cpnDiv_'+$4Z);var $7y=0;var $7z;var $6d;var $7A;var $7B;var $7C='';var $7D=''
var eleParent=document.getElementById('splashData');var $6c=eleParent.getElementsByTagName('input');var $7E=false;var $7F=$4Z.split('#');if($7F[0]=='2'||$7F[0]=='4'||$7F[0]=='73'){$7E=true;};if($7E){for(i=0;i<$6c.length;i++){$6d=$6c.item(i);if($6d.checked){if($6d.getAttribute('checkcode')!==$4Z){mlAlert(188,maxCoupons);return false;}}}};if($7E&&$7u===''){$7u=$4Z;};if($7E){for(i=0;i<$6c.length;i++){$6d=$6c.item(i);if($6d.id!=='chkSelectAll_'+$4Z){if($6d.checked&&$6d.name!=="chkCouponSelected"){if($7E){$7u='';return false;}}else{$6d.checked=false;}}else{if(!$6d.checked){$7u='';}}}};if($7v==1){$7x=document.getElementById('cpnDiv_Challenge_'+$4Z);};if($7w===null||$7x===null){return false;};$7z=$7x.getElementsByTagName('input');for(j=0;j<$7z.length;j++){$6d=$7z.item(j);if($6d.name==="chkCouponSelected"){if($7w.checked){$6d.checked=true;if(checkNumberOfCheckedCoupons($6d)==false){return false};}else{$6d.checked=false;}}};return true;};function checkNumberOfCheckedCoupons($7G){var $6c;var $6d;var $7H=0;var $7I=false;var $7J=113;var $7K=122;var $7L=-1;var eleParent=document.getElementById('splashData');$6c=eleParent.getElementsByTagName('input');var $7M=true;var $7N=0;var $7O=new Array();var $7P=false;var $7Q=false;for(i=0;i<$6c.length;i++){$6d=$6c.item(i);if($6d.name==="chkCouponSelected"){if($6d.checked){var $7R=ReturnClassificationID($6d.value);if($7R==2||$7R==73||$7R==4){$7P=true}else{$7Q=true;}}}};if($7P&&!$7Q&&$7u!==''){maxCoupons=30;}else{maxCoupons=8;};for(i=0;i<$6c.length;i++){$6d=$6c.item(i);if($6d.name==="chkCouponSelected"){if($6d.checked){var $7S=isUSHorse($6d.value);if(($7I&&$7S)||(!$7M&&!$7I&&!$7S)){i=$6c.length+1;$7H=maxCoupons+1;$7L=$7K;}else if($7H===maxCoupons+1){i=$6c.length+1;$7L=$7J;}else{$7H++;if($7M){if(!$7S)$7I=true;$7M=false;}}}}};if($7u!==''){if($7G.getAttribute('checkcode')!==$7u){$7F=$7u.split('#');if($7F[0]=='2'||$7F[0]=='4'||$7F[0]=='73'){$7L=$7J;$7G.checked=false;mlAlert(188,maxCoupons);return false;}}};if(parseInt($7H)<=parseInt(maxCoupons)){return true;}else{if($7L==-1)$7L=$7J;$7G.checked=false;mlAlert($7L,maxCoupons);return false;}};function ReturnClassificationID($7T){var $7U=$7T.split('#');$7U=$7U.reverse();if($7U.length==7){return parseInt($7U[0]);}else{return parseInt($7U[1]);}};function isUSHorse($7T){var $7U=$7T.split('#');$7U=$7U.reverse();if($7U[0]==2||$7U[1]==73)return true;else return false;};function changeSectionID($7V,$7W,$7X,TD){if($7X===null||$7X==undefined){$7X=1;};var $0M="changeSectionID";CookieTest();snp($7V);if($7X!=1&&$7W===4){$7W=85;}else if($7X!=2&&$7W===85){$7W=4;}else if($7X===2&&$7W!==73){$7W=73;}else if($7W===73&&$7X!==2){$7W=2;};document.frmMain.txtClassID.value=$7W;updateSiteNavigationPB('sectionid',$7X);SetFormPost($7V);setTD(TD);SubmitForm();};function coverDataTable($7Y,$7Z){if($7Z===null)$7Z=12;if(GetBrowser()==="IE")showRaceOff($7Y,$7Z);else var $1U=window.setTimeout('showRaceOff('+$7Y+','+$7Z+')',1200);};function showRaceOff($7Y,$7Z){var $80;var $81='tableData_'+$7Y;var $82='text_'+$7Y;var $83=document.getElementById($81);var $84=document.getElementById($82);var $85="1";$80=$83.rows.length;$84.setAttribute('class','frov');if(GetBrowser()==="IE")$84.className='frov';$84.style.top=-($80+1)*$7Z*1.1;if(document.getElementById('tPLang').value!==null&&document.getElementById('tPLang').value!=='undefined'){$85=document.getElementById('tPLang').value;};if(document.getElementById('txtClassID').value!==null){if($85!=="1"&&document.getElementById('txtClassID').value==2){$84.style.width='150px';$84.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,$86,$87,$88,$89,$8a,$8b,$8c,$10){if(CheckState()!==true){return;};if($10===null)$10=1;var $0M="gSFX";CookieTest();snp($v);document.frmMain.txtClassID.value=$86;updateSiteNavigationPB("sectionid",$10);updateSiteNavigationPB("c1id",$87);updateSiteNavigationPB("c1idtable",$88);updateSiteNavigationPB("challengeid",$89);updateSiteNavigationPB("plbtid",$8a);updateSiteNavigationPB("splashoption",''+$8b+':'+$8c);getdivdata($v);};function cSPH($64,$86,$87,$88,$89,$8a,$8b,$8c,$10){var $51;var $5g;var $65;var $66;var $8d;$51=document.getElementById('cpnBtn_'+$64);$5g=document.getElementById('cpnDiv_'+$64);$65=document.getElementById('cpnSelectAll_'+$64);$66=document.getElementById('cpnCreate_'+$64);$8d=document.getElementById('cpnTitle_'+$64);WhichDiv=$64;var $2d=top.frames['dataframeX'];var $2e=$2d.document;var $73=$2e.getElementById('tX');if($5g.style.display==='none'||$5g.style.visibility==='hidden'){if(top.IsLoaded('dataframeX')){document.frmMain.tcocsel.value=WhichDiv;$5g.innerHTML='';gSFX(1034,$86,$87,$88,$89,$8a,$8b,$8c,$10);}}else{intShowHide($5g,false);if($65!==null){intShowHide($65,false);};if($66!==null){$66.style.display="none";$66.style.visibility="hidden";};if($8d!==null){$8d.style.position='';};var $53=$51.src;$51.src=$53.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 $8e=document.getElementById('txtSearchText');var $8f=document.getElementById('txtHDSearchText');if($8e.value.length<3){mlAlert(50,3);return false;};$8f.value=$8e.value;snp('1092');SubmitForm();};function SearchTodays($8g){if($8g===null||$8g==undefined){$8g=1;};var $8f=document.getElementById('txtHDSearchText');$8f.value='SearchTodays'+$8g;snp('1092');SubmitForm();};function getResults($7W,$7Y,$8h,TD){CookieTest();document.frmMain.txtClassID.value=$7W;updateSiteNavigationPB("classificationid",$7W);snp(resultsPageId);updateSiteNavigationPB("fixtureid",$7Y);updateSiteNavigationPB("competitionid",$8h);setTD(TD);SubmitForm();};var $8i=null;function RefreshBS(){if(!top.IsLoaded('bslip')){var $1U=setTimeout('RefreshBS()',100);}else{var $2c=top.getObjHandle('bslip');$2c.style.display='block';LoadBS();}};function ShowBS(){var $u=top.frames['bslip'];var $K=$u.document;if(typeof $K.frmMain.txtCPID!=='undefined'){$2u=$K.frmMain.txtCPID.value;}else{$2u=9510;}};function SetAction(){var $8j=document.frmMain.action;if($8j.indexOf('bettingslip_v2.asp')>=0){document.frmMain.action='./bettingslip_v2.asp?betslip=1&rn='+GetRndNum();}};function MultiOption_OpenClose($8k){var $8l=document.getElementById('lnkAB');if(($8l!==null)&&($8l.style.display!=='none')&&($8l.style.visibility!=='hidden')){return false;};var $8m;var $53;var $8n=document.getElementById('txtBSMS');if((typeof $8n!=='undefined')&&(null !==$8n)){$8m=$8n.value;}else{$8m='0';};if(typeof $8k!=='undefined'){$53=$8k.src;}else{$8k=document.getElementById('imgMop');$53=$8k.src;};if(Number($8m)===0){if((typeof $8n!=='undefined')&&(null !==$8n)){$8n.value='1';};$53=$53.replace(/bsmb2.gif/g,'bsmb.gif');$8k.src=$53;}else{if((typeof $8n!=='undefined')&&(null !==$8n)){$8n.value='0';};$53=$53.replace(/bsmb.gif/g,'bsmb2.gif');$8k.src=$53;};SORefresh(true);};function GetMembersLogInfo(){var $8o=document.getElementById("txtScreenSize");if($8o!==null){if(GetBrowser()!='FIREFOX'){$8o.value=screen.width+" x "+screen.height;}else{$8o.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 $2a=top.sFCU;if($1X!==null&&typeof $1X!=='undefined'){if((String($2a)!==String($1X.src))&&($2a.length>0)){$1X.src=$2a;}}}};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 $2j=$8p.elements['txtAS'];if(typeof $2j!=='undefined'){if($2j!==null){if($2j.value==='1'){$y=true;}}};if($y){$8p.action=makeURLSSL($8p.action);};if(typeof top.ResetObjs!=='undefined'){top.ResetObjs();};$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 $46;if(!(typeof $8P==='undefined')){$46=document.getElementById("hidParam");$46.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(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();}}};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;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,$2y,$2z,$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="'+$2y+'" height="'+$2z+'" > '+'<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="'+$2y+'" height="'+$2z+'" 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($2u,TD){if(!ChckUserLoged()){gP(-1);return false;};var $1W="./defaulthmr.asp"
$0q=$1W+"?popup=true&rn="+GetRndNum()+"&ibpid="+$2u;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($2u,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($5N){var $5O=document.all?event.keyCode:$5N.which?$5N.which:$5N.keyCode;if($5O=='e'.charCodeAt()||$5O=='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;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 $6m=$9V.toUpperCase().indexOf("<SELECT");var $6n=($9V.toUpperCase().indexOf("</SELECT>")+9);for($6z=0;($6z<$6m);$6z++){var $9W=$9V.substring($6m,$6n);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);};$6m=$9V.indexOf("<SELECT");$6n=($9V.indexOf("</SELECT>")+9);}}else{var $6m=$9V.toUpperCase().indexOf("<SELECT");var $6n=($9V.toUpperCase().indexOf("</SELECT>")+9);for($6z=0;$6m!=-1;$6z++){var $9W=$9V.substring($6m,$6n);$9V=$9V.replace($9W,"");$6m=$9V.toUpperCase().indexOf("<SELECT");$6n=($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 $2c=top.document.getElementById('bslip');if((typeof $2c!=='undefined')&&($2c!==null)){$2c.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 $4c=$E.value;reloadBSF($4c);};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($5N){var $a6=top.frames['SlipObj'];if((typeof $a6!=='undefined')&&($a6!==null)){var $a7=$a6.document;if((typeof $a7!=='undefined')&&($a7!==null)){var $2f=$a7.getElementById('txtSeqID');if((typeof $2f!=='undefined')&&($2f!==null)){var $a8=$2f.value;var $2g=GetCookie('seq','slip');if($2g!=$a8){SOProcessBrowserRefresh($a7);}}}}};function LaunchFlashTest($a9,$aa,$ab){var $2y=screen.width;var $2z=screen.height;var $2A,$2B,$2C;$2B=250;$2A=191;$2C=1;var $2E=Number(($2y-$2B)/2);var $2F=Number(($2z-$2A)/2);var $2G='./../home/Flash_InPlay/Flash_Tester.asp?size='+$2C+'&detectflash=false'+'&Mode='+$a9;if((typeof $a9=='undefined')||($a9==null)||(Number($aa)==1)||(Number($a9)==0)){window.open($2G,'ainp',$2H='toolbar=0,scrollbars=0,location=0,status=0,menubar=0,resizable=0,left='+$2F+',top='+$2E+',width='+$2B+', height='+$2A);}else{if(Number($ab)==3){$2G='http://get.adobe.com/es/flashplayer/';}else if(Number($ab)==4){$2G='http://get.adobe.com/fr/flashplayer/';}else if(Number($ab)==5){$2G='http://get.adobe.com/de/flashplayer/';}else if(Number($ab)==6){$2G='http://get.adobe.com/it/flashplayer/';}else{$2G='http://get.adobe.com/flashplayer/';};inPlayPopUp=window.open($2G,'ainplay',$2H='left='+$2F+',top='+$2E+',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 $5O=document.all?event.keyCode:e.which?e.which:e.keyCode;if($5O!==null&&typeof($5O)!="undefined"){if($5O==13){var $2w=document.getElementById("txtCPID");if($2w!==null&&typeof($2w)!="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;var $ah=document.getElementById("txtFlashVersion2");if($ah.value===""){var $ai="0";try{$ai="2";var $aj=swfVersion.ua2.pv;$ai="3";if($aj[0]>0){$ai="4";$ae=$aj[0]+"."+$aj[1]+"."+$aj[2];}else{$ae="U";}}catch(e){$ae="E"+$ai;}}else{$ae=$ah.value;};$ah.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($ak){var $al=document.getElementById("waitTextDiv");if($al!==null&&typeof($al)!="undefined"){$al.style.display="none";$al.style.visibility="hidden";};var $9E=mlMsg($ak)+"\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 $al=document.getElementById("waitTextDiv");if($al!==null&&typeof($al)!="undefined"){$al.style.display="none";$al.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,$am,$an){title="bet365 ";$2v="http://"+$1W;title=($am);if(window.sidebar){window.sidebar.addPanel(title,$2v,"");}else if(window.external){window.external.AddFavorite($2v,title);}};function cpnBK(TD){var $ao=document.getElementById('txtSiteNavigationPB');var $ap=document.getElementById('txtSNPPB');if($ao!==null&&$ap!==null){var $2u=GetNavigationPB('pagetemplateid',0,$ap);var $aq=GetNavigationPB('classificationid',0,$ap);if(Number($aq)>0){document.frmMain.txtClassID.value=$aq;snp($2u);}else{snp(1010);};$ao.value=$ap.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;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($2L){var oN=$2L.name;var sN=oN.substring(oN.length-1,oN.length);var $ar,$as;if(Number(sN)==1){$ar=document.getElementById(oN);sN=oN.substring(0,oN.length-1);$as=document.getElementById(sN);if($ar!==null&&$as!==null){switch(GetBrowser()){case 'SAFARI':case 'NETSCAPE':$ar.style.visibility='hidden';$as.style.display='block';$as.style.visibility='visible';break;case 'OPERA':case 'FIREFOX':$as.style.display='block';$as.style.visibility='visible';$ar.style.display='none';break;default:$as.style.visibility='visible';$as.style.display='block';$ar.style.display='none';break;};$as.focus();}}else{$ar=document.getElementById(oN+'1');$as=document.getElementById(oN);if($ar!==null&&$as!==null&&$2L.value.length===0){switch(GetBrowser()){case 'SAFARI':case 'NETSCAPE':$as.style.visibility='hidden';$ar.style.display='block';$ar.style.visibility='visible';break;case 'OPERA':case 'FIREFOX':$ar.style.display='block';$as.style.display='none';break;default:$ar.style.visibility='visible';$ar.style.display='block';$as.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($2L,$at){var $au=$2L.getAttribute('bd');var $av=$2L.getAttribute('col');var $aw=$2L.className;if($aw.indexOf(' z')>0){$aw=$aw.replace(' z',' w');}else{if($aw.indexOf(' w')>0){$aw=$aw.replace(' w',' z');}};if($aw.indexOf(' it2')==-1){$aw=$aw+' it2';$2L.className=$aw;}else{$2L.className=$aw;};if($2L.style.backgroundColor.length){$2L.style.backgroundColor='';}else{$2L.style.backgroundColor='#FEF5BA';aBet($au);};if(($av!==null)&&(Number($av)>0)&&(typeof $at=='undefined')){var $4a;if(Number($av)==1){$4a=$2L.nextSibling;ShB($4a,1);};if(Number($av)==2){$4a=$2L.previousSibling;ShB($4a,1);}}};function hTM($2L,e){if(Number(e)==1){$2L.src=$2L.src.replace(/1.png/g,'2.png');};if(Number(e)==2){$2L.src=$2L.src.replace(/2.png/g,'1.png');}};function LoadMIP($ax){if(!top.IsLoaded('inplay')){var $1U=setTimeout('LoadMIP()',500);}else{var $ay=top.getObjDocHandle('inplay');if($ay!==null){var $az=$ay.getElementById('tSBPID');var $aA=$ay.getElementById('txtClassID');var $aB=$ay.getElementById('txtDOT');var $aC=$ay.getElementById('PageType');var $aD=$ay.getElementById('imgDiv');var $aE=$ay.getElementById('txtNPID');var $aF=$ay.getElementById('txtsd');var $aG=$ay.getElementById('txtTKN');var $aH=document.getElementById('txtCPID');var $aI=document.getElementById('txtClassID');var $aJ=document.getElementById('txtDOT');var $aK=document.getElementById('imgDiv');var $aL=document.getElementById('txtsd');var $aM=document.getElementById('txtTKN');var $aN=0;var $aO=0;var $aP=0;var $aQ=0;var $aR=0;var $aS=0;var $aT=0;var $aU=0;var $aV=$ax;if(($aM!==null)&&($aG!==null)){$aG.value=$aM.value;};if($aH!==null){$aN=$aH.value;};if(Number($aN)==1022){return false;};if($az!==null){$aO=$az.value;};if($aI!==null){$aP=$aI.value;};if($aA!==null){$aQ=$aA.value;};if($aJ!==null){$aR=$aJ.value;};if($aB!==null){$aS=$aB.value;};if($aC!==null){$aT=$aC.value;};if($aL!==null){$aU=$aL.value;};if(Number($aN)==1010&&$aT!=='H'&&(!$aV)){$aP=0;$aV=true;};if(Number($aN)==9610&&$aT!=='F'&&(!$aV)){$aV=true;};if(Number($aN)==9611&&$aT!=='F'&&(!$aV)){$aV=true;};if((Number($aR)!==Number($aS))&&(!$aV)){$aV=true;};if($aT!=='S'&&(!$aV)){$aV=true;};if((Number($aP)!==Number($aQ))&&($aT=='S')&&(!$aV)){var $aW='';if($aK!==null){$aW=$aK.innerHTML;};if(($aD!==null)&&($aW.length!==0)){$aD.innerHTML=$aW;var $aX=top.getObjHandle('inplay');if($aX!==null){$aX.ResizeIP();}};if(($aH!==null)&&($az!==null)){$az.value=$aN;};if(($aI!==null)&&($aA!==null)){$aA.value=$aP;};if(($aJ!==null)&&($aB!==null)){$aB.value=$aR;};if($aF!==null){$aF.value=$aU;}};if($aV){if(($aH!==null)&&($az!==null)){$az.value=$aN;};if(($aI!==null)&&($aA!==null)){$aA.value=$aP;};if(($aJ!==null)&&($aB!==null)){$aB.value=$aR;};if($aE!==null){$aE.value=1022;};if($aF!==null){$aF.value=$aU;};$ay.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($2u,$aY,TD){var $aZ=document.getElementById("sitegroupid");if(($aZ!==null)&&(Number($aY)>=0)){$aZ.value=$aY;};gP($2u,TD);};function launchPromo($b0){if(typeof $b0=="undefined"){$b0="";};window.open('Promotions/bet365promo.asp?'+$b0,"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($b1){var $b2=document.getElementById("sitegroupid");$b2.value=$b1;};function setTD($z){if((typeof $z!=='undefined')&&($z!==null)){var $b3=document.getElementById("tTD");if($b3!==null){$b3.value=unescape($z);}}};function LdStrmETote($b4,$b5,$b6){var $r=GetScrennWidth();var $s=GetScrennTop();var $1W='./EtoteStream.asp?sid='+$b4+'&stm='+$b5+'&fxid='+$b6;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($b7){if(CheckState()!==true){return;};var $ac=GetNavigationPB("languageid",1);var $0q="prevform.asp?greyform=1&fxid="+$b7+"&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($b8){var $b9=false;if(typeof top.getIFObj!=='undefined'&&typeof top.getIFObj=='function'){var $1X=top.getIFObj('flshCK');if($1X!==null&&typeof $1X!=='undefined'){$1X.state=0;$b9=true;}};var $2b=document.getElementById('txtTKN');if(typeof($2b)!=='undefined'||$2b!==null){$2b.value=$b8;UpdateUQID();gP(-1);if($b9){$1X.state=1;}}};function LBS(sD,$ba){if(CheckState()!==true){setTimeout('LBS("'+sD+'","'+$ba+'")',1000);};if(!top.IsLoaded('bslip')){setTimeout('LBS("'+sD+'","'+$ba+'")',1000);};if((CheckState()==true)&&top.IsLoaded('bslip')){var $K=top.getObjDocHandle('bslip');if($K!==null){aBet(sD,'undefined',"1",$ba);}}};function launchRules($v,$bb,$2u,$bc){var qs="?ibpid="+$v+"&sg="+$bb+"&sctid=1&prd="+$2u+"&lng="+$bc+'&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($bd){var $w=null;if(Number($bd)===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($bd)===Number(g_cintFinSlip)){var $be=SOSelectionCount();$w=SOIsFinancials();if($w!==null){if((Number($w)===-1)&&(Number($be)>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 $bf=document.getElementById('tFLS');if($bf!==null){$bf.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($4c){var $u=top.getObjHandle('bslip');if($u!==null){$u.ReloadBSFlsh($4c);}else{var $1U=setTimeout('reloadBSF('+$4c+')',1000);}};function FL_UBS($bg,$3y){var $bh='';var $bi='';var $bj='';var $bk='';var $bl='';var $0c='';var $bm='';var $bn=-1;var $bo='';var $bp='';var $u=top.getObjHandle('bslip');var $bq=false;var $br=top.getObjDocHandle('bslip');if($br!==null){var $4F=$br.getElementById('pbTxt');if($4F!==null){if($4F.style.display==''){return false;}}};for(var i in $bg.data){switch(i){case 'HA':$bh=$bg.data[i];break;case 'HD':$bi=$bg.data[i];break;case 'HS':$bl=$bg.data[i];break;case 'ID':$0c=$bg.data[i];break;case 'OD':$bj=$bg.data[i];break;case 'convertedOdds':$bk=$bg.data[i];break;case 'SU':$bn=$bg.data[i];break;case 'SA':$bo=$bg.data[i];break;case 'IT':$bp=$bg.data[i];break;case 'FI':$bm=$bg.data[i];break;default:break;}};$bp=$bp.length==0?$3y:$bp;$bn=$bg.type=='D'?1:$bn;var $bs=false;if($br!==null){$bt=$br.getElementById('SelCount');if($bt!==null){$bt=lrtrim($bt.innerHTML);if(($bt.length>0)&&(!isNaN(Number($bt)))){$be=Number($bt);}else{$be=0;}};if($be===0){$be=14;};for($bu=1;$bu<=$be;$bu++){$bv=$bu+1000;$bt=$br.getElementById('pbn'+$bv);$bq=false;if($u!==null){$bq=$u.isBSS($bv);};if($bt!==null){$bw=lrtrim($bt.innerHTML);var $bx=$bw.split('#');var $by='';var $bz='0';var $bA='';var $bB='';var $bC='';var $bD='';var $bE='';var $bF='';var $bG='';var $bH=$bt.getAttribute('tp')!==null?$bt.getAttribute('tp'):'';for(var j=0;j<$bx.length;j++){var $bI=$bx[j].split('=');if($bI[0]){switch($bI[0]){case 'pt':$by=$bI[1];break;case 'so':$bz=$bI[1];break;case 'o':$bA=$bI[1];break;case 'f':$bB=$bI[1];break;case 'fp':$bC=$bI[1];break;case 'c':$bD=$bI[1];break;case 'ln':$bE=$bI[1];break;case 'sa':$bF=$bI[1];break;case 'mt':$bG=$bI[1];break;default:break;}}};if($bp==$bH){var $bJ='pt=N#so=0#o=OD#fp=FP#c=CL#ln=HA#sa=SA#';$bJ=$bJ.replace('OD',($bj.length>0?$bj:$bA));$bJ=$bJ.replace('FI',$bB);$bJ=$bJ.replace('FP',$bC);$bJ=$bJ.replace('CL',$bD);$bJ=$bJ.replace('HA',($bh.length>0?$bh:$bE));$bJ=$bJ.replace('SA',($bo.length>0?$bo:$bF));if(($bj!==$bA)&&($bk!==null)){var oO=$br.getElementById('do'+$bv);var $bK=true;if(oO!==null){var $bL=$br.getElementById('optOdds'+$bv);if($bL!==null){$bL[1].text=$bk;$bL[1].value='1#'+$bj;$bK=false;if($bL.selectedIndex==1){$bK=true;oO.style.width="20px";oO.style.display="block";oO.className='scn';}}else{oO.innerHTML=$bk;oO.className='scn';}};oO=$br.getElementById('Odds'+$bv);if(oO!==null){oO.value=$bj;};oO=$br.getElementById('Risk'+$bv);if(oO!==null){oO.onkeyup();};$bt.innerHTML=$bJ;$bt.setAttribute('ix',$bl);$bs=$bK;};if(($bh!==$bE)&&($bh.length>0)&&($bi.length>0)){var oL=$br.getElementById('dl'+$bv);if(oL!==null){oL.innerHTML=$bi;oL.className='scn';};$bt.innerHTML=$bJ;$bt.setAttribute('ix',$bl);$bs=true;};if(Number($bn)>0){$u=top.getObjHandle('bslip');$u.bsSS($bv,true);var $bM=$br.getElementById('multiHeader');var $bN=$br.getElementById('multiples');var $bO=$br.getElementById('imgMop');var $bP=$br.getElementById('txtBSMS');if(($bP!==null)&&($bP.value>0)){if($bM!==null){$bM.style.display='none';};if($bN!==null){$bN.style.display='none';};if($bO!==null){var $53=$bO.replace(/bsmb.gif/g,'bsmb2.gif');$bO.src=$53}};$bs=true;}else if(Number($bn)==0){var $u=top.frames['bslip'];$u.bsSS($bv,false);}}}};if($bs){var $bQ=$br.getElementById('lnkPB');var $bR=$br.getElementById('lnkIPB');var $bS=$br.getElementById('lnkAB');var $bT=$br.getElementById('tntc');if($bQ!==null){$bQ.style.display='none';$bQ.style.visibility='hidden';};if($bR!==null){$bR.style.display='';$bR.style.visibility='visible';};if($bS!==null){$bS.style.display='';$bS.style.visibility='visible';};if($bT!==null){$bT.style.display='';$bT.style.visibility='visible';};if(top.resizeBslipWin()){top.resizeBslipWin();}}}};var flclients=[];function registerFlashClient(id){flclients.push(id);};function getIFrame($bU){var $bV;for(var i=0;i<window.frames.length;i++){if(window.frames[i].name==$bU||window.frames[i].id==$bU){$bV=window.frames[i];break;}};return $bV;};function RemoveFlashObject(bK){try{var el=document.getElementById(bK);if(el!=null){el.pageUnloading();};swfobject.removeSWF(bK);}catch(bL){}};function CheckFlashConnections(){try{var $bW=getIFrame("dataFrame");}catch($bX){}};function RemoveClients(){try{var el=top.document.getElementById('WC');el.removeClients(flclients);}catch($bX){}};function RemoveFlashObjects(){RemoveFlashObject('flashtl');RemoveFlashObject('flash');RemoveFlashObject('flashraces');RemoveFlashObject('flashhigh');RemoveClients();};function GetNAVVer(){return 'Navigation_vA0031cr';};


