var AnalysisObj={cookieName:"analysis_set",idchange:0,companyIDList:[8,31,3,1,24],list:new Array,init:function(){if(_$("analyMap")){var t=getCookie(this.cookieName);if(t)t=unescape(t);else{t="";for(var e=0;e<16;e++)t+=e+"#"}this.initWith(t),this.porlet()}},initWith:function(t){this.list=new Array,t&&""!=t&&(this.list=t.split("#"))},update:function(){var t=getCookie(this.cookieName);t&&(t=unescape(t));var e=this.list.join("#");t!=e&&writeCookie(this.cookieName,e),this.idchange+=1},porlet:function(){for(var t=_$("porletP_Group"),e=new Array,a=0;a<16;a++){(n=_$("porletP"+a))&&(n.style.display=-1==this.list.indexOf(a.toString())?"none":"");var o=_$("porletAd"+a);o&&(t.removeChild(o),e.push(o))}for(a=0;a<this.list.length;a++){var n;(n=_$("porletP"+this.list[a]))&&(n.children.length>0&&"none"!=n.children[0].style.display&&n.children[0].innerHTML.trim()&&e.length>0&&(t.appendChild(e[0]),e.splice(0,1)),t.removeChild(n),t.appendChild(n))}this.rightSet()},rightSet:function(){for(var t="<a href='javascript:void(0);' onclick='openSetting();return false;' >"+_locModel.T.T_Settings+"</a>",e=_locModel.T.T_Mul_Setting.split(","),a=this.list,o=0;o<a.length;o++)if(_$("porletP"+a[o])){var n=e[a[o]];n&&(t+="<a href='#' title='"+n.split("^")[1]+"' onclick='window.location.hash =\"#porletP"+a[o]+"\";window.location = window.location;return false;'>"+n.split("^")[0]+"</a>")}_$("analyMap").innerHTML=t,_$("analyMap").style.display=""}},liveOsList=getCookie("LiveOddsComp");liveOsList&&(AnalysisObj.companyIDList=liveOsList.split("_"));var _companyName=new Array(47);_companyName[1]="Macauslot",_companyName[3]="Crown",_companyName[8]="Bet365",_companyName[12]="Easybet",_companyName[14]="Vcbet",_companyName[17]="Mansion88",_companyName[19]="Interwetten",_companyName[22]="10BET",_companyName[23]="188bet",_companyName[24]="12BET",_companyName[31]="Sbobet",_companyName[35]="wewbet",_companyName[42]="18Bet",_companyName[47]="pinnacle",_companyName[48]="hkjc",_companyName[9]="Willhill";var _companyLogo=new Array(47);_companyLogo[1]="/images/company/1.png",_companyLogo[3]="/images/company/3.png",_companyLogo[8]="/images/company/8.png",_companyLogo[12]="/images/company/12.png",_companyLogo[14]="/images/company/14.png",_companyLogo[17]="/images/company/17.png",_companyLogo[19]="/images/company/19.png",_companyLogo[22]="/images/company/22.png",_companyLogo[23]="/images/company/23.png",_companyLogo[24]="/images/company/24.png",_companyLogo[31]="/images/company/31.png",_companyLogo[35]="/images/company/35.png",_companyLogo[42]="/images/company/42.png",_companyLogo[47]="/images/company/47.png",_companyLogo[48]="/images/company/48.png";var oldXml="",panlu=["","<span class=o-lose>"+_locModel.T.T_S_Loss+"</span>","<span class=o-draw>"+_locModel.T.T_S_Draw+"</span>","<span class=o-win>"+_locModel.T.T_S_Win+"</span>"],overUnder=["<span class=o-lose>"+_locModel.T.T_S_Under+"</span>","<span class=o-draw>"+_locModel.T.T_S_Draw+"</span>","<span class=o-win>"+_locModel.T.T_S_Over+"</span>"],_defaultCount=10;function _$(t){return document.getElementById(t)}function _$$(t){return document.getElementsByName(t)}function showSOS(t,e){null==e&&(e=3);var a=_$("selectMatchCount0"),o=roundCount3,n="checkboxleague3",l="tr3_";1==e&&(o=roundCount1,l="tr1_",a=_$("selectMatchCount1"),n="checkboxleague1"),2==e&&(o=roundCount2,l="tr2_",a=_$("selectMatchCount2"),n="checkboxleague2");for(var s=_$$(n),d=new Array,r=0;r<s.length;r++)if(s[r].checked){var i=s[r].id,c=i.replace(i.substring(0,i.indexOf("_")+1),"");d.push(c)}var p=0,_=0;if(t.checked)for(var h=1;h<=o;h++){(u=(m=_$(l+h)).getAttribute("name"))&&-1==d.indexOf(u)||("1"==m.getAttribute("vs")&&++p<=_defaultCount?(_++,m.style.display=""):m.style.display="none")}else for(h=1;h<=o;h++){var m,u;(u=(m=_$(l+h)).getAttribute("name"))&&-1!=d.indexOf(u)&&(++p<=_defaultCount?(_++,m.style.display=""):m.style.display="none")}if(a.options.length=0,p>0){for(h=1;h<=p;h++){var y=new Option(h,h);a.options.add(y)}a.value=_}countData(e)}function showMatchCount(t,e){var a=roundCount1,o="cb_sos1",n=_$("selectMatchCount1");2==e?(a=roundCount2,n=_$("selectMatchCount2"),o="cb_sos2"):3==e&&(a=roundCount3,n=_$("selectMatchCount0"),o="cb_sos");for(var l="",s=1;s<=a;s++){var d=_$("tr"+e+"_"+s).getAttribute("name");-1==l.indexOf(d)&&(l+=d+",")}for(s=0;s<l.split(",").length-1;s++){var r=_$("checkboxleague"+e+"_"+l.split(",")[s]);r&&r.checked&&showLeagueCount(r,e)}var i=_$(o);i&&i.checked&&showSOS(i,e);var c=0;for(s=1;s<=a;s++)""==_$("tr"+e+"_"+s).style.display&&(c==parseInt(t)?_$("tr"+e+"_"+s).style.display="none":c+=1);n.value=Math.min(t,a),countData(e)}function showLeagueCount(t,e){var a=roundCount1,o=_$("selectMatchCount1"),n="cb_sos1";if(2==e?(a=roundCount2,n="cb_sos2",o=_$("selectMatchCount2")):3==e&&(a=roundCount3,n="cb_sos",o=_$("selectMatchCount0")),t.checked)for(var l=1;l<=a;l++)_$("tr"+e+"_"+l).getAttribute("name")==t.value&&(_$("tr"+e+"_"+l).style.display="");else for(l=1;l<=a;l++)_$("tr"+e+"_"+l).getAttribute("name")==t.value&&(_$("tr"+e+"_"+l).style.display="none");var s=0;for(l=1;l<=a;l++)""==_$("tr"+e+"_"+l).style.display&&(s+=1);if(o.options.length=0,s>0){for(l=1;l<=s;l++){var d=new Option(l,l);o.options.add(d)}o.value=s}var r=_$(n);r&&r.checked&&showSOS(r,e),countData(e)}function countData(t){var e=roundCount1;2==t?e=roundCount2:3==t&&(e=roundCount3);var a=dataArray1.split("#");2==t&&(a=dataArray2.split("#")),3==t&&(a=dataArray3.split("#"));for(var o=0,n=0,l=0,s=0,d=0,r=0,i=0,c=0,p=(i=0,0),_=0,h=1;h<=e;h++)if(""==_$("tr"+t+"_"+h).style.display)for(var m=_$("tr"+t+"_"+h).getAttribute("index"),u=0;u<a.length;u++){var y=a[u].split(",");parseInt(y[0])==parseInt(m)&&(o+=parseInt(y[1]),"1"==parseInt(y[2])&&n++,l+=parseInt(y[3]),"-1"!=parseInt(y[4])&&("1"==parseInt(y[4])&&d++,p++),r+=parseInt(y[5]),s+=parseInt(y[6]),i+=1)}i>0?(n>0&&(c=(o/n*100).toFixed(2)),_$("td_stat"+t).style.display="",p>0&&(_=(1*d/p*100).toFixed(2)),_$("td_stat"+t).innerHTML=_locModel.T.T_Param_Statistics.replace("{0}"," <font class=red>"+i+"</font> ").replace("{1}",l).replace("{2}",s).replace("{3}",i-l-s).replace("{4}","<font class=red>"+(l/i*100).toString().substring(0,Math.min((l/i*100).toString().length,4))+"%</font> ").replace("{5}","<font class=red>"+c+"% </font>").replace("{6}","<font class=red>"+_+"%</font> ").replace("{7}","<font class=red>"+(r/i*100).toString().substring(0,Math.min((r/i*100).toString().length,4))+"%</font>")):_$("td_stat"+t).style.display="none"}function initSelections(){var t=["sSelect_","sType_","hSelect_","hType_"];try{for(var e=1;e<=3;e++){for(var a=0;a<t.length;a++){var o=getCookie(t[a]+e);o&&parseInt(o)>=0&&(_$(t[a]+e)[parseInt(o)].selected=!0)}showOdds_s(e,0),showOdds_h(e,0)}var n=_$("com_s");if(n&&h_data.length>0)for(e=0;e<h_data.length;e++)n.options[e]=new Option(e+1<10?" "+(e+1):e+1,e+1),(9==e||h_data.length<10&&e==h_data.length-1)&&(n.options[e].selected=!0)}catch(t){}}function showOdds_s(t,e){if(null!=_$("table_v"+t)){for(var a=_$("table_v"+t).getElementsByTagName("tr"),o=new Array,n=3;n<a.length-1;n++){var l=a[n].getAttribute("index"),s=a[n].cells.length;null!=l&&(a[n].cells[s-9].innerHTML="",a[n].cells[s-8].innerHTML="",a[n].cells[s-7].innerHTML="",o.push(parseInt(l)))}var d=parseInt(_$("sSelect_"+t).value),r=parseInt(_$("sType_"+t).value),i=parseInt(_$("ftType_"+t).value);0!=e&&(writeCookie("sSelect_"+t,_$("sSelect_"+t).selectedIndex),writeCookie("sType_"+t,_$("sType_"+t).selectedIndex),writeCookie("ftType_"+t,_$("ftType_"+t).selectedIndex));var c=0,p=o.length,_="1"==i?7:0;for(n=0;n<Vs_eOdds.length;n++)if(!(c>=p)){var h=Vs_eOdds[n],m=o.indexOf(h[0]);if(-1!=m&&d==h[1]){if(m+=3,"1"==i){if(h.length<10)continue;if(1==r&&"0.00"==h[6+_]||1!=r&&"0.00"==h[3+_])continue}var u=[h[2+_],h[3+_],h[4+_]],y=oTool.getPL(_oddsType,h[2+_],h[3+_],h[4+_],!0);1==r&&(y=oTool.getPL(_oddsType,h[5+_],h[6+_],h[7+_],!0));s=a[m].cells.length;0!=y[1]&&(a[m].cells[s-9].innerHTML=y[0],a[m].cells[s-8].innerHTML=y[1],a[m].cells[s-7].innerHTML=y[2],a[m].cells[s-9].setAttribute("name","oddsData"),a[m].cells[s-9].setAttribute("data-o",u[0]),a[m].cells[s-9].setAttribute("data-e","1"),a[m].cells[s-8].setAttribute("name","oddsData"),a[m].cells[s-8].setAttribute("data-o",u[1]),a[m].cells[s-8].setAttribute("data-e","1"),a[m].cells[s-7].setAttribute("name","oddsData"),a[m].cells[s-7].setAttribute("data-o",u[2]),a[m].cells[s-7].setAttribute("data-e","1")),c++}}}}function showOdds_h(t,e){var a="";if(1==t&&"undefined"!=typeof dataArray1&&(a=dataArray1),2==t&&"undefined"!=typeof dataArray2&&(a=dataArray2),3==t&&"undefined"!=typeof dataArray3&&(a=dataArray3),null!=_$("table_v"+t)){for(var o=_$("table_v"+t).getElementsByTagName("tr"),n=new Array,l=3;l<o.length-1;l++){var s=o[l].getAttribute("index");if(null!=s){var d=o[l].cells.length;o[l].cells[d-6].innerHTML="",o[l].cells[d-5].innerHTML="",o[l].cells[d-4].innerHTML="",o[l].cells[d-2].innerHTML="",o[l].cells[d-1].innerHTML="",n.push(parseInt(s))}}var r=parseInt(_$("hSelect_"+t).value),i=parseInt(_$("hType_"+t).value),c=parseInt(_$("ftType_"+t).value);0!=e&&(writeCookie("hSelect_"+t,_$("hSelect_"+t).selectedIndex),writeCookie("hType_"+t,_$("hType_"+t).selectedIndex),writeCookie("ftType_"+t,_$("ftType_"+t).selectedIndex));var p,_,h,m=0,u=n.length,y=n.slice(0),g="1"==c?8:0;for(l=0;l<Vs_hOdds.length;l++)if(!(m>=u)){var T=Vs_hOdds[l],f=n.indexOf(T[0]);if(-1!=f&&r==T[1]){var b=f+3,v=["","",""],w=["","",""],L=o[b].getAttribute("info").split(",");1==i?(w=[T[5+g],T[6+g],T[7+g]],v=oTool.getPL(_oddsType,T[5+g],T[6+g],T[7+g])):(w=[T[2+g],T[3+g],T[4+g]],v=oTool.getPL(_oddsType,T[2+g],T[3+g],T[4+g]));var C=new RegExp(T[0]+",[-\\d]+,[-\\d]+,[-\\d]+,[-\\d]+,[-\\d]+"),O=0,D=0,M=0,A=(H=a.match(C)[0]).split(",");d=o[b].cells.length;""!=v[1]?(o[b].cells[d-6].innerHTML=v[0],o[b].cells[d-5].innerHTML=Goal2GoalCn(v[1]),o[b].cells[d-4].innerHTML=v[2],o[b].cells[d-6].setAttribute("data-o",w[0]),o[b].cells[d-5].setAttribute("data-o",Goal2GoalCn(w[1])),o[b].cells[d-4].setAttribute("data-o",w[2]),1==(p=1==c?getResult(parseFloat(v[1]),parseInt(L[3]),parseInt(L[4]),parseInt(L[2]),t):getResult(parseFloat(v[1]),parseInt(L[0]),parseInt(L[1]),parseInt(L[2]),t))&&(O=1),D=1):(p=-2,D=0),A[1]=O,A[2]=D;var I=1==i?T[9+g]:T[8+g];""!=I?M=1==(_=1==c?getTotalResult(parseFloat(I),parseInt(L[3]),parseInt(L[4])):getTotalResult(parseFloat(I),parseInt(L[0]),parseInt(L[1])))?1:0:(_=-2,M=-1),A[4]=M;var $=0,k=0;1==(h=1==c?getResult(0,parseInt(L[3]),parseInt(L[4]),parseInt(L[2]),t):getResult(0,parseInt(L[0]),parseInt(L[1]),parseInt(L[2]),t))?$=1:0==h&&(k=1),A[3]=$,A[6]=k;var N=A.join(",");a=a.replace(H,N),o[b].cells[d-3].innerHTML=h>-2?panlu[h+2]:"",o[b].cells[d-2].innerHTML=p>-2?panlu[p+2]:"",o[b].cells[d-1].innerHTML=_>-2?overUnder[_+1]:"",m++,y.splice(y.indexOf(T[0]),1)}}for(l=0;l<y.length;l++){var H;C=new RegExp(y[l]+",[-\\d]+,[-\\d]+,[-\\d]+,[-\\d]+,[-\\d]+");(A=(H=a.match(C)[0]).split(","))[1]=0,A[2]=0,A[4]=-1,N=A.join(","),a=a.replace(H,N)}1==t&&(dataArray1=a),2==t&&(dataArray2=a),3==t&&(dataArray3=a),countData(t)}}function showOdds_all(t,e){showOdds_h(t,e),showOdds_s(t,e)}function getResult(t,e,a,o,n){var l=-2;return l=t>=0?e-t>a?1:e-t==a?0:-1:a-Math.abs(t)>e?-1:a-Math.abs(t)==e?0:1,1!=n&&3!=n||o==h2h_home||(l=1==l?-1:-1==l?1:l),2==n&&o!=h2h_away&&(l=1==l?-1:-1==l?1:l),l}function getTotalResult(t,e,a){return e+a>t?1:e+a==t?0:-1}function Comp_Change(t){initComp("h",t),initComp("g",t)}function initComp(t,e){var a=[];a="h"==t?h_data:a_data;for(var o=0,n=0,l=0,s=0,d=0,r=0,i=0,c=0,p=0,_=0,h=0,m=0,u=0,y=0;y<e;y++)a[y]?(m=parseInt(a[y][2]),u=parseInt(a[y][3]),"h"==t&&h2h_home==a[y][0]||"g"==t&&h2h_away==a[y][0]?(o+=m,n+=u,m>u?(l+=1,"h"==t&&(p+=1)):m==u?(s+=1,"h"==t&&(_+=1)):(d+=1,"h"==t&&(h+=1)),"h"==t&&(r+=1,i+=m,c+=u)):("h"==t&&h2h_home==a[y][1]||"g"==t&&h2h_away==a[y][1])&&(o+=u,n+=m,u>m?(l+=1,"g"==t&&(p+=1)):m==u?(s+=1,"g"==t&&(_+=1)):(d+=1,"g"==t&&(h+=1)),"g"==t&&(r+=1,i+=u,c+=m))):e--;var g=_$("tr_com_"+t);g.cells[1].innerHTML=o,g.cells[2].innerHTML=n,g.cells[3].innerHTML=o-n,0==e&&(e=1),g.cells[4].innerHTML=Math.round(o/e*100)/100,g.cells[5].innerHTML=Math.round(l/e*1e3)/10+"%",g.cells[6].innerHTML=Math.round(s/e*1e3)/10+"%",g.cells[7].innerHTML=Math.round(d/e*1e3)/10+"%",g.cells[9].innerHTML=i,g.cells[10].innerHTML=c,g.cells[11].innerHTML=i-c,0==r&&(r=1),g.cells[12].innerHTML=Math.round(i/r*100)/100,g.cells[13].innerHTML=Math.round(p/r*1e3)/10+"%",g.cells[14].innerHTML=Math.round(_/r*1e3)/10+"%",g.cells[15].innerHTML=Math.round(h/r*1e3)/10+"%"}function changeTdOddsData(t,e,a){var o=oTool.getPL(_oddsType,t.getAttribute("data-o"),e.getAttribute("data-o"),a.getAttribute("data-o"));t.innerText=o[0],e.innerText=o[1],a.innerText=o[2]}function changeOddsType(){for(var t=_$$("oddsData"),e=0;e<t.length;e++){var a=t[e],o=a.getAttribute("data-o");o&&(a.innerText=oTool.changePL(_oddsType,o))}var n=_$("table_v3").getElementsByTagName("tr");for(e=0;e<n.length;e++){if(null!=(d=n[e]).getAttribute("index"))changeTdOddsData((r=d.cells)[r.length-6],r[r.length-5],r[r.length-4])}var l=_$("table_v1").getElementsByTagName("tr");for(e=0;e<l.length;e++){if(null!=(d=l[e]).getAttribute("index"))changeTdOddsData((r=d.cells)[r.length-6],r[r.length-5],r[r.length-4])}var s=_$("table_v2").getElementsByTagName("tr");for(e=0;e<s.length;e++){var d,r;if(null!=(d=s[e]).getAttribute("index"))changeTdOddsData((r=d.cells)[r.length-6],r[r.length-5],r[r.length-4])}}function LoadLiveCompare(){var t=_ENDPOINT_ODDS+"/ajax/soccerajax?type=1&id="+_scheduleID;bomHelper.ajaxGet(t,refreshOdds),window.setTimeout("LoadLiveCompare()",3e4)}function refreshOdds(result){try{var data="";if(CheckEmpty(result)||(result=eval("("+result+")"),0==result.ErrCode&&(data=result.Data)),CheckEmpty(data))return;oldXml=data;for(var theTag=data,allCompOdds=new Array,ll=theTag.split("^"),i=0;i<ll.length;i++)allCompOdds.push(ll[i].split(";"));"function"==typeof orderTableCompany&&orderTableCompany(allCompOdds);var html=['<h2 class="team-table-title">'+_locModel.T.T_TIL_LiveOddsCom+'</h2><table  width="100%" border="0" cellpadding="0" cellspacing="0" class="team-table-other">',"<tbody>",'<tr height="20" >','<th rowspan="2" width="8%" height="24"><b>'+_locModel.T.T_Company+"</b></th>",'<th rowspan="2" width="32" class="ll rl"></th>'].join(""),oddsTpyes=_oddsOrder.split("-");oddsTpyes.forEach((function(t){1==t?html+='<th colspan="3" class="rl no-b-l"><b>'+_locModel.T.T_TIL_HDPOdds+"</b></th>":2==t?html+='<th colspan="3" class="rl no-b-l"><b>'+_locModel.T.T_TIL_1X2Odds+"</b></th>":3==t&&(html+='<th colspan="3" class="rl no-b-l"><b>'+_locModel.T.T_TIL_OuOdds+"</b></th>")})),html+='<th rowspan="2" width="15"><b>'+_locModel.T.T_Changes+"</b></th>",html+='<th rowspan="2" width="25" style="cursor:pointer;" onclick="addOddsCmp()"><span class="icon-plus"></span></th>',html+="</tr>",html+='<tr  height="20">',oddsTpyes.forEach((function(t){1==t?html+='<th width="8%">'+_locModel.T.T_Home+'</th><th width="8%">'+_locModel.T.T_Handicap+'</th><th width="8%" class="rl">'+_locModel.T.T_Away+"</th>":2==t?html+='<th width="8%">'+_locModel.T.T_Home+'</th><th width="8%">'+_locModel.T.T_Draw+'</th><th width="8%" class="rl">'+_locModel.T.T_Away+"</th>":3==t&&(html+='<th width="8%">'+_locModel.T.T_Over+'</th><th width="8%">'+_locModel.T.T_OuOdds+'</th><th width="8%" class="rl">'+_locModel.T.T_Under+"</th>")})),html+="</tr>",AnalysisObj.cmpList=new Array;for(var i=0;i<allCompOdds.length;i++){var odds=allCompOdds[i];AnalysisObj.cmpList.push(odds[0]),AnalysisObj.cmpList.push(odds[1]);for(var addCss="height:20px;display:none;",k=0;k<AnalysisObj.companyIDList.length;k++)if(AnalysisObj.companyIDList[k]==odds[0]){addCss="height:20px;";break}var o1=odds[2].split(","),o2=odds[3].split(","),o3,tdNum=2;odds.length>4&&(o3=odds[4].split(","),void 0!==o3[0]&&""!=o3[0]&&(tdNum=3));var newData=oTool.getPL(_oddsType,o1[0],o1[1],o1[2],!0),o1_0=newData[0],o1_1=newData[1],o1_2=newData[2];newData=oTool.getPL(_oddsType,o1[3],o1[4],o1[5]);var o1_3=newData[0],o1_4=newData[1],o1_5=newData[2];newData=oTool.getPL(_oddsType,o1[7],o1[8],o1[9]);var o1_7=newData[0],o1_8=newData[1],o1_9=newData[2];newData=oTool.getPL(_oddsType,o1[11],o1[12],o1[13]);var o1_11=newData[0],o1_12=newData[1],o1_13=newData[2];newData=oTool.getPL(_oddsType,o2[0],o2[1],o2[2],!0);var o2_0=newData[0],o2_1=newData[1],o2_2=newData[2];newData=oTool.getPL(_oddsType,o2[3],o2[4],o2[5]);var o2_3=newData[0],o2_4=newData[1],o2_5=newData[2];newData=oTool.getPL(_oddsType,o2[7],o2[8],o2[9]);var o2_7=newData[0],o2_8=newData[1],o2_9=newData[2];newData=oTool.getPL(_oddsType,o2[11],o2[12],o2[13]);var o2_11=newData[0],o2_12=newData[1],o2_13=newData[2];if(o1_4=Goal2GoalCn(Goal2Num(o1_4)),o1_8=Goal2GoalCn(Goal2Num(o1_8)),o1_12=Goal2CnOU(Goal2Num(o1_12)),o2_4=Goal2GoalCn(Goal2Num(o2_4)),o2_8=Goal2GoalCn(Goal2Num(o2_8)),o2_12=Goal2CnOU(Goal2Num(o2_12)),html+='<tr bgcolor="#FFFFFF" style="'+addCss+'" id="tr_o_1_'+odds[0]+'" name="earlyOdds">',console.log(parseInt(odds[0])),console.log(typeof _companyLogo[parseInt(odds[0])]),void 0!==_companyLogo[parseInt(odds[0])]?html+='<td rowspan = "'+tdNum+'" class="companyBg"><img style="width: 100px;" src="'+_companyLogo[parseInt(odds[0])]+'"></td>':html+='<td rowspan = "'+tdNum+'" class="companyBg"><b>'+_companyName[parseInt(odds[0])]+"</b></td>",html+='<td class="ll rl lo-f">'+_locModel.T.T_Early+"</font>",oddsTpyes.forEach((function(t){1==t?(html+='<td class="hbg-td2" name="oddsData" data-o="'+o1[7]+'">'+o1_7+"</td>",html+='<td class="hbg-td2" data-o="'+o1[8]+'">'+o1_8+"</td>",html+='<td class="rl hbg-td2" name="oddsData" data-o="'+o1[9]+'">'+o1_9+"</td>"):2==t?(html+='<td class="hbg-td1" name="oddsData" data-o="'+o1[0]+'" data-e="1"> '+o1_0+"</td>",html+='<td class="hbg-td1" name="oddsData" data-o="'+o1[1]+'" data-e="1"> '+o1_1+"</td>",html+='<td class="hbg-td1 rl" name="oddsData" data-o="'+o1[2]+'" data-e="1">'+o1_2+"</td>"):3==t&&(html+='<td  name="oddsData" data-o="'+o1[11]+'">'+o1_11+"</td>",html+='<td data-o="'+o1[12]+'">'+o1_12+"</td>",html+='<td class="rl"  name="oddsData" data-o="'+o1[13]+'">'+o1_13+"</td>")})),html+='<td rowspan="'+tdNum+'"><a href="'+getFbOddsCompUrl(_matchId)+'" class="odds-icon icon-before-after" target="_blank"></a></td>',html+='<td rowspan="'+tdNum+'" style="cursor:pointer;" onclick="hidOddsCmp('+odds[0]+')"><span class="icon-minus"></span></td>',html+="</tr>",html+='<tr bgcolor="#FFFFF0" style="'+addCss+'" class="odds" id="tr_o_2_'+odds[0]+'" name="liveOdds">',html+='<td class="ll rl lo-f" > '+(2==tdNum?_locModel.T.T_Live:_locModel.T.T_Final)+"</td >",oddsTpyes.forEach((function(t){1==t?(html+='<td class="hbg-td2"  name="oddsData" data-o="'+o2[7]+'">'+o2_7+"</td>",html+='<td class="hbg-td2" data-o="'+o2[8]+'">'+o2_8+"</td>",html+='<td class="rl hbg-td2"  name="oddsData" data-o="'+o2[9]+'">'+o2_9+"</td>"):2==t?(html+='<td class="hbg-td1" name="oddsData" data-o="'+o2[0]+'" data-e="1">'+o2_0+"</td>",html+='<td class="hbg-td1" name="oddsData" data-o="'+o2[1]+'" data-e="1">'+o2_1+"</td>",html+='<td class="hbg-td1 rl" name="oddsData" data-o="'+o2[2]+'" data-e="1">'+o2_2+"</td>"):3==t&&(html+='<td  name="oddsData" data-o="'+o2[11]+'">'+o2_11+"</td>",html+='<td  data-o="'+o2[12]+'">'+o2_12+"</td>",html+='<td class="rl"  name="oddsData" data-o="'+o2[13]+'">'+o2_13+"</td>")})),html+="</tr>",3==tdNum){newData=oTool.getPL(_oddsType,o3[0],o3[1],o3[2],!0);var o3_0=newData[0],o3_1=newData[1],o3_2=newData[2];newData=oTool.getPL(_oddsType,o3[7],o3[8],o3[9]);var o3_7=newData[0],o3_8=newData[1],o3_9=newData[2];newData=oTool.getPL(_oddsType,o3[11],o3[12],o3[13]);var o3_11=newData[0],o3_12=newData[1],o3_13=newData[2];html+='<tr bgcolor="#FFFFF0" style="'+addCss+'" class="odds" id="tr_o_3_'+odds[0]+'"  name="runOdds">',html+='<td class="ll rl lo-f2"> '+_locModel.T.T_Run+"</td >",oddsTpyes.forEach((function(t){1==t?(html+='<td class="hbg-td2r"  name="oddsData" data-o="'+o3[7]+'">'+o3_7+"</td>",html+='<td class="hbg-td2r"  data-o="'+o3[8]+'">'+o3_8+"</td>",html+='<td class="rl hbg-td2r"  name="oddsData" data-o="'+o3[9]+'">'+o3_9+"</td>"):2==t?(html+='<td class="hbg-td1r" '+(o2[1]!=o3[1]?'name="oddsData" data-o="'+o3[0]+'" data-e="1"':"")+">"+(o2[1]!=o3[1]?o3_0:"")+"</td>",html+='<td class="hbg-td1r" '+(o2[1]!=o3[1]?'name="oddsData" data-o="'+o3[1]+'" data-e="1"':"")+">"+(o2[1]!=o3[1]?o3_1:"")+"</td>",html+='<td class="hbg-td1r rl" '+(o2[1]!=o3[1]?'name="oddsData" data-o="'+o3[2]+'" data-e="1"':"")+">"+(o2[1]!=o3[1]?o3_2:"")+"</td>"):3==t&&(html+='<td class="hbg-td4r"  name="oddsData" data-o="'+o3[11]+'">'+o3_11+"</td>",html+='<td class="hbg-td4r"  data-o="'+o3[12]+'">'+o3_12+"</td>",html+='<td class="rl hbg-td4r"  name="oddsData" data-o="'+o3[13]+'">'+o3_13+"</td>")})),html+="</tr> "}}"function"==typeof orderCompany&&orderCompany(),html+="</tbody></table>",_$("liveCompareDiv").innerHTML=html,AnalysisObj.porlet()}catch(t){console.log(t)}}function addOddsCmp(){if(_$("bt_add_div")){_$("addOddsCmp_id")||(_$("bt_add_div").innerHTML="<div id='addOddsCmp_id'></div>");for(var t="",e=0;e<AnalysisObj.cmpList.length;e+=2){for(var a=!1,o=0;o<AnalysisObj.companyIDList.length;o++)if(AnalysisObj.companyIDList[o]==AnalysisObj.cmpList[e]){a=!0;break}t+="<span class='"+(a?"odds_checked":"odds_unchecked")+"' onclick='checkOCompany(this)'><input readonly type='checkbox'"+(a?" checked":"")+" name='oddscmp' value='"+AnalysisObj.cmpList[e]+"'><label>"+_companyName[AnalysisObj.cmpList[e]]+"</label></span>"}_$("addOddsCmp_id").innerHTML="<div>"+t+"</div><div class='box-bottom'><input type='button' value='"+_locModel.T.T_Btn_SelAll+"' onclick='selectOddsCmp(true)' ><input type='button' value='"+_locModel.T.T_Btn_Clear+"' onclick='selectOddsCmp(false)' ><input type='button' value='"+_locModel.T.T_Btn_OK+"' onclick='submitOddsCmp()' ></div>"}Popup.init({target:Popup.create("openNew-container-company",_locModel.T.T_SelectComp,"addOddsCmp_id",480,null,"football"),drag:!0,resize:!1,autoOpen:!0,createOverlay:!0,autoLayout:!1})}function selectOddsCmp(t){var e=document.getElementsByName("oddscmp");t?e.forEach((t=>{t.checked=!0,t.parentNode.className="odds_checked"})):e.forEach((t=>{t.checked=!1,t.parentNode.className="odds_unchecked"}))}function submitOddsCmp(){AnalysisObj.companyIDList=new Array;for(var t=document.getElementsByName("oddscmp"),e=0;e<t.length;e++)t[e].checked&&AnalysisObj.companyIDList.push(t[e].value);reDisplayCmp(),writeCookie("LiveOddsComp",AnalysisObj.companyIDList.join("_")),Popup.getInstanceById("openNew-container-company").close()}function checkOCompany(t){var e="odds_checked"==t.className;t.getElementsByTagName("input")[0].checked=!e,t.className=e?"odds_unchecked":"odds_checked"}function hidOddsCmp(t){for(var e=0;e<AnalysisObj.companyIDList.length;e++)if(AnalysisObj.companyIDList[e]==t){AnalysisObj.companyIDList.splice(e,1);break}reDisplayCmp()}function reDisplayCmp(){for(var t=0;t<AnalysisObj.cmpList.length;t+=2){for(var e=!1,a=0;a<AnalysisObj.companyIDList.length;a++)if(AnalysisObj.companyIDList[a]==AnalysisObj.cmpList[t]){e=!0;break}_$("tr_o_1_"+AnalysisObj.cmpList[t]).style.display=e?"":"none",_$("tr_o_2_"+AnalysisObj.cmpList[t]).style.display=e?"":"none";try{_$("tr_o_3_"+AnalysisObj.cmpList[t]).style.display=e?"":"none"}catch(t){}}}function openSetting(){Popup.init({target:Popup.create("openNew-container-setting"+AnalysisObj.idchange,_locModel.T.T_DataSetting,"/soccer/AnalysisSetting?",500,545,"football"),drag:!0,resize:!0,autoOpen:!0,createOverlay:!0,autoLayout:!1})}function showMap(){getTopHeight();var t=document.getElementById("analyMap");document.body.clientWidth>1024?(t.style.display="",t.style.left=545+document.body.clientWidth/2+"px"):t.style.display="none",setTimeout("showMap();",100)}$(document).ready((function(){try{AnalysisObj.init(),LoadLiveCompare(),showMap(),initSelections(),initComp("h",_defaultCount),initComp("g",_defaultCount),CheckWebTail(),roundCount1>_defaultCount&&showMatchCount(_defaultCount,1),roundCount2>_defaultCount&&showMatchCount(_defaultCount,2)}catch(t){}setGoalCnFormat("porletP7")}));
