function bookmarksite(){if(document.all)window.external.AddFavorite(location.href,document.title);else if(window.sidebar)window.sidebar.addPanel(document.title,location.href,"")}var _gl=new Object();_gl.timeZone="+8";_gl.tzOffset=0;_gl.clientTzOffset=0;_gl.clientTz=false;_gl.nowTime=typeof(nowTime)=="undefined"?(new Date()).getTime():nowTime;_gl.diffTime=_gl.nowTime-(new Date()).getTime();_gl.chgTime=1000;_gl.setCookie=function(E,_){var C=arguments,F=arguments.length,D=(F>2)?C[2]:null,B=(F>3)?C[3]:null,A=(F>4)?C[4]:null,$=(F>5)?C[5]:false;document.cookie=E+"="+encodeURIComponent(_)+((D==null)?"":("; expires="+D.toGMTString()))+((B==null)?"":("; path="+B))+((A==null)?"":("; domain="+A))+(($==true)?"; secure":"")};_gl.getCookie=function(C){var _=document.cookie,B,$,A;A=C+"=";B=_.indexOf(A);if(B>=0){$=_.substring(B+A.length);B=$.indexOf(";");if(B>=1)$=$.substring(0,B);return decodeURIComponent($)}return null};_gl.removeCookie=function(C){var A=arguments,D=arguments.length,B=new Date(),_=(D>1)?A[1]:null,$=(D>2)?A[2]:null;document.cookie=C+"=null; expires="+B.toGMTString()+((_==null)?"":("; path="+_))+(($==null)?"":("; domain="+$))};if(!Array.prototype.push)Array.prototype.push=function array_push(){for(var $=0;$<arguments.length;$++)this[this.length]=arguments[$];return this.length};if(!Array.prototype.pop)Array.prototype.pop=function array_pop(){lastElement=this[this.length-1];this.length=Math.max(this.length-1,0);return lastElement};_gl.setTimeZone=function(){var $=new Date();_gl.clientTzOffset=$.getTimezoneOffset();var _=0;if(_gl.clientTz)_=-_gl.clientTzOffset;else _=480;_gl.tzOffset=(_gl.clientTzOffset+_)*60*1000;if(_==0)_gl.timeZone="";else if(_>0)_gl.timeZone="+"+parseInt(_/60)+(_%60?(":"+_%60):"");else _gl.timeZone="-"+parseInt(-_/60)+(_%60?(":"+_%60):"")};_gl.getDateTime=function($){return $.getFullYear()+"\u5e74"+($.getMonth()+1)+"\u6708"+$.getDate()+"\u65e5 "+($.getHours()<10?"0":"")+$.getHours()+":"+($.getMinutes()<10?"0":"")+$.getMinutes()};_gl.showNowTime=function(){var $=new Date(),_=$.getTime()+_gl.diffTime;if(_-_gl.nowTime<0||_-_gl.nowTime>_gl.chgTime*2){_gl.nowTime+=_gl.chgTime;_gl.diffTime=_gl.nowTime-(new Date()).getTime()}else _gl.nowTime=_;if(_gl.clientTzOffset!=$.getTimezoneOffset())_gl.setTimeZone();var B=new Date(_gl.nowTime+_gl.tzOffset),C=_gl.getDateTime(B)+" GMT"+_gl.timeZone,A=document.getElementById("sp_now_time");if(A)A.innerHTML=C;window.setTimeout(_gl.showNowTime,_gl.chgTime);if(typeof(timeChg)=="function")timeChg(_gl.nowTime);_gl.chkNewMsg()};_gl.hideAd=function(){var $=document.getElementById("div_ad_head");if($)$.style.display="none";$=document.getElementById("ad_hd_1");if($&&$.firstChild&&$.firstChild.tagName=="A"){var _=$.firstChild;if(_.onclick)_.onclick();if(_.href)window.open(_.href)}};_gl.getDocumentLeftTop=function(){var _=0,$=0;if(typeof window.pageYOffset!="undefined"){_=window.pageYOffset;$=window.pageXOffset}else if(typeof document.compatMode!="undefined"&&document.compatMode!="BackCompat"){_=document.documentElement.scrollTop;$=document.documentElement.scrollLeft}else if(typeof document.body!="undefined"){_=document.body.scrollTop;$=document.body.scrollLeft}return{left:$,top:_}};_gl.getDocumentViewWH=function(){var _=0,$=0;if(document.documentElement.clientWidth>0&&(_==0||document.documentElement.clientWidth<_))_=document.documentElement.clientWidth;if(document.body.clientWidth>0&&(_==0||document.body.clientWidth<_))_=document.body.clientWidth;if(document.documentElement.clientHeight>0&&($==0||document.documentElement.clientHeight<$))$=document.documentElement.clientHeight;if(document.body.clientHeight>0&&($==0||document.body.clientHeight<$))$=document.body.clientHeight;return{w:_,h:$}};_gl.getDocumentAllWH=function(){var _=0,$=0;if(document.documentElement.clientWidth>_)_=document.documentElement.clientWidth;if(document.body.clientWidth>_)_=document.body.clientWidth;if(document.documentElement.scrollWidth>_)_=document.documentElement.scrollWidth;if(document.body.scrollWidth>_)_=document.body.scrollWidth;if(document.documentElement.clientHeight>$)$=document.documentElement.clientHeight;if(document.body.clientHeight>$)$=document.body.clientHeight;if(document.documentElement.scrollHeight>$)$=document.documentElement.scrollHeight;if(document.body.scrollHeight>$)$=document.body.scrollHeight;return{w:_,h:$}};_gl.loginUser=null;_gl.chkTimes=0;_gl.isLogin=false;_gl.showMoney=_gl.getCookie("_gl_showMoney")==1;_gl.loginUrl=escape("http://www.gooooal.com/logret.html");_gl.loginUrl="http://paysys.gooooal.com/user/commerceAccount.do?method=logins&loginType=4&urlRedirect="+_gl.loginUrl;_gl.showLoginInfo=function(){_gl.loginUser=null;var _=_gl.getCookie("userId");if(_&&_.length>0){var D=_gl.getCookie("userName"),E=_gl.getCookie("sign"),B=_gl.getCookie("message"+_);if(D&&D.length>0&&E){_gl.loginUser=new Object();_gl.loginUser.userId=_;_gl.loginUser.userName=D;_gl.loginUser.newMsg=isNaN(parseInt(B))?0:parseInt(B);_gl.loginUser.userMoney=null;if(typeof(_acc)!="undefined"&&_acc.user)_gl.loginUser.userMoney=_acc.user.totalMoney}}var A=window.location.toString().indexOf("caipiao.gooooal.com")>0,C;if(_gl.loginUser==null){if(A)C="<span>";else C="<span style=\"padding-left:30px; text-align:right;\">";C+="<a href=\"javascript:_gl.showLogin();\">\u767b\u5f55</a> &nbsp;|&nbsp; <a target=\"_blank\" href=\"https://paysys.gooooal.com/user/commerceAccount.do?method=toRegister\">\u6ce8\u518c</a> &nbsp;|&nbsp; <a target=\"_blank\" href=\"https://paysys.gooooal.com/user/commerceAccount.do?method=toFindUser\">\u5fd8\u8bb0\u5bc6\u7801</a>";if(!A)C+=" &nbsp;|&nbsp; <a target=\"_blank\" href=\"http://app.gooooal.com/adviceList.do\">\u6295\u8bc9/\u5efa\u8bae</a></span>"}else{if(A)C="<span>";else C="<span style=\"padding-left:30px;\">";C+="\u6b22\u8fce\u60a8 <a href=\"https://paysys.gooooal.com/user/commerceAccount.do?method=viewForRegister\" target=\"_blank\"><b><font color=red>"+_gl.loginUser.userName+"</font></b></a>";if(_gl.loginUser.newMsg>0)C+="&nbsp;&nbsp;<a href=\"https://paysys.gooooal.com/user/myMessage.do?med=doList\" target=\"_blank\"><img src=\"http://pic.gooooal.com/userCenter/images/ico_mail_a"+(_gl.loginUser.newMsg>0?"":"2")+".gif\" align=\"absmiddle\" title=\"\u60a8\u6709"+_gl.loginUser.newMsg+"\u6761\u672a\u8bfb\u6d88\u606f\"> \u65b0\u6d88\u606f["+_gl.loginUser.newMsg+"]</a>";if(_gl.loginUser.userMoney!=null)if(_gl.showMoney)C+="&nbsp;&nbsp;\u53ef\u7528\u8d44\u91d1:"+_gl.loginUser.userMoney+"\u5143&nbsp;<input type=\"checkbox\" id=\"cb_hd_shmm\" checked onclick=\"_gl.setShowMoney();\"><label for=\"cb_hd_shmm\">\u663e\u793a</label>";else C+="&nbsp;&nbsp;\u53ef\u7528\u8d44\u91d1:****\u5143&nbsp;<input type=\"checkbox\" id=\"cb_hd_shmm\" onclick=\"_gl.setShowMoney();\"><label for=\"cb_hd_shmm\">\u663e\u793a</label>";if(A)C+="&nbsp;&nbsp;&nbsp;<a href=\"https://paysys.gooooal.com/user/commerceAccount.do?method=toAccountQuery\" target=\"_blank\">\u8d26\u6237\u67e5\u8be2</a> | <a href=\"https://paysys.gooooal.com/user/fcStake.do?med=doList\" target=\"_blank\">\u6295\u6ce8\u67e5\u8be2</a> | <a href=\"https://paysys.gooooal.com/user/fcBonus.do?med=doList\" target=\"_blank\">\u4e2d\u5956\u67e5\u8be2</a>";else C+="&nbsp;&nbsp;&nbsp;<a href=\"https://paysys.gooooal.com/user/commerceAccount.do?method=center\" target=\"_blank\">\u7528\u6237\u4e2d\u5fc3</a> | <a href=\"http://app.gooooal.com/adviceList.do\" target=\"_blank\">\u6295\u8bc9/\u5efa\u8bae</a>";C+=" | <a href=\"javascript:_gl.loginOut();\">\u9000\u51fa</a></span>"}var $=document.getElementById("li_headLg");if($)$.innerHTML=C;if(_gl.isLogin&&_gl.loginUser)_gl.cancelLogon();_gl.loginLoad()};_gl.setShowMoney=function(){_gl.showMoney=!_gl.showMoney;_gl.showLoginInfo();_gl.setCookie("_gl_showMoney",_gl.showMoney?1:0,null,"/","gooooal.com")};_gl.chkNewMsg=function(){_gl.chkTimes++;if(_gl.isLogin||_gl.chkTimes>5){var _=_gl.getCookie("userId");if((!_gl.loginUser&&_)||(_gl.loginUser&&!_))_gl.showLoginInfo();else if(_gl.loginUser&&typeof(_acc)!="undefined"&&_acc.user&&_acc.user.totalMoney!=_gl.loginUser.userMoney)_gl.showLoginInfo();else if(_gl.loginUser){var A=_gl.getCookie("message"+_),$=isNaN(parseInt(A))?0:parseInt(A);if(_gl.loginUser.newMsg!=$)_gl.showLoginInfo()}_gl.chkTimes=0}};_gl.initLogin=function(){var $;if(document.all)$="<div id=\"div_login_bk\" style=\"position:absolute; left:0px; top:0px; display:none; z-index:1002; background-color:#333333; filter:alpha(opacity=60);\"><iframe width=\"100%\" height=\"100%\" frameborder=\"0\" scrolling=\"no\" style=\"filter:alpha(opacity=10);\"></iframe></div>";else $="<div id=\"div_login_bk\" style=\"position:absolute; left:0px; top:0px; display:none; z-index:1002; background-color:#333333; opacity: 0.6;\"></div>";document.write($);$="<div id=\"div_login_ww\" style=\"position:absolute; display:none; z-index:1005; background-color:#ffffff; border:solid 1px #92ABCC;\">"+"  <div style=\"width:100%; height:24px; background-color:#d2e2ee; border-bottom: 1px solid #92ABCC;\"><div style=\"float:left; padding:1px 0 0 10px;\" id=\"div_login_ww_title\"><b>\u96ea\u7f18\u56ed\u7528\u6237\u767b\u5f55</b></div>"+"    <div style=\"float:right; padding:2px 5px 0 0;\"><label style=\"border:solid 1px #333333; padding:2px 2px 0 2px;\" onclick=\"_gl.cancelLogon();\">\u5173\u95ed</label></div></div>"+"  <iframe id=\"ifm_login_ww\" width=\"100%\" height=\"100%\" frameborder=\"0\" scrolling=\"no\"></iframe>"+"</div>";document.write($)};_gl.showLogin=function(){document.getElementById("ifm_login_ww").src=_gl.loginUrl;var $=document.getElementById("div_login_bk"),B=_gl.getDocumentAllWH();$.style.width=B.w+"px";$.style.height=B.h+"px";$.style.display="";var D=document.getElementById("div_login_ww"),A=510,C=230,_=_gl.getDocumentLeftTop();B=_gl.getDocumentViewWH();D.style.left=(_.left+(B.w-A)/2)+"px";D.style.top=(_.top+(B.h-C-50)/2)+"px";D.style.width=A+"px";D.style.height=C+"px";D.style.display="";_gl.isLogin=true};_gl.cancelLogon=function(){var _=document.getElementById("div_login_ww");if(_)_.style.display="none";var $=document.getElementById("div_login_bk");if($)$.style.display="none";_gl.isLogin=false};_gl.loginRet=function(){_gl.cancelLogon();_gl.showLoginInfo()};_gl.loginOut=function(){_gl.removeCookie("userId","/","gooooal.com");_gl.removeCookie("userName","/","gooooal.com");_gl.removeCookie("sign","/","gooooal.com");_gl.showLoginInfo()};_gl.curSel=null;_gl.defNav=null;_gl.showLang=null;_gl.lang=null;_gl.loading=false;_gl.timeHandle=null;_gl.loginTimes=0;_gl.loginLoad=function(){_gl.loginTimes++;if(typeof(loginChg)=="function")loginChg(_gl.loginTimes)};_gl.setDefNav=function(){_gl.defSel=null;if(_gl.defNav){var E=_gl.defNav.split(",");if(E.length>0){var I=document.getElementById("nav_top_menu");if(I)for(var D=0;D<I.childNodes.length;D++){var B=I.childNodes[D];if(B.tagName=="LI"&&B.getAttribute("item")==E[0]){B.id="selected";var _=document.getElementById("menu_"+E[0]);if(_)_.style.display="";if(E.length>1){var H=document.getElementById("sm_"+E[0]+"_"+E[1]);if(H)H.className="selected";if(E[1]=="odds"||E[1].indexOf("live")>=0)_gl.clientTz=true;if(E[1].indexOf("live")>=0){var F=document.getElementById("div_ad_head");if(F){var J=F.firstChild;if(F.childNodes.length==3)J=F.childNodes[1];for(D=0;D<J.childNodes.length;D++){var G=J.childNodes[D];if(G.tagName=="LI"&&G.className=="close")G.style.display="none"}}}}break}}}}if(_gl.showLang){var A=document.getElementById("menu_lang");if(A)A.style.display="";if(_gl.showLang=="2"){var $=document.getElementById("sl_lang_en");if($)$.style.display="none"}if(_gl.lang)_gl.setLang(_gl.lang)}_gl.setTimeZone();_gl.showNowTime();_gl.loading=false;if(window.location.search&&(window.location.search.indexOf("method=login")>0||window.location.search.indexOf("method=doLogin")>0)){var C=document.getElementById("li_headLg");if(C)C.innerHTML=""}else _gl.showLoginInfo();if(typeof(headOnLoad)=="function")headOnLoad()};_gl.loadHeader=function(B,_){_gl.defNav=B;if(_)_gl.showLang=_;_gl.loading=true;var A=typeof(appPath)=="undefined"?"":appPath;if(A&&A.substring(0,1)!="/")A="/"+A;$("#hd").load(A+"/common/header.html",_gl.setDefNav)};_gl.loadFooter=function(){var _=typeof(appPath)=="undefined"?"":appPath;if(_&&_.substring(0,1)!="/")_="/"+_;$("#ft").load(_+"/common/footer.html");_gl.initLogin()};_gl.nmOver=function(G){if(_gl.timeHandle){window.clearTimeout(_gl.timeHandle);_gl.timeHandle=null}var B;if(window.event)B=event.srcElement;else B=G.target;var D=null;while(B&&B.tagName!="LI"&&B.tagName!="UL")B=B.parentNode;if(B&&B.tagName=="LI")D=B.getAttribute("item");if(B&&D&&B!=_gl.curSel){_gl.curSel=B;var A=document.getElementById("menu_"+D);if(A){var E=document.getElementById("div_nv_pop");if(E)if(D!="index"){E.innerHTML="<ul>"+A.innerHTML+"</ul>";var _=0,F=0;while(B){_+=B.offsetTop;F+=B.offsetLeft;B=B.offsetParent}E.style.left=F+"px";E.style.top=(_+30)+"px";E.style.width=null;E.style.display="";if(E.offsetWidth<80)E.style.width="85px";for(var $=0;$<E.firstChild.childNodes.length;$++){var C=E.firstChild.childNodes[$];if(C.tagName=="LI"){C.onmouseover=function(){this.className="hover"};C.onmouseout=function(){this.className=""}}}}else E.style.display="none"}}};_gl.nmOut=function(A){var $;if(window.event)$=event.toElement;else $=A.relatedTarget;var _=null;while($&&$.id!="nav_top_menu"&&$.id!="div_nv_pop")$=$.parentNode;if(!$&&_gl.curSel!=_gl.defSel)_gl.timeHandle=window.setTimeout(_gl.hideMenu,500)};_gl.hideMenu=function(){var $=document.getElementById("div_nv_pop");$.style.display="none";_gl.curSel=null;_gl.timeHandle=null};_gl.getLang=function(){var $=_gl.getCookie("_gl_lang");if($=="cn"||$=="tr"||$=="en")_gl.lang=$;return _gl.lang};_gl.setLang=function(_){if(_=="cn"||_=="tr"||_=="en"){_gl.lang=_;lang=_;var $=document.getElementById("sl_lang_cn");if($)$.className=(_=="cn"?"selected":"");$=document.getElementById("sl_lang_tr");if($)$.className=(_=="tr"?"selected":"");$=document.getElementById("sl_lang_en");if($)$.className=(_=="en"?"selected":"")}};_gl.chgLang=function($){_gl.setLang($);_gl.setCookie("_gl_lang",_gl.lang,new Date((new Date()).getTime()+1000*60*60*24*300),"/","gooooal.com");if(typeof(chgLang)=="function")chgLang($)}