﻿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 E=_gl.getCookie("userName"),F=_gl.getCookie("sign"),C=_gl.getCookie("message"+_),A=_gl.getCookie("alipayUserName");if(E&&E.length>0&&F){_gl.loginUser=new Object();_gl.loginUser.userId=_;_gl.loginUser.userName=E;_gl.loginUser.newMsg=isNaN(parseInt(C))?0:parseInt(C);_gl.loginUser.userMoney=null;if(typeof(_acc)!="undefined"&&_acc.user)_gl.loginUser.userMoney=_acc.user.totalMoney;_gl.loginUser.showName=(A&&A.length>0)?A:E}}var B=window.location.toString().indexOf("caipiao.gooooal.com")>0,D;if(_gl.loginUser==null){if(B)D="<span>";else D="<span style=\"padding-left:30px; text-align:right;\">";D+="<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(B)D+=" &nbsp;|&nbsp; <a href=\"https://paysys.gooooal.com/alipay/pages/alipay/auth_authorize.jsp\"><img src=\"http://pic.gooooal.com/userCenter/images/alipay.png\" height=\"20\" title=\"\u652f\u4ed8\u5b9d\u767b\u5f55\"></a>";if(!B)D+=" &nbsp;|&nbsp; <a target=\"_blank\" href=\"http://app.gooooal.com/adviceList.do\">\u6295\u8bc9/\u5efa\u8bae</a>";D+="</span>"}else{if(B)D="<span>";else D="<span style=\"padding-left:30px;\">";D+="\u6b22\u8fce\u60a8 <a href=\"https://paysys.gooooal.com/user/commerceAccount.do?method=viewForRegister\" target=\"_blank\"><b><font color=red>"+_gl.loginUser.showName+"</font></b></a>";if(_gl.loginUser.newMsg>0)D+="&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)D+="&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 D+="&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(B)D+="&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 D+="&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>";D+=" | <a href=\"javascript:_gl.loginOut();\">\u9000\u51fa</a></span>"}var $=document.getElementById("li_headLg");if($)$.innerHTML=D;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\" name=\"ifm_login_ww\" width=\"100%\" height=\"100%\" frameborder=\"0\" scrolling=\"no\"></iframe>"+"</div>";document.write($)};_gl.showLogin=function(){if(_gl.loginUrl)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(){var $,_=["userId","userName","pageName","sign","spwd","alipayUserName","usourceId"];for($=0;$<_.length;$++)_gl.removeCookie(_[$],"/","gooooal.com");_=["auth","sid","visitedfid","onlinedetail","loginuser","activationauth","indextype"];for($=0;$<_.length;$++)_gl.removeCookie("6u8_"+_[$],"/","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(){var G=document.getElementById("hd");if(G){var P=G.innerHTML;if(P.indexOf("fulliframe")>0){G.innerHTML="reloading...";var C=typeof(appPath)=="undefined"?"":appPath;if(C&&C.substring(0,1)!="/")C="/"+C;var M=C+"/common/header.html?"+(new Date()).getTime();$("#hd").load(M,_gl.setDefNav);return}}_gl.defSel=null;if(_gl.defNav){var J=_gl.defNav.split(",");if(J.length>0){var N=document.getElementById("nav_top_menu");if(N)for(var H=0;H<N.childNodes.length;H++){var D=N.childNodes[H];if(D.tagName=="LI"&&D.getAttribute("item")==J[0]){D.id="selected";var B=document.getElementById("menu_"+J[0]);if(B)B.style.display="";if(J.length>1){var L=document.getElementById("sm_"+J[0]+"_"+J[1]);if(L)L.className="selected";if(J[1]=="odds"||J[1].indexOf("live")>=0)_gl.clientTz=true;if(J[1].indexOf("live")>=0){var K=document.getElementById("div_ad_head");if(K){var O=K.firstChild;if(K.childNodes.length==3)O=K.childNodes[1];for(H=0;H<O.childNodes.length;H++){var I=O.childNodes[H];if(I.tagName=="LI"&&I.className=="close")I.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 E=document.getElementById("li_headLg");if(E)E.innerHTML=""}else _gl.showLoginInfo();if(typeof(headOnLoad)=="function")headOnLoad();if(document.all){var F=document.getElementById("div_nv_pop");if(F){F.id="div_cc_pop";F.innerHTML="<div style=\"position:absolute; z-index:-1;\"><iframe id=\"ifm_v_pop\" scrolling=no frameborder=0></iframe></div><div id=\"div_nv_pop\"></div>"}}};_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.chkFooter);_gl.initLogin()};_gl.chkFooter=function(){var C=document.getElementById("ft");if(C){var B=C.innerHTML;if(B.indexOf("fulliframe")>0){C.innerHTML="reloading...";var _=typeof(appPath)=="undefined"?"":appPath;if(_&&_.substring(0,1)!="/")_="/"+_;var A=_+"/common/footer.html?"+(new Date()).getTime();$("#ft").load(A,_gl.chkFooter)}}};_gl.nmOver=function(J){if(_gl.timeHandle){window.clearTimeout(_gl.timeHandle);_gl.timeHandle=null}var G;if(window.event)G=event.srcElement;else G=J.target;var A=null;while(G&&G.tagName!="LI"&&G.tagName!="UL")G=G.parentNode;if(G&&G.tagName=="LI")A=G.getAttribute("item");if(G&&A&&G!=_gl.curSel){_gl.curSel=G;var $=document.getElementById("menu_"+A);if($){var I=document.getElementById("div_nv_pop"),D=document.getElementById("div_cc_pop");if(I)if(A!="index"){I.style.width=null;I.innerHTML="<ul>"+$.innerHTML+"</ul>";var _=0,C=0;while(G){_+=G.offsetTop;C+=G.offsetLeft;G=G.offsetParent}var F=D;if(!F)F=I;F.style.left=C+"px";F.style.top=(_+30)+"px";F.style.display="";if(I.offsetWidth<80)I.style.width="85px";var B=document.getElementById("ifm_v_pop");if(B){B.style.width=I.offsetWidth;B.style.height=I.offsetHeight}for(var E=0;E<I.firstChild.childNodes.length;E++){var H=I.firstChild.childNodes[E];if(H.tagName=="LI"){H.onmouseover=function(){this.className="hover"};H.onmouseout=function(){this.className=""}}}}else if(D)D.style.display="none";else I.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_cc_pop");if(!$)$=document.getElementById("div_nv_pop");if($)$.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($)}
