/*
 * Compressed by JSA(www.xidea.org)
 */
var _is_debug=true,channel="rent",colors={rent:["#e8eef7","#79d"],th:["#E0F7D4","#9c6"]},_g=function($){return document.getElementById($)};function _ce($){$=$||"div";return document.createElement($)}function _ct($){return document.createTextNode($)}var seat={bj:"bj",hz:"hz"},fav_cname="bj_"+channel+"_fav",res_char={select_submit:["\u786e\u5b9a\u8981\u627e\u8fd9\u91cc\u7684\u623f\u5b50\u4e48\uff1f","\u786e\u5b9a\u60a8\u7684\u623f\u5b50\u5728\u8fd9\u91cc\u4e48\uff1f"],mfbox_title:"\u70b9\u51fb\u67e5\u770b\u8be5\u623f\u6e90\u7684\u8be6\u7ec6\u4fe1\u606f",pb:{caption:["\u79df\u91d1\uff1a","\u552e\u4ef7\uff1a"],price:["\u9762\u8bae","\uffe5","\u4e07"]},fav_caption:{on:"\u52a0\u5165\u5173\u6ce8",off:"\u53d6\u6d88\u5173\u6ce8"},hintTip:{error:"\u5bf9\u4e0d\u8d77\uff0c\u51fa\u9519\u4e86\uff0c\u8bf7\u7a0d\u540e\u518d\u8bd5\uff01<a href=\"http://www.woxiangyougejia.com/group/1\">\u6c47\u62a5\u60c5\u51b5</a>",loadingMsg:"<img src='/i/loading.gif' height='16' width='16' align='absmiddle'/> \u6b63\u5728\u52a0\u8f7d\u5185\u5bb9\uff0c\u8bf7\u7a0d\u5019...",submitMsg:"<img src='/i/loading.gif' height='16' width='16' align='absmiddle'/> \u6b63\u5728\u63d0\u4ea4\u5185\u5bb9\uff0c\u8bf7\u7a0d\u5019..."}},_pi=function($){return(isNaN($))?0:parseInt($)},timeid=0,query=null,w=function(){return this instanceof w?this.init():new w()};w.prototype={v:"0.2",init:function(){}};String.prototype.trim=function(){if(this.length=0)return;return this.replace(/(^\s*)|(\s*$)/g,"")};String.prototype.addTag=function($){if(isNull(this))return;return"<"+$+">"+this+"</"+$+">"};String.prototype.nl2br=function(){return this.split("\n").join("<br />\n")};String.prototype.escapeForXML=function(){return this.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")};String.prototype.len=function(){return this.replace(/[^\x00-\xff]/g,"aa").length};var trim=function($){return $.trim()};w.t=function(A){A=isNull(A)?"null":A;if((!_is_debug))return;if(arguments.length==1)wTools.hint(A);else{if(_g("_test")==null){var $=document.createElement("div"),_=document.body;if(_==null)return;_.appendChild($);$.style.cssText="position:absolute;top:2px;right:2px;border:1px #ccc solid;background:#fff;height:400px;width:400px;overflow:auto;";$.id="_test"}_g("_test").innerHTML=A+"<br/>"+_g("_test").innerHTML}};var _t=function($){w.t($)},_is_bn=function($){return(isNull($))?false:(navigator.userAgent.toLowerCase().indexOf($.toLowerCase())>-1)};function isNull($){if($==null)return true;return($.toString().trim()+"123"=="123")}function isInt($){return/^(-|\+)?\d+$/.test($)}function isArray($){return $.constructor==Array}function isMail(_){var $=/^[a-zA-Z0-9_\-\.]+@([a-zA-Z0-9_\-\.]+?)(?=\.[a-zA-Z]{2,4})(\.[a-zA-Z]{2,4}){1,2}$/;return(_.search($)>=0)}function isMobile($){return((""+$).replace(/^1[35]\d{9}$/,"")=="")}function isTel($){return((""+$).replace(/^[56789]\d{7}$/,"")=="")}function isChinese($){if($=="")return false;return($.search(/^[^\x00-\xff]+$/g)!=-1)}function ckText(_,A,$){var B="";switch(A){case 1:B=/[a-z]+/;break;case 2:B=/[A-Z]+/;break;case 3:B=/[0-9]+/;break;case 4:B=/[^\x00-\xff]+/;break;case 5:B=/[a-zA-Z]+/;break;case 6:B=/[a-z0-9]+/;break;case 7:B=/[A-Z0-9]+/;break;case 8:B=/[a-zA-Z0-9]+/;break;case 9:B=/([a-zA-Z0-9]|[^\x00-\xff])+/;break;case 10:B=/([a-zA-Z]|[^\x00-\xff])+/;break}if(typeof($)!="undefined"){var C=new RegExp("["+$+"]+","g");_=_.replace(C,"")}return(_.replace(B,"")=="")}function in_array(_,$){var $=new String($).toLowerCase(),_=new String(_).toLowerCase();return((","+_+",").indexOf(","+$+",")>-1)}function is_in_area($,B){var A=new zEvent($),D=A.x,C=A.y,_=getScroll();return(D>(findPos(B)[0]-_[0])&&D<(findPos(B)[0]+B.offsetWidth-_[0])&&C>(findPos(B)[1]-_[1])&&C<(findPos(B)[1]+B.offsetHeight-_[1]))}function findPos(_){if(_==null)return[0,0];var $=curtop=0;if(_.offsetParent){$=_.offsetLeft;curtop=_.offsetTop;while(_=_.offsetParent){$+=_.offsetLeft;curtop+=_.offsetTop}}return[$,curtop]}function rmo($){if($!=null)if($.rowIndex==undefined){$.innerHTML="";$.parentNode.removeChild($)}else $.parentNode.deleteRow($.sectionRowIndex)}var _list=function($){for(a in $)_t([$.a,$[a]],1)};function auto_hide(_,$){if(_==null)return false;if($==0){_.style.display="none";return 0}return setTimeout(function(){_.style.display="none"},$*1000)}function zEvent(_){var $=_||window.event;this.offsetX=$.layerX||$.offsetX;this.offsetY=$.layerY||$.offsetY;this.x=$.clientX||$.x;this.y=$.clientY||$.y;this.srcElement=$.target||$.srcElement;this.wheelDelta=$.detail||$.wheelDelta;this.keyCode=$.which||$.keyCode;this.o=$}function gc(A){var B=A+"=",$=document.cookie.split(";");for(var C=0;C<$.length;C++){var _=$[C];while(_.charAt(0)==" ")_=_.substring(1,_.length);if(_.indexOf(B)==0)return _.substring(B.length,_.length)}return null}function sc(A,B,_){var $="";if(_){var C=new Date();C.setTime(C.getTime()+(_*24*60*60*1000));$="; expires="+C.toGMTString()}document.cookie=A+"="+B+$+"; path=/;"}var _go=function($){var _=(arguments.length>1)?arguments[1]:window;_.location.href=$};function getScroll(){if(arguments.length>0)return[arguments[0].scrollLeft,arguments[0].scrollTop];return(document.documentElement.scrollTop>0)?[document.documentElement.scrollLeft,document.documentElement.scrollTop]:[document.body.scrollLeft,document.body.scrollTop]}function gp(C){var _=(arguments.length>1)?arguments[1]:window.location.search;if(_!=null||_!=""){_=_.replace(/^\?+/,"");var A=_.split("&"),B=A.length;if(B>0)for(var D=0;D<B;D++){var $=A[D].split("=",2);if($[0]&&$[1]&&$[0]==C)return unescape($[1])}}return null}function get_extname($){var $=new String($).toLowerCase();return(($.lastIndexOf(".")>-1)&&(($.length-1)>$.lastIndexOf(".")))?$.substring($.lastIndexOf(".")+1):false}var set_color=function(_,$){_.style.background=$},highlight=function(A,_){var $="#fff";if(isNull(_))if(!isNull(A.getAttribute("highlight")))_=A.getAttribute("highlight");if(!isNull(A.style.background))$=A.style.background;A.style.background=_;A.onblur=function(){this.style.background=$}};function setTabBG(E,F,H,D,$,G){if(_g(E)==null)return false;var C=_g(E),B=C.getElementsByTagName("tr"),A=B.length;if(A>0){var _=(typeof($)=="undefined")?0:$-1,G=(typeof(G)=="undefined")?A:G;G=(G>A||G==0)?A:(G<0?(A+G):G);for(i=_;i<G;i++){B[i].style.backgroundColor=(i%2==0)?F:H;if(typeof(D)!="undefined"&&D!=null){if(i%2==0)B[i].onmouseout=function(){this.style.backgroundColor=F};else B[i].onmouseout=function(){this.style.backgroundColor=H};B[i].onmouseover=function(){this.style.backgroundColor=D}}}}}function listDay(F,E,A,$){var _=0;F=parseInt(F);switch(parseInt(E)){case 1:case 3:case 5:case 7:case 8:case 10:case 12:_=31;break;case 4:case 6:case 9:case 11:_=30;break;case 2:_=((F%4==0&&F%100!=0)||F%400==0)?29:28;break}if(A<1)A=1;if(A>_)A=_;var D=document.getElementById($);D.innerHTML="";var C="";for(i=A;i<=_;i++){var B=document.createElement("option");B.value=i;B.text=i;D.options.add(B)}}function op_tip(C,B,D){var A=null;if(_g("op_tip_dialog_box")!=null){A=_g("op_tip_dialog_box");if(C==null){auto_hide(A,0);return false}A.style.display="block"}else{if(C==null)return false;A=document.createElement("div");document.body.appendChild(A);A.id="op_tip_dialog_box";var $=document.createElement("div");A.appendChild($);var _=document.createElement("div");A.appendChild(_)}A.style.left=(findPos(C)[0]+C.offsetWidth/2)+"px";if(D==undefined)D="center";if(B==undefined)B="";if(D=="center")A.style.left=(findPos(C)[0]+C.offsetWidth/2-A.offsetWidth/2)+"px";else if(isInt(D))A.style.left=(findPos(C)[0]+C.offsetWidth/2+D)+"px";A.style.top=(findPos(C)[1]-54)+"px";A.lastChild.innerHTML=B;C.onmouseout=function(){auto_hide(A,0)};return A}var focus_pos=function(x,y,_){try{if(x<60||x>(mw-60)||y<60||y>(mh-60))return false;var A=null;if(_g("__rect")==null){A=document.createElement("div");_.appendChild(A);A.id="__rect";A.style.cssText="position:absolute;width:120px;height:120px;border:2px solid #ff3300;display:block"}else A=_g("__rect");var st=10,w=A.offsetWidth,h=A.offsetHeight;if(w<=20||h<=20){rmo(A);return false}with(A.style){left=x-w/2-5+st+"px";top=y-h/2-10+st+"px";width=w-st+"px";height=h-st+"px"}}catch($){return false}window.setTimeout(function(){focus_pos(x,y,_)},20)};w.UI={};w.UI.box={pane:function(D,A,H,C){D=D||"";if(A==undefined)A=false;if(H==undefined)H=false;if(C==undefined)C=false;var B=document.createElement("div");if(!isNull(D))if(this.__isClassname(D))B.className=D;else B.style.cssText=D;var F={box:B,close:null,caption:null,textbody:null};if(A||H){var E=document.createElement("div");B.appendChild(E);if(H){var I=document.createElement("span");E.appendChild(I);I.className="close fr";I.innerHTML="&times;";I.title="\u70b9\u6211\u53ef\u4ee5\u5173\u95ed\u54e6";$(I).hover(function(){$(this).css("color","red")},function(){$(this).css("color","#000")});$(I).click(function(){if(B.parentNode==document.body)$(B).hide("normal");else $(B.parentNode).hide("normal")});F.close=I}var G=document.createElement("div");E.appendChild(G);G.innerHTML="&nbsp;";F.caption=G;if(C){G.onmousedown=function($){if(B.parentNode==document.body)dragit(B,$);else dragit(B.parentNode,$)};G.title="\u6309\u4f4f\u6211\u62d6\u52a8";G.style.cursor="move"}var _=document.createElement("hr");_.className="ccc clear";B.appendChild(_)}else if(C){B.onmousedown=function($){if(B.parentNode==document.body)dragit(B,$);else dragit(B.parentNode,$)};B.title="\u6309\u4f4f\u6211\u62d6\u52a8";B.style.cursor="move"}var J=document.createElement("div");B.appendChild(J);F.textbody=J;return F},rounder:function(J,I,H,D,A,G,C){J=(J==null||isNull(J)||typeof(J)=="undefined")?"rounded_":"rounded_"+J+"_";I=I||"";H=H||"";D=D||"";if(A==undefined)A=false;if(G==undefined)G=false;if(C==undefined)C=false;var _=document.createElement("table");_.width="100%";_.cellPadding=0;_.cellSpacing=0;r1=_.insertRow(0);r1.insertCell(0).className=J+"tl";r1.insertCell(1).className=J+"t";r1.insertCell(2).className=J+"tr";r2=_.insertRow(1);r21=r2.insertCell(0);r21.className=J+"l";r21.style.width="3px";r21.style.height="3px";r22=r2.insertCell(1);r23=r2.insertCell(2);r23.className=J+"r";r23.style.width="3px";r23.style.height="3px";r3=_.insertRow(2);r3.insertCell(0).className=J+"bl";r3.insertCell(1).className=J+"b";r3.insertCell(2).className=J+"br";var E=this.pane(D,A,G,C);if(E.box==null)return false;var B=E.box;r22.appendChild(B);if(!isNull(I))if(this.__isClassname(I))_.className=I;else _.style.cssText=I;if(!isNull(H))if(this.__isClassname(H))r22.className=H;else r22.style.cssText=H;if(!isNull(D))if(this.__isClassname(D))B.className=D;else B.style.cssText=D;var F={box:_,mainbox:r22,contentbox:B,caption:null,textbody:null};if(G){if(E.close!=null)$(E.close).click(function(){if(_.parentNode==document.body)$(_).hide("normal");else $(_.parentNode).hide("normal")});if(C)if(E.caption!=null)E.caption.onmousedown=function($){if(_.parentNode==document.body)dragit(_,$);else dragit(_.parentNode,$)}}else if(C)_.onmousedown=function($){if(_.parentNode==document.body)dragit(_,$);else dragit(_.parentNode,$)};F.caption=(E.caption!=null)?E.caption:null;F.textbody=(E.textbody!=null)?E.textbody:r22;return F},__isClassname:function($){if(isNull($))return false;if($.indexOf(":")>-1)return false;return true},trans:function(F,E,D,A,$,B,_){E=E||"trans rtbl";D=D||"mtd";A=A||"cb";var C=this.rounder(F,E,D,A,$,B,_);C.textbody.className="main";if(C.caption!=null)C.caption.parentNode.className="title2";return C}};w.UI.mask={__o:null,show:function(){if(this.__o==null){this.__o=document.createElement("div");document.body.appendChild(this.__o);this.__o.style.cssText="filter:Alpha(style=0,opacity=60);opacity:0.6;-moz-opacity:0.6;left:0px;top:0px;width:0px;height:0px;z-index:90000;position:absolute;background:#ccc;display:block"}var $=document.documentElement;this.__o.style.display="block";this.__o.style.width=$.clientWidth+"px";this.__o.style.height=$.clientHeight+"px";this.__o.style.top=getScroll()[1]+"px";this.__o.oncontextmenu=this.__o.onselectstart=function(){return false}},close:function(){if(this.__o!=null)$(this.__o).hide()}};w.UI.center=function(_){if(_==null)return false;var $=document.documentElement,A=(Math.floor($.clientHeight/2)-Math.floor(_.offsetHeight/2)+getScroll()[1])+"px",B=(Math.floor($.clientWidth/2)-Math.floor(_.offsetWidth/2)+getScroll()[0])+"px";_.style.position="absolute";_.style.left=B;_.style.top=A};w.UI.hint={__o:null,create:function(D,A,_,I,C){if(this.__o==null){this.__o=document.createElement("div");document.body.appendChild(this.__o);C=C||"w_alert2";this.__o.className=C}var G=this.__o;this.__o.style.top=getScroll()[1]+"px";this.__o.style.display="block";this.__o.innerHTML="";if(I===true)w.UI.mask.show();if(typeof D=="undefined")D="";var F=w.UI.box.trans("333","","","",(isNull(D)?false:true));this.__o.appendChild(F.box);if(!isNull(D)&&(F.caption!=null))F.caption.innerHTML=D;if(_==null)_="";if(isArray(_)&&_.length>0){var E=document.createElement("form");E.action="";E.method="get";F.textbody.appendChild(E);if(typeof(A)=="object")E.appendChild(A);else E.innerHTML=A;var B=document.createElement("hr");E.appendChild(B);B.className="ccc clear";$.each(_,function(A,$){var _=document.createElement("input");_.type=(A==0)?"submit":"button";_.value=$.caption;_.className="btn";E.appendChild(_);_.onclick=function(){if(typeof $.callback=="function")$.callback();w.UI.hint.close()}});E.onsubmit=function(){return false};var H=$(E).children("input[type=submit]")[0];H.focus()}else if(typeof(A)=="object")F.textbody.appendChild(A);else F.textbody.innerHTML=A;w.UI.center(this.__o);if(I===true)window.onresize=window.onscroll=function(){w.UI.mask.show();w.UI.center(G)};else window.onresize=window.onscroll=function(){w.UI.center(G)};return this.__o},close:function(){if(this.__o!=null)$(this.__o).hide();w.UI.mask.close();window.onresize=window.onscroll=new Function()}};w.setCallback=function(f,v){if(typeof(f)=="function")f(v);else if(typeof(f)=="string"){var lc=f.indexOf("("),rc=f.indexOf(")"),s="";if((lc<0)&&(rc<0))s=f+"(v)";else{var a="";a=(rc-lc<2)?"":",";var r=/\)/g;s=f.replace(r,a+"v)")}eval(s)}};var cuetimeid=0,show_cue=function(_,$){var A=_g("q"),B=_g(_);if(isNull($)||($==undefined)){if(B!=null){B.innerHTML="";B.style.display="none"}return false}if(cuetimeid>0)clearTimeout(cuetimeid);if(B!=null){B.innerHTML="";B.style.display="block"}else{B=document.createElement("div");document.body.appendChild(B);B.id=_;B.className="searchcue";B.style.cssText="z-index:1100;left:"+findPos(A)[0]+"px;top:"+(findPos(A)[1]+A.offsetHeight)+"px;width:"+(A.offsetWidth-4-2)+"px;"}B.innerHTML=$+"<iframe src='' style='position:absolute; visibility:inherit; top:0px; left:0px; width:"+(B.offsetWidth-2)+"px; height:"+(B.offsetHeight-2)+"px; z-index:-1;border:0px;' frameborder='0' scrolling='no'></iframe>";B.onmouseover=function($){if(cuetimeid>0)clearTimeout(cuetimeid);var _=new zEvent($);if(_.srcElement.tagName=="LI"){_.srcElement.style.cssText="color:#fff;background:#0099ff;cursor:default;";A.value=_.srcElement.innerHTML;_.srcElement.onmouseout=function(){this.style.cssText="background:#ffffff;color:#000000;"};_.srcElement.onclick=function(){_g("qf").submit()}}};B.onmouseout=function(){cuetimeid=auto_hide(this,3)};document.onmousedown=function($){if(!is_in_area($,B))B.style.display="none"}};function Hash(){this.length=0;this.items=new Array();for(var $=0;$<arguments.length;$+=2)if(typeof(arguments[$+1])!="undefined"){this.items[arguments[$]]=arguments[$+1];this.length++}this.removeItem=function(_){var $;if(typeof(this.items[_])!="undefined"){this.length--;$=this.items[_];delete this.items[_]}return $};this.getItem=function($){return this.items[$]};this.setItem=function(_,$){if(typeof($)!="undefined"){if(typeof(this.items[_])=="undefined")this.length++;this.items[_]=$}return $};this.hasItem=function($){return typeof(this.items[$])!="undefined"};this.keys=function(){var $=[];for(var _ in this.items)if(_!=undefined)$.push(_);return $}}var addsfav=function(_,$){if((typeof window.sidebar=="object")&&(typeof window.sidebar.addPanel=="function"))window.sidebar.addPanel($,_,"");else window.external.AddFavorite(_,$)},fav={ico:"/i/turn-off_16x16.gif",url:"add_fav.php",channel:null,obj:null,flist:null,add:function(_){var A=[];if(!isNull(this.flist)){A=this.flist.split(",");if(!in_array(A,_))A.push(_)}else A.push(_);sc(fav_cname,encodeURIComponent(A.toString()),100);$.ajax({type:"POST",url:"/"+(this.channel==null?((channel=="th")?"2h":channel):(this.channel=="th")?"2h":this.channel)+"/x/"+this.url,dataType:"html",data:"sn="+encodeURI(A.toString()),success:function(){}})},remove:function(_){if(isNull(this.flist))return;var B=[];B=this.flist.split(",");if(in_array(B,_)){var A=(","+B.toString()+",").replace(","+_+",",",");if(A==",,"||A==","){this.clear();A=""}else{if(A.indexOf(",")==0)A=A.substr(1,A.length-1);if(A.lastIndexOf(",")==(A.length-1))A=A.substr(0,A.length-1);sc(fav_cname,encodeURIComponent(A),100)}$.ajax({type:"POST",url:"/"+(this.channel==null?((channel=="th")?"2h":channel):(this.channel=="th")?"2h":this.channel)+"/x/"+this.url,dataType:"html",data:"sn="+encodeURI(A),error:function(){},success:function(){}})}},clear:function(){sc(fav_cname,"",0)},run:function(A,$,B){fav_cname="bj_"+(this.channel==null?channel:this.channel)+"_fav";this.obj=A;var _=A.src.indexOf(this.ico)>-1;if(A!=null)A.src=_?A.src.replace("off","on"):this.ico;if(typeof(B)!="undefined")if(B.innerText==res_char.fav_caption.on)B.innerText=res_char.fav_caption.off;else B.innerText=res_char.fav_caption.on;this.flist=(gc(fav_cname)!=null)?decodeURIComponent(gc(fav_cname)):"";if(_)this.add($);else this.remove($);this.addlink()},ishas:function(){this.flist=(gc(fav_cname)!=null)?decodeURIComponent(gc(fav_cname)):"";if(isNull(this.flist))return false;else return true},addlink:function(){if(_g("favlinkbox")==null)return false;if(this.ishas())_g("favlinkbox").innerHTML="<a href='/fav.php' class='red'>\u67e5\u770b\u6211\u5173\u6ce8\u7684\u4fe1\u606f</a>";else _g("favlinkbox").innerHTML=""}};function cklen(_,A){var $=_.value;if($.len()>A)op_tip(_,"\u60a8\u5199\u5f97\u592a\u591a\u4e86~~","center");else if($.len()>A-Math.ceil(A/20))op_tip(_,"\u60a8\u8fd8\u53ef\u4ee5\u8f93\u5165"+(A/2-Math.ceil($.len()/2))+"\u4e2a\u6c49\u5b57\u6216"+(A-$.len())+"\u4e2a\u5b57\u7b26","center");else op_tip(null)}function copyToCB(_){try{clipboardData.setData("Text",_);if(arguments.length>1)wTools.hint(arguments[1]);return true}catch($){return false}}var dragIndex=0;function dragit(A,_){dragIndex++;var $=new zEvent(_),B=[$.x-findPos(A)[0],$.y-findPos(A)[1]];A.style.position="absolute";A.style.left=findPos(A)[0]+"px";A.style.top=findPos(A)[1]+"px";A.style.zIndex=dragIndex;document.onmousemove=function($){var _=new zEvent($);A.style.left=(_.x-B[0])+"px";A.style.top=(_.y-B[1])+"px";return false};A.onmouseup=function(){document.onmousemove=new Function()};return false}function getAstro(A,B){var $="\u9b54\u7faf\u6c34\u74f6\u53cc\u9c7c\u7261\u7f8a\u91d1\u725b\u53cc\u5b50\u5de8\u87f9\u72ee\u5b50\u5904\u5973\u5929\u79e4\u5929\u874e\u5c04\u624b\u9b54\u7faf",_=[20,19,21,21,21,22,23,23,23,23,22,22];return $.substr(A*2-(B<_[A-1]?2:0),2)}function uploadiframe(_){if(!_)_="";var $=document.createElement("div");$.style.cssText="height:0;width:0;visibility:hidden;";document.body.appendChild($);$.innerHTML="<iframe name='forul"+_+"' width=0 height=0 frameborder=1 marginwidth=0 marginheight=0 vspace=0 hspace=0 allowtransparency=true scrolling=no></iframe>";return"forul"+_}function m_sign(H,_){if(_==0){op_tip(H,"\u8bf7\u5148\u767b\u5f55\u54e6~~","center");return false}var E=H.parentNode,G=E.innerHTML,F=H.innerHTML,B=((typeof(H.textContent)=="undefined")?H.innerText:H.textContent);E.innerHTML="";var A=document.createElement("textarea");E.appendChild(A);A.value=B.trim();A.cols=23;A.rows=5;A.id="sign_inp";var D=document.createElement("input");D.type="submit";D.value="\u4fee\u6539";E.appendChild(D);var C=document.createElement("input");C.type="button";C.value="\u53d6\u6d88";E.appendChild(C);C.onclick=function(){E.innerHTML=G};document.onkeyup=function(_){try{var $=new zEvent(_);if($.keyCode==27)E.innerHTML=G}catch(A){}};E.onsubmit=function(){if(_g("sign_inp")!=null){var C=_g("sign_inp").value;if(C.trim()!=B){if(C.trim().len()>500){op_tip(A,"\u4e0d\u884c\uff0c\u592a\u957f\uff01~~","center");return false}G=G.replace(F,C.trim().escapeForXML()+" <img src='i/edit_16x16.gif' width='16' height='16' class='vm'/>");$.ajax({type:"POST",url:"/x/user_info.php",dataType:"html",data:"ac=m&id="+_+"&sign="+encodeURIComponent(C.trim()),error:function(){},success:function(){}})}}E.innerHTML=G;document.onkeyup=new Function();return false}}function m_nick(H,_){if(_==0){op_tip(H,"\u8bf7\u5148\u767b\u5f55\u54e6~~","center");return false}var E=H.parentNode,G=E.innerHTML,F=H.innerHTML,B=((typeof(H.textContent)=="undefined")?H.innerText:H.textContent);E.innerHTML="";var A=document.createElement("input");E.appendChild(A);A.value=B.trim();A.size=20;A.id="nick_inp";var D=document.createElement("input");D.type="submit";D.value="\u4fee\u6539";E.appendChild(D);var C=document.createElement("input");C.type="button";C.value="\u53d6\u6d88";E.appendChild(C);C.onclick=function(){E.innerHTML=G};document.onkeyup=function(_){try{var $=new zEvent(_);if($.keyCode==27)E.innerHTML=G}catch(A){}};E.onsubmit=function(){if(_g("nick_inp")!=null){var C=_g("nick_inp").value;if(C.trim()!=B){if(C.trim().len()==0){op_tip(A,"\u4e0d\u884c\uff0c\u5fc5\u987b\u5f97\u6709\u6635\u79f0\u54e6\uff01","center");return false}if(C.trim().len()>50){op_tip(A,"\u4e0d\u884c\uff0c\u592a\u957f\uff01~~","center");return false}G=G.replace(F,C.trim().escapeForXML()+" <img src='i/edit_16x16.gif' width='16' height='16' class='vm'/>");$.ajax({type:"POST",url:"/x/user_info.php",dataType:"html",data:"ac=m_nick&id="+_+"&nick="+encodeURIComponent(C.trim()),error:function(){},success:function(){}})}}E.innerHTML=G;document.onkeyup=new Function();return false};A.focus()}w.msg={getNum:function(){$.ajax({url:"/x/user_msg.php",type:"POST",data:"ac=getXiaoZhiTiaoNUM&channel=group",dataType:"html",timeout:20000,error:function(){},success:function($){w.msg.setNum($)}})},check:function($){this.getNum();if(typeof $=="undefined")$=5*60;setInterval(this.getNum,$*1000)},setNum:function(_){var A=_g("xiaozhitiaoNUM");if(_=="nologin"){A.innerHTML="";return false}var $=_.split(",");if($[0]=="ok")if($[1]=="0")A.innerHTML="";else A.innerHTML="("+$[1]+")"}};var chuo_time=new Date(),chuo_i=0;function chuo(B,_,A){if(lu<1){wTools.hint("\u60a8\u8fd8\u6ca1\u6709\u767b\u5f55\u54e6\u3002\u8bf7\u5148\u767b\u5f55\u5566~:)","",1,"/i/attention3_16x16.gif");return false}if(chuo_i==0)chuo_time=new Date();chuo_i=chuo_i+1;if(chuo_i>20){var C=new Date();if((C.getTime()-chuo_time.getTime())<60*1000){wTools.hint("\u6ca1\u6233\u5230\u5416!<br><br>\u6233\u6233\u76f8\u62a5\u4f55\u65f6\u4e86\uff5e\uff5e\uff5e<br><br>\u65bd\u4e3b\u60a8\u6162\u4e9b\u6233\u2026\u2026");return false}else chuo_i=0}if(A==2)wTools.hint("\u6b63\u5728\u6c42\u6233\uff0c\u8bf7\u7a0d\u5019...","",0,"/i/loading.gif");else wTools.hint("\u6b63\u5728\u6233\uff0c\u8bf7\u7a0d\u5019...","",0,"/i/loading.gif");$.ajax({type:"POST",url:"/x/chuo.php",dataType:"html",data:"ac=chuo&id="+_+"&t="+A,error:function(){},success:re_chuo});return false}function re_chuo(_){if(_=="timeout"){wTools.hint("\u8d85\u65f6\u5566\uff0c\u8bf7\u91cd\u6233~~~","",1,"/i/attention3_16x16.gif");return false}if(_=="nologin"){wTools.hint("\u60a8\u8fd8\u6ca1\u6709\u767b\u5f55\u54e6\u3002\u8bf7\u5148\u767b\u5f55","",1,"/i/attention3_16x16.gif");return false}var $=_.split(",");if($[0]=="ok"){if($[1]==1)wTools.hint("<br>\u6233\u5230\u4e86\uff0c\u54c8\u54c8","",1,"/i/chuodaole.gif");else wTools.hint("<br>\u6c42\u6233\u4fe1\u53f7\u5df2\u53d1\u51fa\uff0c\u563f\u563f","",1,"/i/qiuchuo.gif")}else wTools.hint("\u989d\uff0c\u6ca1\u6233\u5230\uff0c\u7cfb\u7edf\u95ee\u9898\uff0c\u627e\u7ba1\u7406\u5458\u95ee\u95ee\u53bb<br><br>"+_,"",1,"/i/attention3_16x16.gif")}var wTools={};wTools.hint=function(H,F,E,D,C,G){var H=H||"",I=D||"";if(F==undefined)F="";C=C||"w_alert2";if(typeof G=="undefined")G=true;if(E==undefined)E=1;var B=document.createElement("div");if(I!=""){var _=document.createElement("img");B.appendChild(_);_.src=I}else B.style.cssText="padding:4px 0 18px;";B.innerHTML+=H;if(F==undefined)F="";var A=[];if(E==1)if(F!="")A.push({caption:" \u786e\u5b9a ",callback:function(){w.setCallback(F,1)}},{caption:" \u53d6\u6d88 ",callback:function(){w.setCallback(F,0)}});else A.push({caption:" \u5173\u95ed "});var $=w.UI.hint.create("",B,A,G,C);return $};wTools.hint.close=function(){w.UI.hint.close()};function rmo_time(B,_,A){var $=Array("0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f");if(A==16)rmo(B);else{B.style.color="#"+$[A]+$[A]+$[A];setTimeout(function(){rmo_time(B,_,A+1)},_)}}function fill_distance(A,C,_){if(typeof(A[1])=="number"&&typeof(A[2])=="number"){var $="",B=null;for(i=0;i<C.length;i++){$="";if(C[i][0]!=A[0])$=Map2s.getDistance(A[1],A[2],C[i][1],C[i][2]);if($!=false)for(j=0;j<_.length;j++){B=_g(_[j]+C[i][0]);if(B!=null){B.innerHTML=$;B.style.display="block"}}}}}function newvalid($){_g($).src="/valid_code.php?t="+Math.random()}function WPoint(_,$){this.x=_;this.y=$;this.toStr=function(){return[this.x,this.y].toString()}}
