function getBkHdpDetailUrl(n,t,i,r){return _basketballWebDomain+"team/handicapdetail?sclassid="+n+"&teamid="+t+"&matchseason="+i+"&halforall="+r}function getBkOuDetailUrl(n,t,i,r){return _basketballWebDomain+"team/ouhandicapdetail?sclassid="+n+"&teamid="+t+"&matchseason="+i+"&halforall="+r}function getFbPanluUrl(n,t){var i="/soccer/oddsstats/"+n;return typeof t!="undefined"&&t!=""&&(i+="?cid="+t),i}function openFbPanlu(n,t){window.open(getFbPanluUrl(n,t),"","scrollbars=yes,resizable=yes,width=662, height=650,left=50,top=100")}function getHistoryCornerUrl(n){return"/history/corner/"+n}function openHistoryCornerUrl(n){window.open(getHistoryCornerUrl(n))}function SetShuntingFav(){var n="http://171.244.33.244:9898/navigator.htm";try{window.external.addFavorite(n,"Bongdalu Navigator")}catch(t){window.open(n)}}function timeToText(n,t){t=t||0;var i=["dd/MM/yyyy hh:mm:ss","dd/MM/yyyy hh:mm:ss","dd/MM/yyyy","dd/MM","hh:mm","t2 dd","dd/MM hh:mm","dd/MM/yy","yyyy","dd/MM/yyyy","t2 dd hh:mm","hh:mm,ww,dd/MM/yyyy","dd/MM/yyyy(w)","dd/MM/yyyy hh:mm w","dd/MM hh:mm","dd/MM hh:mm","dd/MM/yy","dd/MM/yyyy","dd/MM/yyyy hh:mm","d/M/yyyy hh:mm","yyyy.MM.dd hh:mm","M-d hh:mm","dd/MM/yyyy hh:mm","dd/MM/yyyy hh:mm"];return dateFtt(i[t]||i[0],n)}function overDropDownBG(n){n.style.backgroundColor="#3d980a"}function simplePage(){var t,i,n;if(typeof cnzzModel!="undefined"){if(cnzzModel.cnz==7)for(document.getElementsByClassName("data_td")[0].style.display="table-cell",t=document.getElementsByClassName("toolimg"),n=0;n<t.length;n++)t[n].style.display="table-cell";if(cnzzModel.cnz==5){for($(".loginBox").css("display","none"),$(".liveOddsFilter").css("display","none"),i=$(".tvLinkBtn"),n=0;n<i.length;n++)i[n].innerHTML="&nbsp;";typeof _settingObj!="undefined"&&(_settingObj.showCorner=!1)}(cnzzModel.cnz==11||cnzzModel.cnz==12)&&($(".oddsHead").attr("style","display:table-cell !important"),$(".oddstd").attr("style","display:table-cell !important"))}}function OddsCompanySelect(){return["<option value='31'>Sbobet<\/option>","<option value='8'>BET365<\/option>","<option value='23'>188BET<\/option>","<option value='17'>M88<\/option>","<option value='24'>12BET<\/option>","<option value='3'>Crown<\/option>","<option value='22'>10BET<\/option>"]}function LQOddsComp(){return[31,8,3,1,2,14]}function ShowInPlay(){var r,t,n,u,i;for(filter.league=[],filter.state=1,SelectReset(1),SelectAll(2),SelectAll(3),SelectAll(4),r=0,t=document.getElementById("table_live").getElementsByTagName("tr"),n=1;n<t.length;n++)t[n].getAttribute("index")!=null&&(t[n].style.display="none",t[n+1]&&(t[n+1].style.display="none"),!isFromSch&&t[n+2]&&(t[n+2].style.display="none"));for(orderby=="league"&&$(".Leaguestitle")&&$(".Leaguestitle").hide(),n=1;n<=matchcount;n++)u=!0,filter.state==1&&parseInt(A[n][8])<=0&&(u=!1),u?(i=null,i=document.getElementById("tr1_"+A[n][0]),i&&(i.style.display=""),i=document.getElementById("tr2_"+A[n][0]),i&&(i.style.display=typeof _showRemark!="undefined"&&_showRemark&&!isFromSch&&A[n][22]!=""||isFromSch&&(A[n][19]!=""||A[n][21]!="")?"":"none"),orderby=="league"&&document.getElementById("tr_"+A[n][1])&&(document.getElementById("tr_"+A[n][1]).style.display="")):r=r+1;document.getElementById("hiddencount").innerHTML=r;SyncMatchClass();typeof HandleDateTitle!="undefined"&&HandleDateTitle instanceof Function&&HandleDateTitle();typeof InitFlashShow!="undefined"&&InitFlashShow instanceof Function&&InitFlashShow();document.getElementById("topLine")&&(matchcount>0&&matchcount==r?$("#topLine").show():$("#topLine").hide(),typeof HandleTitle=="function"&&HandleTitle());typeof reorderAd=="function"&&reorderAd();typeof InitTipsNum!="undefined"&&InitTipsNum();typeof InitHeadShow!="undefined"&&InitHeadShow();hideResultTr()}function OpenMobile(){CheckEmpty(_touchWebDomain)||window.open(_touchWebDomain+"?from=pc")}function settingDiff(){typeof _settingObj!="undefined"&&(_settingObj.forAllMatch=!1)}function defaultFavLeague(){if(getCookie(_favLeagueKey)==null)Config.setFavLeagueIds(["766","1248","103","31","34","36","11","8","113"])}function LoadLiveData(n){var h="",u,t,r,i,f,e,o,c,s;if(!CheckEmpty(n)){if(n=JSON.parse(n),n.ErrCode!=0){ReOrderAd();return}if(h=n.Data,CheckEmpty(h))ReOrderAd();else if(u=h.split("!"),u.length>0){for(t=[],t.push("<div>"),t.push('<h2 class="team-table-title">'+_locModel.T.T_TIL_LiveOdds),r=[],i="",f=0;f<u.length;f++)(e=u[f].split("#"),e.length<2)||(o=e[0].split(",")[1],c=e[1],r.push("<div id='oddsDiv_"+o+"' class='oddsDiv' style='display:none;'>"),r.push(Maketable(o,c.split("^"))),r.push("<\/div>"),i+=o+",");i!=""&&(t.push('<select onchange="SwitchOddsComp(this.value);" id="detail-oddsSel">'),i.indexOf("8,")!=-1&&t.push('<option value="8">Bet365<\/option>'),i.indexOf("31,")!=-1&&t.push('<option value="31">Sbobet<\/option>'),i.indexOf("3,")!=-1&&t.push('<option value="3">Crown<\/option>'),t.push("<\/select>"));t.push(`
                        <select onchange="SwitchHF(this.value)" id="detail-hfSel">
                            <option value="1">FT</option>
                            <option value="2">HT</option>
                        </select>
                    `);t.push("<\/h2>");t.push(r.join(""));t.push('<div class="discription">');t.push('<span class="hbg-td2"><\/span> : '+_locModel.T.T_HistoryData+"   ");t.push('<span class="hbg-td1"><\/span> : '+_locModel.T.T_LastestData+" <\/div>");t.push("<\/div>");t.push("<\/div>");document.getElementById("oddsDiv").innerHTML=t.join("");document.getElementById("detail-oddsSel")&&(s=getCookie("detail_company"),s!=null&&i.indexOf(s+",")!=-1&&(CompanyId=s),CompanyId==0&&(CompanyId=document.getElementById("detail-oddsSel").options[0].value),SwitchOddsComp(CompanyId));needInitOddsType=!1;ReOrderAd()}}}function SwitchOddsComp(n){$(".oddsDiv").hide();$("#oddsDiv_"+n).show();CompanyId=n;writeCookie("detail_company",n);$("#detail-oddsSel").val(CompanyId)}function orderCompany(){for(var r,t=[],i=AnalysisObj.cmpList,n=0;n<i.length;n+=2)t.push([i[n].trim(" "),i[n+1].trim(" ")]);for(t.sort(function(n,t){return order.indexOf(n[0])==-1||order.indexOf(t[0])==-1?order.indexOf(t[0])-order.indexOf(n[0]):order.indexOf(n[0])-order.indexOf(t[0])}),AnalysisObj.cmpList=[],n=0;n<t.length;n++)r=t[n],AnalysisObj.cmpList.push(r[0],r[1])}function orderTableCompany(n){n.sort(function(n,t){return order.indexOf(n[0])==-1||order.indexOf(t[0])==-1?order.indexOf(t[0])-order.indexOf(n[0]):order.indexOf(n[0])-order.indexOf(t[0])})}function order1x2Company(){try{game.sort(function(n,t){return twoMixOrder.indexOf(t.split("|")[0])-twoMixOrder.indexOf(n.split("|")[0])})}catch(n){}}var liveOsList,order,twoMixOrder;typeof Config!="undefined"&&setTimeout("defaultFavLeague()");typeof AnalysisObj!="undefined"&&(AnalysisObj.companyIDList=[31,8,23,17,3],liveOsList=getCookie("LiveOddsComp"),liveOsList&&(AnalysisObj.companyIDList=liveOsList.split("_")));order=["31","8","23","17","24","3","42","1","12","14","35","47","48","19"];twoMixOrder=["16","545","18","517","499","281","474"];basketInPage={gethost:function(){return _mainWebDomain.substr(0,_mainWebDomain.length-1)},analysis:function(n){window.open(this.gethost()+"/bong-ro/analysis/"+n)},oddscomp:function(n){window.open(this.gethost()+"/oddscompbasket/"+n)},euroodds:function(n){window.open(this.gethost()+"/bong-ro/1x2-"+n)},playertech:function(n){window.open(this.gethost()+"/statistics/"+n)}}