var host_row=window.location.hostname.split("."),char_host=host_row[host_row.length-2],cur_domain=char_host+"."+host_row[host_row.length-1],j755={dom:cur_domain,host:"www."+cur_domain,uhome:"http://www."+cur_domain+"/",upic:"http://p."+cur_domain+"/",ujs:"http://j."+cur_domain+"/",ufla:"http://f."+cur_domain+"/",ucomment:"http://comment."+cur_domain+"/",sname:char_host+"\u5c0f\u6e38\u620f"},Pub={$:function(a){return document.getElementById(a)},ohid:function(a,c){if(Pub.$(a))Pub.$(a).style.display=
c?"none":"block"},trim:function(a){return a.replace(/(^\s*)|(\s*$)/g,"")},rand:function(){return(new Date).getTime()},ajax:function(a,c){var b=document.getElementsByTagName("head")[0],d=Pub.$(a);d&&b.parentNode.removeChild(d);d=document.createElement("script");d.type="text/javascript";d.id=a;d.src=c;b.appendChild(d)},jsend:function(a){(new Image).src=a},echojs:function(a){document.write('<script type="text/javascript" src="'+a+'"><\/script>')},position:function(a){var c=document.layers?2:0,b=a,d=
0,e=0;do{if(typeof b.offsetParent=="undefined"||!b.offsetParent)break;b=b.offsetParent;e+=b.offsetLeft;d+=b.offsetTop}while(b.tagName!="BODY"&&b.tagName!="HTML");b=[];b[0]=a.offsetLeft+e;b[1]=a.offsetTop+d+a.offsetHeight+c;return b},setpos:function(a,c){if(typeof c.t!="undefined")Pub.$(a).style.top=c.t+"px";if(typeof c.l!="undefined")Pub.$(a).style.left=c.l+"px"},Switch:function(a,c,b){this.tit=[];this.fot=[];this.curcls=a;this.cls=c;this.objname=b;this.dz="onmouseover";this.action="";this.fch=function(a,
b){var c,g,h;for(c=0;c<a.tit.length;c++){g=a.cls;h=1;if(b==a.tit[c])g=a.curcls,h=0;Pub.$(a.tit[c]).className=g;Pub.ohid(a.fot[c],h)}};this.fadd=function(){for(var a=0;a<this.tit.length;a++)eval('Pub.$("'+this.tit[a]+'").'+this.dz+"=function (){"+this.objname+".fch("+this.objname+',"'+this.tit[a]+'");'+this.action+"}")}},addfavorite:function(a,c){a||(a=location.href.replace(/#.*$|\?.*$/,""));document.all?window.external.addFavorite(a,c):window.sidebar&&window.sidebar.addPanel(c,a,"")},sethomepage:function(a){document.all?
(document.body.style.behavior="url(#default#homepage)",document.body.setHomePage(a)):window.sidebar&&addfavorite(a,j755.sname)},gckie:function(a){var c="";RegExp(a+"=([^;]*)").test(document.cookie)&&(c=unescape(RegExp.$1));return c},sckie:function(a,c,b,d){var e=new Date;b||(b=31536E6);if(!d)d=j755.dom;e.setTime(e.getTime()+b);document.cookie=a+"="+escape(c)+";expires="+e.toGMTString()+";path=/;domain="+d},kwsh:"\u641c\u7d22\u5c0f\u6e38\u620f",dis_sh:function(a){a=a?a:Pub.kwsh;document.write('<form action="'+
j755.uhome+'search.php" method="get" onsubmit="return Pub.ck_sh(this)"><input name="keywords" class="in_01" value="'+a+'" type="text" onfocus="Pub.ck_kw(this)" onblur="if(Pub.trim(this.value) == \'\') this.value=Pub.kwsh"><input class="in_02" value="" type="submit"></form>')},ck_sh:function(a){Pub.ck_kw(a.keywords);if(!a.keywords.value)return alert("\u5173\u952e\u8bcd\u4e0d\u80fd\u4e3a\u7a7a"),a.keywords.focus(),!1;return!0},ck_kw:function(a){if(Pub.trim(a.value)==Pub.kwsh)a.value=""},phistory:function(){this.iid=
"mygamespan";this.cokie="gplayed";this.hnum=8;this.sep1="@_@";this.sep2="@*@";this.add=function(a,c){var b=Pub.gckie(this.cokie),d=[],e=[a+this.sep2+c],f;if(b){d=b.split(this.sep1);for(b=f=0;b<d.length;b++)if(d[b]!=e[0]&&(f++,e[f]=d[b]),f>this.hnum-2)break}Pub.sckie(this.cokie,e.join(this.sep1))};this.get=function(){var a=Pub.gckie(this.cokie),c="\u6211\u73a9\u8fc7\u7684\u6e38\u620f:",b;if(a){a=a.split(this.sep1);for(i=0;i<a.length;i++)b=a[i].split(this.sep2),c+=' <a href="'+b[0]+'" target="_blank">'+
b[1]+"</a>"}if(Pub.$(this.iid))Pub.$(this.iid).innerHTML=c}},downgame:function(){alert("\u6682\u4e0d\u652f\u6301\u4e0b\u8f7d")},tshare:function(){try{window.clipboardData.setData("Text",location.href.replace(/#.*$|\?.*$/,"")),alert("\u4f60\u5df2\u7ecf\u6210\u529f\u590d\u5236")}catch(a){alert("\u6d4f\u89c8\u5668\u62d2\u7edd\uff0c\u53ef\u4ee5\u9009\u4e2d\u5730\u5740\u680f\u70b9 ctrl + c \u590d\u5236\u54e6")}}},is_home=j755.host==location.host&&location.pathname=="/",Varmid={a:"",b:""},playre=new Pub.phistory,
obody=document.compatMode=="CSS1Compat"?document.documentElement:document.body,timer=!1,ptime=0,led=0;function fpbar(){Pub.ohid("progress",0);ptime+=300;try{led=Pub.$("gameflash_warp").PercentLoaded()}catch(a){led=100}Pub.$("loadtext").style.width=led+"%";led==100||ptime>18E4?(Pub.ohid("progress",1),clearTimeout(timer)):timer=setTimeout("fpbar()",300)}document.write("<style>.hidemt{display:none}</style>");

