function FL_resizeFlashDiv(height,$a,$b){var $c='';if((typeof $b!=='undefined')&&($b!==null)){$c=(Number($b)==1)?'Highlights':(Number($b)==2)?'Next3RacesApp':(Number($b)==3)?'Financials':$a;};if(height){if((typeof $a!=='undefined')&&(($a.indexOf('MiniDiary')>=0)||($c.indexOf('Next3RacesApp')>=0)||($c.indexOf('Highlights')>=0)||($c.indexOf('Financials')>=0))){if($a.indexOf('MiniDiary')>=0){FL_resizeDiaryDiv(height,$a);}else{FL_resizeDiaryDiv(height,$c);};setTimeout('top.SetDiemens()',500);}else{var $d=document.getElementById("flash");var $e=document.getElementById("flash_embed");if($d&&$d.style){$d.setAttribute('height',height);$d.style.height=height;};if($e!=null){$e.height=height;if($e.style){$e.style.height=height;}};if((typeof $b=='undefined')||(Number($b)==4)||(Number($b)==0&&(!IsMiniInplay(false,$a)))){if((top!==null)&&(typeof top!=='undefined')){if(typeof top.SetDiemens=='function'){var $f=document.getElementById("tFHeight");if($f!==null){$f.value=height;};setTimeout('top.SetDiemens()',500);}}}else{if(IsMiniInplay(false,$a)){if('function'==typeof(ResizeIP)){ResizeIP();}}}}}};function FL_resizeDiaryDiv(height,$a){var $g=document.getElementById("flash");var $h=document.getElementById("flash_embed");if($a.indexOf('Next3RacesApp')>=0){$g=document.getElementById("flashraces");$h=document.getElementById("flashraces_embed");};if($a.indexOf('Highlights')>=0){$g=document.getElementById("flashhigh");$h=document.getElementById("flashhigh_embed");};if($a.indexOf('Financials')>=0){$g=document.getElementById("flashfin");$h=document.getElementById("flashfin_embed");};if($g&&$g.style){$g.setAttribute('height',height);$g.style.height=height;};if($h!=null){$h.height=height;if($h.style){$h.style.height=height;}};if(IsMiniInplay(true,$a)){if('function'==typeof(ResizeIP)){ResizeIP();}}};function IsMiniInplay($i,$a){var $d,$e;if($a.indexOf('MiniDiary')>=0){$d=document.getElementById("flsh");$e=document.getElementById("flsh_embed");};if($a.indexOf('Next3RacesApp')>=0){$d=document.getElementById("flashraces");$e=document.getElementById("flashraces_embed");};if($a.indexOf('Highlights')>=0){$d=document.getElementById("flashhigh");$e=document.getElementById("flashhigh_embed");};if($a.indexOf('Financials')>=0){$d=document.getElementById("flashfin");$e=document.getElementById("flashfin_embed");};if(($d==null&&$e==null)&&(!$d&&!$e)){$d=document.getElementById("flash");$e=document.getElementById("flash_embed");};var sW='0';if($d&&$d.style){sW=$d.offsetWidth;}else{if($e!=null){sW=$e.offsetWidth}};if(Number(sW)==246){return true;}else{return false;}};function flashOnLoad(){window.flash=document.forms[0].flash;window.flshdiary=document.forms[0].flshdiary;window.flashraces=document.forms[0].flashraces;window.flashhigh=document.forms[0].flashhigh;window.flashtl=document.forms[0].flashtl;};function writeDoFS(name){var $j="\n"+"<script language=\"javascript\" > \n";if(navigator.appName&&navigator.appName.indexOf("Microsoft")!=-1&&navigator.userAgent.indexOf("Windows")!=-1&&navigator.userAgent.indexOf("Windows 3.1")==-1){document.write('<script language=\"VBScript\"\>\n');document.write('On Error Resume Next\n');document.write('Sub '+name+'_FSCommand(ByVal command, ByVal args)\n');document.write('	Call '+name+'_DoFSCommand(command, args)\n');document.write('End Sub\n');document.write('</script\>\n');};$j+="    function "+name+"_DoFSCommand(command, args) \n";$j+="    {\n"+"        eval(command + \"(\" + args.split(\"|\").join(\",\") + \");\");\n"+"    };\n"+"</script>\n";document.write($j);};function goToTop(){window.location="#pagetop";};function LaunchInPlayDiary($a){var TD;top.frames["main"].document.getElementById("FlashEvent").value="";top.frames["main"].document.getElementById("FlashDiary").value="1";if(typeof $a!=='undefined'){var $k=top.getObjDocHandle('inplay');var lC=0;var $l='E';var $m='H';var $n=0;if($k!==null){var $o=$k.getElementById('PageType');var oC=$k.getElementById('txtClassID');if($o!==null){$m=$o.value;$l=$o.getAttribute?$o.getAttribute('CF'):'E';$n=$o.getAttribute?$o.getAttribute('ZN'):'1';};if(oC!==null){lC=oC.value;}};if($a.appName.indexOf('MiniDiary')>=0){TD='UPIN~56~'+$m+'~1~'+$n+'~'+$l+'~'+lC+'~'+$a.langID;}else{TD='IPLC~56~'+$m+'~1~'+$n+'~'+$l+'~'+lC+'~'+$a.langID;}};if(!top.IsLoaded('main')){setTimeout('top.frames["main"].LaunchInPlay2("'+TD+'")',500);}else{top.frames["main"].LaunchInPlay2(TD);}};function GoToEvent($p){top.frames["main"].document.getElementById("FlashEvent").value=$p;top.frames["main"].document.getElementById("FlashDiary").value="";if(!top.IsLoaded('main')){setTimeout('GoToEvent('+'"'+$p+'"'+')',500);}else{top.frames["main"].LaunchInPlay2();}};function showIBOX($q,$r){dIB2('5240',$r,$q);};function updateEventID($p){document.forms[0].FlashEvent.value=$p;document.forms[0].FlashDiary.value="";};function keepAliveLogin(){var $s=Number(GetCookie("session","uli"));};function findAndAppend($t){$u="";var $v=GetCookie("flash",$t);if(typeof($v)!="undefined"&&$v!=null&&$v!=""){$u=$u+"&"+$t+"="+$v;};return $u;};function flashParameters($w){$u="";try{var $x=document.forms[0].FlashEvent.value;var $y=document.forms[0].FlashDiary.value;var $z=document.forms[0].tBSFS.value;var $A=document.forms[0].tFLS.value;if(typeof($x)!="undefined"&&$x!=null&&$x!=""){if((typeof $w!=='undefined')&&($w!==null)){$w.EVENT_ID=$x;}else{$u=$u+"&EVENT_ID="+$x;}};if(typeof($y)!="undefined"&&$y!=null&&$y!=""){if((typeof $w!=='undefined')&&($w!==null)){$w.IS_DIARY=$y}else{$u=$u+"&IS_DIARY="+$y;}};if(typeof($z)!="undefined"&&$z!=null&&$z!=""&&$z.length>0){$u=$u+"&"+$z;};if(typeof($A)!="undefined"&&$A!=null&&$A!=""&&$A.length>0){if((typeof $w!=='undefined')&&($w!==null)){$w.STATE=$A;}else{$u="&STATE="+$A;}}}catch($B){$u="";};return $u;};var $C=1;function KillMe($a){var $d=null;var $D=null;if($a.indexOf('MiniDiary')>=0){showIP();}else{showD();};if('function'==typeof(ResizeIP)){ResizeIP();}};function launchAV($E){window.open($E,'','location=no,menubar=no,status=no,toolbar=no,width=400,height=275');};function FL_OthersAvailable($F,$G,$H){if(ChckUserLoged()){var $I=$F.split("-");var $J="Others On Request";var $K="";switch($H){case 1:$K="support@customerservices365.com";break;case 2:$K="support-tch@customerservices365.com";break;case 3:$K="support-spa@customerservices365.com";break;case 4:$K="support@customerservices365.com";break;case 5:$K="support-ger@customerservices365.com";break;case 6:$K="support-ita@customerservices365.com";break;case 7:$K="support-dan@customerservices365.com";break;case 8:$K="support-swe@customerservices365.com";break;case 9:$K="support-nor@customerservices365.com";break;case 10:$K="support-sch@customerservices365.com";break;case 14:$K="support@customerservices365.com";break;};window.location="mailto:"+$K+"?subject="+$J+"&body=Username: "+$G+"; www.bet365.com/home/default.asp?deeplink=oor%26cid="+$I[4]+"%26c1i="+$I[0]+"%26c1t="+$I[1]+"%26c2i="+$I[2]+"%26c2t="+$I[3];}};function FL_linkToPreMatch($L,$M,$N,$O,$P,$Q,$R,$a){var TD;$S=top.getObjHandle('main');if(typeof $a!=='undefined'){var $k=top.getObjDocHandle('inplay');var lC=0;var $l='E';var $m='H';var $n='0';if($k!==null){var $o=$k.getElementById('PageType');var oC=$k.getElementById('txtClassID');if($o!==null){$m=$o.value;$l=$o.getAttribute?$o.getAttribute('CF'):'E';$n=$o.getAttribute?$o.getAttribute('ZN'):'1';};if(oC!==null){lC=oC.value;}};if($a.appName.indexOf('MiniDiary')>=0){TD='UPIN~54~'+$m+'~1~'+$n+'~'+$l+'~'+lC+'~'+$a.langID;}else if($a.appName.indexOf('TopLauncher')>=0){TD='IPTL~55~'+$m+'~1~'+$n+'~'+$l+'~'+lC+'~'+$a.langID;}else{TD='IPHI~55~'+$m+'~1~'+$n+'~'+$l+'~'+lC+'~'+$a.langID;}};if($S!==null){$S.gSL($L,'100000','',$M,$N,'',$O,$P,'','0','0',TD);}};function FL_jumpToInPlay(){LoadAddLink(3,'txtNPID=9610');};function emptyDiv($T){var i;while(i=$T.childNodes[0]){if(i.nodeType==1||i.nodeType==3){$T.removeChild(i);}}};function FL_setImage($U){var $S=top.getObjDocHandle('main');if($S!==null){var $V=$S.getElementById('icp4');if($V!==null){var $W=$V.src;if($W.indexOf($U)==-1){$V.src='./images/home/imgs/'+$U;}}}};function FL_MM(TD){var $d=document.getElementById("flashtl");$d=$d==null?document.getElementById("flashtl_embed"):$d;if($d!==null){var oL=$d.getLink();if(oL!==null){var $X,$Y,$Z,$00,$01;$X=oL.classid;$Y=oL.c1id;$Z=oL.c1idtable;$00=oL.c2id;$01=oL.c2idtable;gSL($X,'100000','',$Y,$Z,'',$00,$01,'','0','0',TD);}}};function GetFDVer(){return 'FlashDetection_vA008cr';}

