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