var _aBaseHost=["http://qz.gota.richmap.cn/Wing"];var em="\u627e\u4e0d\u5230\u5730\u56fe\u5bb9\u5668!";var en="\u5730\u56fe\u8fd8\u672a\u521d\u59cb\u5316";var eo="\u521b\u5efa\u5bb9\u5668\u7684\u65f6\u5019\u51fa\u73b0\u9519\u8bef,\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458!";var ep="\u91cd\u7f6e\u5730\u56fe\u5927\u5c0f\u65f6\u4f20\u5165\u4e86\u975e\u6cd5\u6570\u503c";var eq="\u6e05\u9664\u4e00\u4e2a\u975e\u6cd5\u5143\u7d20\u6216\u4e0d\u5b58\u5728\u7684\u5bf9\u8c61";var er="\u6dfb\u52a0\u5143\u7d20\u5931\u8d25\uff0c\u786e\u8ba4\u60a8\u6dfb\u52a0\u5143\u7d20\u662f\u5426\u89c4\u8303";var es="\u663e\u793a\u5143\u7d20\u5931\u8d25\uff0c\u4f20\u5165\u7684\u662f\u4e00\u4e2a\u975e\u6cd5\u5bf9\u8c61";var et="\u8fde\u63a5\u670d\u52a1\u5931\u8d25";var eD="\u9f20\u6807\u79fb\u52a8\u5230\u5730\u56fe\u4e0a\u70b9\u51fb\u6216\u6846\u9009\u653e\u5927\u5730\u56fe";var eE="\u9f20\u6807\u79fb\u52a8\u5230\u5730\u56fe\u4e0a\u70b9\u51fb\u6216\u6846\u9009\u7f29\u5c0f\u5730\u56fe";var eF="\u4f7f\u7528\u9f20\u6807\u6765\u62d6\u52a8\u5730\u56fe";var eG="\u4f7f\u7528\u9f20\u6807\u70b9\u51fb\u4e24\u70b9\u6d4b\u7b97\u8ddd\u79bb";var fn="\u9f20\u6807\u52fe\u753b\u591a\u8fb9\u5f62\u6765\u6d4b\u7b97\u9762\u79ef";var eH="\u4f7f\u7528\u9f20\u6807\u5de6\u952e\u70b9\u51fb\u5730\u56fe\u8fdb\u884c\u6807\u70b9";var fd="\u4f7f\u7528\u9f20\u6807\u5728\u5730\u56fe\u4e0a\u62c9\u6846\u9009\u62e9";var eJ="\u8fdb\u884c\u672c\u5730\u751f\u6d3b\u641c\u7d22";var eK="\u5730\u56fe\u5feb\u901f\u5230\u6307\u5b9a\u57ce\u5e02";var eN="\u5411\u5de6\u79fb\u52a8";var eO="\u5411\u53f3\u79fb\u52a8";var eP="\u5411\u4e0a\u79fb\u52a8";var eQ="\u5411\u4e0b\u79fb\u52a8";var eR="\u91cd\u7f6e\u5730\u56fe";var jR="\u5173\u95ed\u7a97\u53e3";var eS="\u70b9\u51fb\u8fd9\u91cc\u6765\u653e\u5927\u6216\u7f29\u5c0f\u5730\u56fe";var eT="\u62d6\u52a8\u6211\u6765\u653e\u5927\u6216\u7f29\u5c0f\u5730\u56fe";var eL="\u9f20\u6807\u6807\u70b9\u52fe\u753b\u591a\u8fb9\u5f62";var eM="\u9f20\u6807\u6807\u70b9\u52fe\u753b\u5706\u5f62";var eU="left";var eV=true;var eW=true;var eX=true;var eY=true;var eZ=true;var fa=true;var fp=false;var fb=true;var fe=false;var fc=true;var fm=false;var ff=false;var fl=false;var fk=false;var fj=false;var fi=true;var fh=true;var fg=true;var fG=[];function RWing(nu){this.fq=false;this.bb=false;this.m_bScrollMoveable=false;this.fI=false;this.bc=nu;this.bd=null;this.be=null;this.bf=null;this.bg=null;this.fJ=[];this.bj=null;this.ml=null;this.kx=null;this.kw=null;this.kv=null;this.kp=null;this.fP=null;this.fQ=null;this.kj=null;this.kW=null;this.kX=null;this.ki=null;this.bq=null;this.fR=null;this.kk=null;this.kn=null;this.br=null;this.ko=null;this.bqBar=null;this.bu=null;this.bv=null;this.bw=null;this.bA=null;this.bB=null;this.bD=null;this.kr=null;this.kq=null;this.kt=null;this.ks=null;this.ku=null;this.bE=null;this.bF=null;this.bG=null;this.bH=null;this.fr=null;this.bI=null;this.fS=null;this.bW=null;this.bY=null;this.bZ=null;this.bJ=0;this.bL=["move","zoomin","zoomout","survey","mark","rectselect","search","area","polygon","oval"];this.bM=["pointer","all-scroll","all-scroll","crosshair","crosshair","all-scroll","","crosshair","crosshair","crosshair"];this.bN=["Move","ZoomIn","ZoomOut","Survey","Mark","RectSelect","Search","Area","Polygon","Oval"];this.ca=["","\u9f20\u6807\u70b9\u51fb\u6216\u62c9\u6846\u653e\u5927\u5730\u56fe","\u9f20\u6807\u70b9\u51fb\u6216\u62c9\u6846\u7f29\u5c0f\u5730\u56fe","\u70b9\u51fb\u63cf\u70b9\u6d4b\u8ddd \u53f3\u952e\u7ed3\u675f","\u5de6\u952e\u70b9\u51fb\u5177\u4f53\u4f4d\u7f6e","\u9f20\u6807\u62c9\u52a8\u6765\u9009\u62e9\u5730\u56fe\u533a\u57df","","\u5de6\u952e\u70b9\u51fb\u60a8\u7684\u4f4d\u7f6e","\u9f20\u6807\u63cf\u70b9\u52fe\u753b\u591a\u8fb9\u5f62","\u9f20\u6807\u63cf\u70b9\u52fe\u753b\u5706\u5f62"];this.mn=["","\u9f20\u6807\u70b9\u51fb\u6216\u62c9\u6846\u653e\u5927\u5730\u56fe","\u9f20\u6807\u70b9\u51fb\u6216\u62c9\u6846\u7f29\u5c0f\u5730\u56fe","\u70b9\u51fb\u63cf\u70b9\u6d4b\u8ddd \u53f3\u952e\u7ed3\u675f","\u5de6\u952e\u70b9\u51fb\u5177\u4f53\u4f4d\u7f6e","\u9f20\u6807\u62c9\u52a8\u6765\u9009\u62e9\u5730\u56fe\u533a\u57df","","\u5de6\u952e\u70b9\u51fb\u60a8\u7684\u4f4d\u7f6e","\u9f20\u6807\u63cf\u70b9\u52fe\u753b\u591a\u8fb9\u5f62","\u9f20\u6807\u63cf\u70b9\u52fe\u753b\u5706\u5f62"];this.bO=null;this.bP=null;this.bQ=null;this.bR=null;this.bS=null;this.bT=null;this.bU=null;this.bV=null;this.cl=null;this.cm=0;this.cn=0;this.cp=0;this.cq=0;this.cb=14;this.cc=1;this.cd=5;this.ce=8;this.cu=25;this.cv=20;this.cw=50;this.cx=50;this.cf=10;this.cg=19;this.cA=17;this.cB=17;this.bx=52;this.by=21;this.bz=0;this.cC=25.794;this.cD=2;this.cE=256;this.cF=256;this.cG=0;this.cH=2048;this.cI=1024;this.cJ=256;this.cK=256;this.cL=[409600,204800,102400,51200,25600,12800,6400,3200,1600,800,400,200,100,50,25,12.5];this.cM=[10272048,5136024,2568012,1284006,642003,321001,160500,80250,40125,20062,10031,5015,2507,1253,626,313];this.cN=["onclick","ondblclick","onmousedown","onmouseup","onmousemove","onmouseout","onmouseover","onkeydown","onkeyup","oncontextmenu","onblur","onfocus","onmousewheel"];this.cO=4577445.8;this.cP=925703.44;this.cQ=3;this.cR=17;this.cS=17;this.cT=0;this.bk=0;this.cY="basemap.png";this.cZ=[];this.da=[];this.kY=[];this.kZ=[];this.de=[];this.df=[];this.dg=[];this.dh=[];this.di=[];this.dk=[];this.dj=[];this.dl=[];this.bl=[];this.dm="<font color=\'#0071BD\'>\u730e\u56fe</font> Rich<font color=\'#C72307\'>m</font><font color=\'#E4AE06\'>a</font><font color=\'#37AB3C\'>p</font> &copy; 2010";this.ch=_aBaseHost;this.fs=[];this.ci=-1;this.dq="/";this.kl="richmap4/";this.km=0;this.dr="/";this.ds="/images/";this.dt=["map?act=getmap","layer","l","b","r","t","stop"];this.fN=null;this.fL=true;this.ky=null;this.kz=null;this.kA=null;this.kB=null;this.kC=null;this.kD=null;this.jS=100;this.jT=600;this.jU=100;this.jV=600;this.jW=200;this.jX=200;this.jY=19;this.jZ=19;this.ka=25;this.kb=32;this.kc=226;this.kd=81;this.kf=30;this.kg=81;this.kh=40;this.kP=null;this.kU=null;this.kUContent=null;this.kG=0;this.kH=0;this.kI=0;this.kJ=0;this.kK=0;this.kL="";this.kM="";this.kN=false;this.fT=false;this.fU="api/stopbg.png";this.fV=28;this.fW=20;this.fX=10;this.fY=28;this.fZ=[];this.ga=[];this.gb=[];this.gc=120;this.gd=12;this.ge=null;this.gf=null;this.gg="solid 1px #E4AE06";this.iV="#E4AE06";this.iW="red";this.iX=0;this.iY=0;this.iZ=null;this.mffShowOrHide=true;this.jb=150;this.jc=120;this.jd=10;this.je=null;this.jf=null;this.jg=null;this.jh=null;this.ji=null;this.jj=0;this.jk=0;this.jl=null;this.jm=19;this.jn=19;this.jo="#cccccc";this.jp=0;this.jq=0;this.jr=0;this.mffIsInit=false;this.jt=4;this.ju=[];this.jv=[];this.jw=null;this.jx=[];this.jy=0;this.jz=[];this.jA=[];this.jB=[];this.jzIndex=[];this.jD=0;this.mffMoveable=false;this.gi=120;this.gj=22;this.gk=[];this.gl=[["\u5168\u56fd","country",1],["\u7701","province",5],["\u57ce\u5e02","city",9],["\u533a/\u9547","county",12],["\u8857\u9053","street",14]];this.gm=null;this.gn=[[-2,-2,35,20],[-2,-23,59,35],[-2,-60,83,47],[-2,-108,102,65],[-2,-175,120,82]];this.gp=[[-126,-10,113,77],[-148,-89,91,57],[-163,-150,76,42],[-180,-196,59,33],[-196,-232,43,21]];this.gs=0;this.gr=false;this.mo=null;this.mp=false;this.mq=false;this.mr=null;this.ms=null;this.mpLayer=12;this.mu=null;this.mP=null;this.mQ=null;this.mE=false;this.mF=true;this.mh=["EN","FJ","HN","SC","SD","SH","CQ","GD"];this.mi=["http://125.77.117.1:1235/cn_en/","http://qz.gota.richmap.cn/raster/","http://maps.reachmap.com/rasterhn/","http://125.77.117.1:1235/cn_sc/","http://125.77.117.1:1235/cn_sd/","http://125.77.117.1:1235/cn_sh/","http://125.77.117.1:86/cn_cq/","http://125.77.117.1:86/cn_gd/"];this.mj=0;this.lQ=[[],[],[],[],[],[],[],[]];this.mk=5120;this.lR=256;this.lS=0;this.mR=[[3690783,401214.4,4319412.3,-97396], [4240132,1179165.9,4699558,708399.6], [3516971.002,1722993.299,3763637.002,1522993.299], [2390924.9,934893.5,3508727.3,108382.5], [4135078.002,101001.399,4925306.102,-281689.401], [4740476.702,474003.4,4856176.502,352714.8], [3184025.602,723247.6,3674347.002,318455.9],[3621441.702,1516751.3,4374285.202,987795.899]];this.lX='0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ';eval("this.lO=window.location.href;");this.isInit=function(){if(this.fq){return true;}else{this.onerror(en);return false;}};this.getDataSource=function(){return this.ch[this.ci];};this.showEagle=function(nv){ff=nv?true:false;};this.showEagleMax=function(nw){this.mffShowOrHide=nw?true:false;};this.showStop=function(nx){this.fT=nx?true:false;if(!this.fT){this.jN();}else{this.dB(true);}};this.showScrollBar=function(ny){eW=ny?true:false;};this.showDirection=function(nz){eV=nz?true:false;};this.showScrollBarPosition=function(nA){eU=nA=="right"?"right":"left";};this.showZoomInBtn=function(nB){eX=nB?true:false;};this.showZoomOutBtn=function(nC){eY=nC?true:false;};this.showDragBtn=function(nD){eZ=nD?true:false;};this.showSurveyBtn=function(nE){fa=nE?true:false;};this.showMarkBtn=function(nF){fb=nF?true:false;};this.showPolygonBtn=function(nG){fk=nG?true:false;};this.showOvalBtn=function(nH){fj=nH?true:false;};this.setRectSelect=function(nI){fe=nI?true:false;};this.showResetMapBtn=function(nJ){fc=nJ?true:false;};this.addButton=function(nK){if(!nK || !nK.sType)return;if(nK.sType !="wingbutton")return;this.bl.push([nK,null,false]);this.mn[this.bl.length-1+20]=nK.sCursorMsg;return this.bl.length-1;};this.setStateMsg=function(nL,nM){try{this.ca[nL]=nM;}catch(e){};};this.setCursorMsg=function(nN,nO){try{this.mn[nN]=nO;}catch(e){};};this.showMapMenu=function(nP){fi=nP?true:false;};this.showSearchBtn=function(nQ){fm=nQ?true:false;};this.showMouseWheel=function(nR){fh=nR?true:false;};this.showDblClick=function(nS){fg=nS?true:false;};this.getMapToolLeft=function(){return this.bz;};this.getMapToolContainer=function(){return this.bqBar;};this.setDefaultMap=function(nT){this.mE=nT?true:false;};this.setUserContainer=function(nU,nV){if(nU==null || isNaN(nU))return;nV=nV==null?true:nV;if(nV){this.bk=nU;}else{this.mm=nU;}};this.getUserContainer=function(nW,nX){if(nW==null)nW=0;nX=nX==null?true:nX;if(nX){return this.bj.childNodes[nW];}else{return this.ml.childNodes[nW];}};this.setUserPoiConfig=function(nY){this.mo=nY;if(typeof(nY.userkey)=="string"){this.mp=true;}};this.mpManage=function(){if(this.mq==false)this.mx();this.mu.style.display="";this.mQ.innerHTML="<font color=#888888>\u4e1a\u52a1\u6570\u636e\u7ba1\u7406\uff1a\u9700\u8981\u6ce8\u610f\uff0c\u5982\u679c\u60f3\u5220\u9664\u539f\u6709\u6570\u636e\uff0c\u8bf7\u5148\u67e5\u8be2\uff0c\u67e5\u8be2\u5b57\u7b26\u53ef\u4ee5\u4e3a\u7a7a\uff0c\u8868\u793a\u67e5\u8be2\u6240\u6709\u6570\u636e\uff1b\u65b0\u589e\u6570\u636e\u65f6\u5c3d\u91cf\u4f7f\u7528\u8f83\u77ed\u7684\u540d\u5b57\uff0c\u8fd9\u6837\u663e\u793a\u5728\u5730\u56fe\u4e0a\u6548\u679c\u4f1a\u66f4\u597d\u3002</font>";};this.mw=function(){this.mu.style.display="none";};this.mx=function(){with(this.mu.style){border="solid 1px #0070A6";backgroundColor="white";width="350px";height="250px";};this.mu.innerHTML="<div style=\'width:100%;height:25px;background-color:#0070A6;text-align:right;padding:2px;color:white;\'><img src=\'"+this.ch[this.ci]+this.ds+"toolbar/close_white.gif\' onclick=\'fG["+this.iv+"].mw();\' style=\'cursor:pointer\'></div>";this.mP=this.ed(0,8,30,334,35,1,true);this.mP.innerHTML="<table style=\'padding:0px;border:0px;margin:0px;width:0px;height:0px;\'><tr><td>\u5173\u952e\u5b57\uff1a</td><td><input type=text style=\'border:solid 1px #555555;width:120px;\' id=\'_wing_user_poi_keyword_"+this.iv+"\'></td><td>&nbsp;<img src=\'"+this.ch[this.ci]+this.ds+"toolbar/search.jpg\' onclick=\'fG["+this.iv+"].my(null,1);\'><img src=\'"+this.ch[this.ci]+this.ds+"toolbar/add.jpg\' onclick=\'fG["+this.iv+"].mB();\'></td></tr></table>";this.mu.appendChild(this.mP);this.mQ=this.ed(0,8,70,334,205,1,true);with(this.mQ.style){lineHeight="22px";borderTop="solid 1px #999999";paddingTop="3px";}this.mu.appendChild(this.mQ);this.mq=true;};this.my=function(nZ,oa){if(nZ !=null){if(nZ.re==0){this.mQ.innerHTML="\u6ca1\u6709\u67e5\u8be2\u5230\u6570\u636e\uff01";}else{this.mr=nZ;var ob="";for(var oc=0;oc<nZ.data.length;oc++){ob+="<div style=\'height:22px;width:330px;\'><span style=\'color:blue;text-decoration:underline;cursor:pointer;\' onclick=\'fG["+this.iv+"].mD(null,\""+nZ.data[oc].key+"\");\'\">\u5220\u9664</span>&nbsp;&nbsp;<span style=\'width:280px;padding:1px;border-bottom:dotted 1px #eeeeee;font-size:12px;color:#000000;cursor:pointer;\' onmouseover=\"this.style.backgroundColor=\'#eeeeee\'\" onmouseout=\"this.style.backgroundColor=\'\'\" onclick=\"fG["+this.iv+"].mA("+oc+");\">"+((nZ.pageNo-1)*10+(oc+1))+"\u3001"+nZ.data[oc].name+"</span></div>";}var od=nZ.pageCount;var oe="font-size:9pt;color:#555555;";var of="font-size:9pt;cursor:pointer;color:blue;";var oh=nZ.pageNo==1?"<span style=\'"+oe+"\'>\u9996\u9875</span>":"<span style=\'"+of+"\' onclick=\"fG["+this.iv+"].my(null,1)\">\u9996\u9875</span>";var oi=nZ.pageNo==od?"<span style=\'"+oe+"\'>\u4e0b\u4e00\u9875</span>":"<span onclick=\"fG["+this.iv+"].my(null,"+(nZ.pageNo*1+1)+")\" style=\'"+of+"\'>\u4e0b\u4e00\u9875</span>";var oj=nZ.pageNo==1?"<span style=\'"+oe+"\'>\u4e0a\u4e00\u9875</span>":"<span onclick=\"fG["+this.iv+"].my(null,"+(nZ.pageNo*1-1)+")\" style=\'"+of+"\'>\u4e0a\u4e00\u9875</span>";var ok=nZ.pageNo==od?"<span style=\'"+oe+"\'>\u672b\u9875</span>":"<span onclick=\"fG["+this.iv+"].my(null,"+od+")\" style=\'"+of+"\'>\u672b\u9875</span>";var ol="<div>"+oh+" "+oj+" \u5171"+od+"/"+nZ.pageNo+"\u9875 "+oi+" "+ok+"</div>";this.mQ.innerHTML=ob+ol;}}else{var om=this.hI("_wing_user_poi_keyword_"+this.iv).value;this.mO();var on=new rWingUrl(this.ch[this.ci]+this.dq+"map?act=queryUserpoi");on.addParam("userKey",this.mo.userkey);on.addParam("run","fG["+this.iv+"].my");on.addParam("count",5);on.addParam("pageno",oa);on.addParam("arg",this.ea());on.addParam("name",om);on.addParam("req",Math.random());this.ms.src=encodeURI(on.sUrl);}};this.mpByMBR=function(oo,oq,ot,ou,ov,ox){if(oo !=null){if(oo.re==0)return;for(var oy=0;oy<oo.data.length;oy++){this.jL(oo.data[oy].key,oo.data[oy].name,oo.data[oy].x,oo.data[oy].y,oo.arg);}}else{this.mO();var oz=new rWingUrl(this.ch[this.ci]+this.dq+"map?act=queryUserpoi");oz.addParam("userKey",this.mo.userkey);oz.addParam("run","fG["+this.iv+"].mpByMBR");oz.addParam("count",50);oz.addParam("arg",ox);oz.addParam("l",oq);oz.addParam("b",ot);oz.addParam("r",ou);oz.addParam("t",ov);oz.addParam("req",Math.random());this.ms.src=oz.sUrl;}};this.mA=function(oA){this.zoomTo(13,this.mr.data[oA].x,this.mr.data[oA].y);};this.mB=function(){this.mQ.innerHTML="\u540d\u79f0\uff1a<input type=text id=\'_wing_user_poi_name_"+this.iv+"\' style=\'border:solid 1px #555555;width:200px;\'><br>\u5730\u5740\uff1a<input type=text id=\'_wing_user_poi_add_"+this.iv+"\' style=\'border:solid 1px #555555;width:200px;\'><br>\u5907\u6ce8\uff1a<input type=text id=\'_wing_user_poi_disc_"+this.iv+"\' style=\'border:solid 1px #555555;width:200px;\'><input type=hidden id=\'_wing_user_poi_x_"+this.iv+"\'><input type=hidden id=\'_wing_user_poi_y_"+this.iv+"\'><input type=hidden id=\'_wing_user_poi_adduser_"+this.iv+"\' value=\'"+this.mo.user+"\'><br>\u6807\u6ce8\u4f4d\u7f6e\uff1a<span id=\'_wing_user_poi_xy_"+this.iv+"\'><font color=red>\u5426</font></span> <span style=\'color:blue;text-decoration:underline;cursor:pointer;\' onclick=\'fG["+this.iv+"].mH();\'>\u70b9\u51fb\u8fd9\u91cc\u5230\u5730\u56fe\u4e0a\u6807\u6ce8\u4f4d\u7f6e</span><br><img src=\'"+this.ch[this.ci]+this.ds+"toolbar/save.jpg\' onclick=\'fG["+this.iv+"].mC();\'>";};this.mC=function(oB){var oC=this.hI("_wing_user_poi_x_"+this.iv).value;var oD=this.hI("_wing_user_poi_y_"+this.iv).value;if(oB !=null){if(oB.re==0){alert("\u4fdd\u5b58\u5931\u8d25");}else{alert("\u65b0\u589e\u6210\u529f");this.mB();}return;}var oE=this.hI("_wing_user_poi_name_"+this.iv);var oF=this.hI("_wing_user_poi_add_"+this.iv).value;var oG=this.hI("_wing_user_poi_disc_"+this.iv).value;var oH=this.hI("_wing_user_poi_adduser_"+this.iv).value;if(oE.value==""){alert("\u8bf7\u8f93\u5165\u540d\u79f0");oE.focus();return;}if(oC==""){alert("\u8bf7\u8fdb\u884c\u6807\u70b9");return;}this.mO();var oI=new rWingUrl(this.ch[this.ci]+this.dq+"map?act=addUserpoi");oI.addParam("userKey",this.mo.userkey);oI.addParam("run","fG["+this.iv+"].mC");oI.addParam("name",oE.value);oI.addParam("address",oF);oI.addParam("disc",oG);oI.addParam("x",oC);oI.addParam("y",oD);oI.addParam("adduser",oH);oI.addParam("req",this.ea());this.ms.src=encodeURI(oI.sUrl);};this.mD=function(oJ,oK){if(oJ !=null){if(oJ.re==1){alert("\u5220\u9664\u6210\u529f");this.my(null,1);}else{alert("\u64cd\u4f5c\u5931\u8d25\u6216\u6570\u636e\u4e0d\u5b58\u5728\uff01");}}else{if(oK==null || oK=="")return;if(!confirm("\u60a8\u786e\u5b9a\u5220\u9664\u8be5\u6570\u636e\uff1f"))return;this.mO();var oL=new rWingUrl(this.ch[this.ci]+this.dq+"map?act=delUserpoi");oL.addParam("key",oK);oL.addParam("run","fG["+this.iv+"].mD");oL.addParam("req",this.ea());this.ms.src=encodeURI(oL.sUrl);}};this.mO=function(){if(this.ms !=null){document.body.removeChild(this.ms);this.ms=null;}this.ms=document.createElement("script");document.body.appendChild(this.ms);};this.mG="";this.mH=function(){this.mG=this.dL["onmark"];this.setState(4);this.dL["onmark"]="fG["+this.iv+"].mHReturn";};this.mHReturn=function(oM,oN){this.hI('_wing_user_poi_x_'+this.iv).value=oM;this.hI('_wing_user_poi_y_'+this.iv).value=oN;this.hI('_wing_user_poi_xy_'+this.iv).innerHTML="<font color=green>\u662f</font>";this.setState(0);this.dL["onmark"]=this.mG;};this.ft=function(){this.closeMenu();return;};this.lL=function(){if(!this.bc){this.onfailure(em);return false;}this.bc.innerHTML="";if(!this.dz(parseInt(this.bc.offsetWidth),parseInt(this.bc.offsetHeight)))return false;this.cp=this.getWidth();this.cq=this.getHeight();if(fi){this.addMenu("\u62d6\u52a8","\u62d6\u52a8\u5730\u56fe","fG["+this.iv+"].setState(0);fG["+this.iv+"].ft");this.addMenu("\u653e\u5927","\u653e\u5927\u5f53\u524d\u5730\u56fe","fG["+this.iv+"].setState(1);fG["+this.iv+"].ft");this.addMenu("\u7f29\u5c0f","\u7f29\u5c0f\u5f53\u524d\u5730\u56fe","fG["+this.iv+"].setState(2);fG["+this.iv+"].ft");this.addMenu("\u6d4b\u8ddd","\u5730\u56fe\u4e0a\u4e24\u70b9\u95f4\u8ddd","fG["+this.iv+"].setState(3);fG["+this.iv+"].ft");this.addMenu("\u5c45\u4e2d","\u5c45\u4e2d\u5730\u56fe","fG["+this.iv+"].setCenter();fG["+this.iv+"].ft");if(this.mp){this.addMenu("\u7ba1\u7406\u6570\u636e","\u4e1a\u52a1\u6570\u636e\u7ba1\u7406","fG["+this.iv+"].mpManage();fG["+this.iv+"].ft");}if(this.mE){this.addMenu("\u8bbe\u7f6e\u9ed8\u8ba4\u5730\u56fe","\u8bbe\u7f6e\u5f53\u524d\u4e3a\u9ed8\u8ba4\u4f4d\u7f6e","fG["+this.iv+"].mJ();fG["+this.iv+"].ft");this.addMenu("\u6e05\u9664\u9ed8\u8ba4\u5730\u56fe","\u6e05\u9664\u4e4b\u524d\u7684\u9ed8\u8ba4\u4f4d\u7f6e","fG["+this.iv+"].mK();fG["+this.iv+"].ft");}this.addMenu("\u5173\u95ed","\u5173\u95ed\u672c\u83dc\u5355","fG["+this.iv+"].ft");}var oO="chengdutlj,chengtl01,chengduju01,chengduchu01,chengduchu02,chengduchu03,chengduchu04,xichangchu01,xichangchu02,chongqingchu,guiyangchu01,guiyangchu02,guiyangchu03,guiyangchu04";var oP="yadxcs,yadxce";var oQ=oO.split(",");var oR=oP.split(",");var oS=false;this.bIsSmUser=false;if(this.mo !=null){for(var oT=0;oT<oQ.length;oT++){if(this.mo.userkey.indexOf(oQ[oT])>=0)oS=true;}for(var oU=0;oU<oR.length;oU++){if(this.mo.userkey.indexOf(oR[oU])>=0)this.bIsSmUser=true;}}if(oS){var oV=new wingBaseButton();oV.setMapState(false);oV.nWidth=61;oV.nHeight=21;oV.sFocusImg=this.ch[this.ci]+this.ds+"toolbar/richmap.png";oV.sActiveImg=this.ch[this.ci]+this.ds+"toolbar/richmap.png";oV.sNormalImg=this.ch[this.ci]+this.ds+"toolbar/cdtlj.png";var oW=this;oV.setFnOnClick(function(){oW.nq();});this.ns=this.addButton(oV);this.mR.push([2767240.432,1137877.234,3703196.652,238911.874]);this.lQ.push([]);this.mi.push("http://125.77.117.1:1235/cn_tlj/");}if(!this.dA()){return false;}this.gY();this.dw();this.dx();this.dy();this.gt();this.me();eval("setTimeout(function(){fG["+this.iv+"].lb.firstChild.style.display=\'none\';fG["+this.iv+"].bd.style.display=\'\';fG["+this.iv+"].onsuccess();},0)");};this.addMenu=function(oX,oY,oZ){if(oX.length > 10)oX=oX.substring(0,10);if(oY.length > 10)oY=oY.substring(0,10);var pa=this.gk.length;this.gk[pa]=[];this.gk[pa]["title"]=oX;this.gk[pa]["suggest"]=oY;this.gk[pa]["onclick"]=oZ;};this.dw=function(){var pb=eU!="right"?(eV?(this.cR+this.cQ*2):(this.cQ*2)):(this.getWidth()-this.cA-this.cQ);var pc=eV?(this.cS*3+this.cQ*4):(fc?(this.cS+this.cQ*3):this.cQ);this.br.style.left=pb+"px";this.br.style.top=pc+"px";return true;};this.dx=function(){if(ff){this.je.style.left=(this.getWidth() - this.jb - this.jd)+"px";this.je.style.top=(this.getHeight() - this.jc - this.jd)+"px";this.jl.style.left=(this.getWidth() - this.jm )+"px";this.jl.style.top=(this.getHeight() - this.jn)+"px";if(this.mffShowOrHide){this.bA.style.left=(this.getWidth() - 200 - this.jb - this.jd - 5)+"px";}else{this.bA.style.left=(this.getWidth() - 200 - this.jm - 5)+"px";}}else{this.bA.style.left=(this.getWidth() - 200 - 5)+"px";}this.bA.style.top=(this.getHeight() - 20)+"px";};this.gt=function(){this.fR.style.left=(this.getWidth() - this.gc) * 0.5+"px";this.fR.style.top=this.getHeight() * 0.5+"px";};this.dy=function(){this.bv.style.left="10px";this.bv.style.top=(this.getHeight()-28)+"px";};this.setMarkLayer=function(pd){if(isNaN(pd))return false;if(pd > this.cb || pd < this.cc)return false;pd=parseInt(pd);this.ce=pd;return true;};this.dz=function(pe,pf){if(isNaN(pe)||isNaN(pf)){this.ek("error size:"+pe+","+pf);this.onerror(ep);return false;}try{pe=parseInt(pe);pf=parseInt(pf);}catch(e){this.onerror(ep);return false;}pe=pe>this.cH?this.cH:pe<this.cJ?this.cJ:pe;pf=pf>this.cI?this.cI:pf<this.cK?this.cK:pf;this.cn=pf;this.cm=pe;return true;};this.gu="<html xmlns:v=\"urn:schemas-microsoft-com:vml\" xmlns:o=\"urn:schemas-microsoft-com:office:office\"><head><style>v\\:* { behavior: url(#default#VML);}o\\:* { behavior: url(#default#VML);}</style><title>richmapVml</title></head><body style=\"background:transparent;margin:0px;\" scroll=\"no\" oncontextmenu=\"return false;\" bottomMargin=0 leftMargin=0 topMargin=0 rightMargin=0 onSelectStart=\"return false\">";this.gv=function(){var pg=this.gu+"</body></html>";if(this.ki==null){this.ki=document.createElement("IFRAME");this.ki.marginHeight=0;this.ki.marginWidth=0;this.ki.frameBorder=0;this.ki.allowTransparency=true;this.ki.style.position="absolute";this.ki.style.top="0px";this.ki.style.left="0px";this.ki.style.width=this.getWidth() * 5;this.ki.style.height=this.getHeight() * 5;this.kj.appendChild(this.ki);}this.ki.contentWindow.document.write(pg);this.ki.contentWindow.location.reload();return true;};this.dA=function(){var ph=this;var pi;var pj=null;this.la=this.ed(1,0,0,null,null,null,"off");this.eg(2,this.bc,this.la);this.lb=this.ed(1,0,0,this.getWidth(),this.getHeight(),null,"off");this.lb.style.overflow="auto";this.eg(2,this.la,this.lb);this.lb.innerHTML="<div style=\'position:absolute;line-height:20px;left:"+(this.getWidth()*0.5-50)+";top:"+(this.getHeight()*0.5-10)+"\'>\u6b63\u5728\u4e3a\u60a8\u8f7d\u5165\u5730\u56fe,\u8bf7\u7a0d\u5019..</div>";this.bd=this.ed(1,0,0,this.getWidth(),this.getHeight(),null,"off");this.bd.style.overflow="hidden";this.bd.style.display="none";this.bd.style.backgroundColor="#FFFBDE";this.bd[this.cN[9]]=function(){return false;};this.eg(2,this.lb,this.bd);this.bd[this.cN[7]]=function(e){return ph.onKeyDown(e);};this.bd[this.cN[8]]=function(e){return ph.onKeyUp(e);};this.bd[this.cN[0]]=function(e){return ph.onFocus(e);};this.be=this.ed(0,0,0,"100%","100%",108,"off");this.be.style.border="solid 1px "+this.jo;this.be[this.cN[0]]=function(e){return ph.onclick(e);};this.be[this.cN[1]]=function(e){return ph.ondblclick(e);};this.be[this.cN[2]]=function(e){return ph.onmousedown(e);};this.be[this.cN[3]]=function(e){return ph.onmouseup(e);};this.be[this.cN[4]]=function(e){return ph.onmousemove(e);};this.be[this.cN[5]]=function(e){return ph.onmouseout(e);};if(this.gw=="firefox" || this.gw=="safari"||this.gw=="opera"){this.be[this.cN[12]]=function(e){return ph.onmousewheel(e);};eval("this.be.addEventListener(\'DOMMouseScroll\',function(e){e.preventDefault();fG["+this.iv+"].onmousewheel(e);},true)");}else{eval("this.be.attachEvent(this.cN[12],function(){return fG["+this.iv+"].onmousewheel();})");}this.be.style.cursor="url("+this.ch[this.ci]+this.ds+"cursor/"+this.bL[this.bJ]+".cur),"+this.bM[this.bJ];this.be.style.overflow="hidden";this.eg(2,this.bd,this.be);this.ml=this.ed(0,0,0,0,0,4,"off");this.eg(2,this.be,this.ml);for(var pk=0;pk<this.mm;pk++){pi=this.ed(0,0,0,null,null,pk+1);this.eg(2,this.ml,pi);pi=null;}this.bB=this.ed(0,0,0,0,0,4,"off");this.eg(2,this.be,this.bB);this.bB.style.display="none";this.bB.style.border="solid 1px #333333";this.bD=this.ed(0,0,0,null,null,7,"off");this.bC=document.createElement("IFRAME");this.bC.marginHeight=0;this.bC.marginWidth=0;this.bC.frameBorder=0;this.bC.src="";this.bC.style.display="none";this.bC.allowTransparency=true;this.bC.style.width=this.getWidth()+"px";this.bC.style.height=this.getHeight()+"px";this.bC["onload"]=function(){ph.bC.style.display=ph.bN[ph.bJ]=="Survey"?"":"none";};this.bD.appendChild(this.bC);this.eg(2,this.be,this.bD);if(this.gw=="msie"){this.fu=this.ed(0,0,0,null,null,8,"off");this.eg(2,this.be,this.fu);this.fD();}if(this.gw=="msie"){this.kr=this.ed(0,0,0,null,null,8,"off");this.eg(2,this.be,this.kr);this.hu();}if(this.gw=="msie" || this.gw=="firefox"||this.gw=="safari"||this.gw=="opera"){this.kt=this.ed(0,0,0,null,null,6,"off");this.eg(2,this.be,this.kt);this.hx();}this.bf=this.ed(0,0,0,"100%","100%",2,"off");this.eg(2,this.be,this.bf);this.bg=this.ed(0,0,0,null,null,100,"off");this.kp=this.ed(0,0,0,null,null,101);this.kO=this.ed(0,0,0,null,null,102);this.gx=this.ed(0,0,0,null,null,103);this.gy=this.ed(0,0,0,"100%","100%",103);if(this.gw=="msie" || this.gw=="firefox" || this.gw=="safari"||this.gw=="opera"){this.kj=this.ed(0,0,0,null,null,104);this.eg(2,this.bf,this.kj);}this.kv=this.ed(0,0,0,null,null,105);this.fQ=this.ed(0,0,0,null,null,107);this.bj=this.ed(0,0,0,null,null,108);for(var pl=0;pl<this.bk;pl++){pi=this.ed(0,0,0,null,null,pl+1);this.eg(2,this.bj,pi);pi=null;}this.kx=this.ed(0,0,0,null,null,109);this.eg(2,this.bf,this.bg);this.fJ[0]=this.ed(0,0,0,null,null,1,"off");this.fJ[1]=this.ed(0,0,0,null,null,2,"off");this.bg.appendChild(this.fJ[0]);this.bg.appendChild(this.fJ[1]);this.eg(2,this.bf,this.kp);this.eg(2,this.bf,this.kO);this.eg(2,this.bf,this.kv);this.eg(2,this.bf,this.gy);this.eg(2,this.bf,this.gx);this.eg(2,this.bf,this.fQ);this.eg(2,this.bf,this.bj);this.eg(2,this.bf,this.kx);this.li();if(this.gw=="msie"){this.gv();}else{this.kV();}this.bq=this.ed(0,0,0,null,null,113);this.eg(2,this.bd,this.bq);this.bu=this.ed(0,this.cQ,this.cQ,null,null,null);if(eV){this.bR=this.ef(this.ch[this.ci]+this.ds+"toolbar/north.png",this.cR,this.cS,eP);this.bR["onclick"]=function(){ph.dO(0);};pi=this.ed(0,this.cQ+this.cR,0,this.cR,this.cS);pi.appendChild(this.bR);this.bu.appendChild(pi);this.bS=this.ef(this.ch[this.ci]+this.ds+"toolbar/west.png",this.cR,this.cS,eN);this.bS["onclick"]=function(){ph.dO(3);};pi=this.ed(0,0,this.cQ+this.cS,this.cR,this.cS);pi.appendChild(this.bS);this.bu.appendChild(pi);this.bT=this.ef(this.ch[this.ci]+this.ds+"toolbar/east.png",this.cR,this.cS,eO);this.bT["onclick"]=function(){ph.dO(1);};pi=this.ed(0,this.cQ*2+this.cR*2,this.cQ+this.cS,this.cR,this.cS);pi.appendChild(this.bT);this.bu.appendChild(pi);this.bU=this.ef(this.ch[this.ci]+this.ds+"toolbar/south.png",this.cR,this.cS,eQ);this.bU["onclick"]=function(){ph.dO(2);};pi=this.ed(0,this.cQ+this.cR,this.cQ*2+this.cS*2,this.cR,this.cS);pi.appendChild(this.bU);this.bu.appendChild(pi);if(fc){this.bV=this.ef(this.ch[this.ci]+this.ds+"toolbar/fullview.png",this.cR,this.cS,eR);pi=this.ed(0,this.cQ+this.cR,this.cQ+this.cS,this.cR,this.cS);pi.appendChild(this.bV);this.bu.appendChild(pi);}}else if(fc){this.bV=this.ef(this.ch[this.ci]+this.ds+"toolbar/fullview.png",this.cR,this.cS,eR);pi=this.ed(0,this.cQ,this.cQ,this.cR,this.cS);pi.appendChild(this.bV);this.bu.appendChild(pi);}if(fc){this.bV[this.cN[6]]=function(){ph.bV.src=ph.ch[ph.ci]+ph.ds+"toolbar/fullview_over.png";};this.bV[this.cN[5]]=function(){ph.bV.src=ph.ch[ph.ci]+ph.ds+"toolbar/fullview.png";};this.bV[this.cN[0]]=function(){ph.dK();};}this.br=this.ed(0,0,0,this.cB,this.cA*2+this.cf*this.cb);this.br[this.cN[6]]=function(){ph.ko.style.display="";};this.br[this.cN[5]]=function(){ph.ko.style.display="none";};if(eW){this.bO=this.ef(this.ch[this.ci]+this.ds+"scrollbar/zoomin.png",this.cB,this.cA,eD);this.bO[this.cN[0]]=function(){ph.zoomIn();};this.bO[this.cN[6]]=function(){ph.bO.src=ph.ch[ph.ci]+ph.ds+"scrollbar/zoomin_over.png";};this.bO[this.cN[5]]=function(){ph.bO.src=ph.ch[ph.ci]+ph.ds+"scrollbar/zoomin.png";};pi=this.ed(0,0,0,this.cB,this.cA);pi.appendChild(this.bO);this.br.appendChild(pi);this.bQ=this.ed(1,-2,this.cA,this.cg,this.cf-2,80,"off");this.bQ.style.cursor="url("+this.ch[this.ci]+this.ds+"cursor/"+this.bL[0]+".cur),"+this.bM[0];var pm=this.cf*(this.cb-this.cd)+this.cA;this.bQ[this.cN[2]]=function(e){ph.dT(ph.bQ,1,null,e);};this.bQ[this.cN[3]]=function(e){ph.dV(ph.bQ,e);};this.bQ[this.cN[4]]=function(e){ph.dU(ph.bQ,1,null,null,ph.cA,pm,null,e);};this.ei(this.bQ,this.ch[this.ci]+this.ds+"scrollbar/cursor.png");this.bQ.title=eT;this.br.appendChild(this.bQ);pi=this.ed(0,0,this.cA,this.cg,this.cf*(this.cb-this.cd+1));this.ei(pi,this.ch[this.ci]+this.ds+"scrollbar/rulers.png");this.br.appendChild(pi);pi=this.ed(0,0,this.cA,this.cg,this.cf*(this.cb-this.cd+1),1,"off");pi.style.cursor="default";pi.title=eS;pi[this.cN[0]]=function(e){ph.dX(e);};this.br.appendChild(pi);this.bP=this.ef(this.ch[this.ci]+this.ds+"scrollbar/zoomout.png",this.cB,this.cA,eE);this.bP[this.cN[0]]=function(){ph.zoomTo(ph.cl-1);};this.bP[this.cN[6]]=function(){ph.bP.src=ph.ch[ph.ci]+ph.ds+"scrollbar/zoomout_over.png";};this.bP[this.cN[5]]=function(){ph.bP.src=ph.ch[ph.ci]+ph.ds+"scrollbar/zoomout.png";};pi=this.ed(0,0,this.cf*(this.cb-this.cd+1)+this.cA,this.cB,this.cA);pi.appendChild(this.bP);this.br.appendChild(pi);this.ko=this.ed(0,this.cB,(this.cA+8),51,this.gl.length*this.cf,null,"off");this.br.appendChild(this.ko);this.ko.style.display="none";this.ko[this.cN[6]]=function(){ph.ko.style.display="";};this.br[this.cN[5]]=function(){ph.ko.style.display="none";};for(var pn=0;pn<this.gl.length;pn++){this.gJ(pn);}}this.bqBar=this.ed(0,(eV?(this.cR*3+this.cQ*3):(this.cR+this.cQ*3)),(eV?this.cQ:this.cQ*2),null,null);var pp=this.bx;var pq=this.by;if(eZ){var pr=0;this.bE=this.ef(this.ch[this.ci]+this.ds+"toolbar/"+this.bL[pr]+"_on.png",pp,pq,eF);this.bE[this.cN[0]]=function(){ph.setState(pr);};this.bE[this.cN[6]]=function(){if(ph.bJ !=pr){ph.bE.src=ph.ch[ph.ci]+ph.ds+"toolbar/"+ph.bL[pr]+"_over.png";}};this.bE[this.cN[5]]=function(){if(ph.bJ !=pr){ph.bE.src=ph.ch[ph.ci]+ph.ds+"toolbar/"+ph.bL[pr]+"_off.png";}};pi=this.ed(0,this.bz,0,pp,pq);pi.appendChild(this.bE);this.bqBar.appendChild(pi);this.bz+=pp+this.cQ;}if(eX){var ps=1;this.bF=this.ef(this.ch[this.ci]+this.ds+"toolbar/"+this.bL[ps]+"_off.png",pp,pq,eD);this.bF[this.cN[0]]=function(){ph.setState(ps);};this.bF[this.cN[6]]=function(){if(ph.bJ !=ps){ph.bF.src=ph.ch[ph.ci]+ph.ds+"toolbar/"+ph.bL[ps]+"_over.png";}};this.bF[this.cN[5]]=function(){if(ph.bJ !=ps){ph.bF.src=ph.ch[ph.ci]+ph.ds+"toolbar/"+ph.bL[ps]+"_off.png";}};pi=this.ed(0,this.bz,0,pp,pq);pi.appendChild(this.bF);this.bqBar.appendChild(pi);this.bz+=pp+this.cQ;}if(eY){var pt=2;this.bG=this.ef(this.ch[this.ci]+this.ds+"toolbar/"+this.bL[pt]+"_off.png",pp,pq,eE);this.bG[this.cN[0]]=function(){ph.setState(pt);};this.bG[this.cN[6]]=function(){if(ph.bJ !=pt){ph.bG.src=ph.ch[ph.ci]+ph.ds+"toolbar/"+ph.bL[pt]+"_over.png";}};this.bG[this.cN[5]]=function(){if(ph.bJ !=pt){ph.bG.src=ph.ch[ph.ci]+ph.ds+"toolbar/"+ph.bL[pt]+"_off.png";}};pi=this.ed(0,this.bz,0,pp,pq);pi.appendChild(this.bG);this.bqBar.appendChild(pi);this.bz+=pp+this.cQ;}if(fa){var pu=3;this.bH=this.ef(this.ch[this.ci]+this.ds+"toolbar/"+this.bL[pu]+"_off.png",pp,pq,eG);this.bH[this.cN[0]]=function(){ph.setState(pu);};this.bH[this.cN[6]]=function(){if(ph.bJ !=pu){ph.bH.src=ph.ch[ph.ci]+ph.ds+"toolbar/"+ph.bL[pu]+"_over.png";}};this.bH[this.cN[5]]=function(){if(ph.bJ !=pu){ph.bH.src=ph.ch[ph.ci]+ph.ds+"toolbar/"+ph.bL[pu]+"_off.png";}};pi=this.ed(0,this.bz,0,pp,pq);pi.appendChild(this.bH);this.bqBar.appendChild(pi);this.bz+=pp+this.cQ;}if(fp){var pv=7;this.fr=this.ef(this.ch[this.ci]+this.ds+"toolbar/"+this.bL[pv]+"_off.png",67,pq,fn);this.fr[this.cN[0]]=function(){ph.setState(pv);};this.fr[this.cN[6]]=function(){if(ph.bJ !=pv){ph.fr.src=ph.ch[ph.ci]+ph.ds+"toolbar/"+ph.bL[pv]+"_over.png";}};this.fr[this.cN[5]]=function(){if(ph.bJ !=pv){ph.fr.src=ph.ch[ph.ci]+ph.ds+"toolbar/"+ph.bL[pv]+"_off.png";}};pi=this.ed(0,this.bz,0,67,pq);pi.appendChild(this.fr);this.bqBar.appendChild(pi);this.bz+=67+this.cQ;}if(fb){var pw=4;this.bI=this.ef(this.ch[this.ci]+this.ds+"toolbar/"+this.bL[pw]+"_off.png",pp,pq,eH);this.bI[this.cN[0]]=function(){ph.setState(pw);};this.bI[this.cN[6]]=function(){if(ph.bJ !=pw){ph.bI.src=ph.ch[ph.ci]+ph.ds+"toolbar/"+ph.bL[pw]+"_over.png";}};this.bI[this.cN[5]]=function(){if(ph.bJ !=pw){ph.bI.src=ph.ch[ph.ci]+ph.ds+"toolbar/"+ph.bL[pw]+"_off.png";}};pi=this.ed(0,this.bz,0,pp,pq);pi.appendChild(this.bI);this.bqBar.appendChild(pi);this.bz+=pp+this.cQ;}if(fe){var px=5;this.fS=this.ef(this.ch[this.ci]+this.ds+"toolbar/"+this.bL[px]+"_off.png",pp,pq,fd);this.fS[this.cN[0]]=function(){ph.setState(px);};this.fS[this.cN[6]]=function(){if(ph.bJ !=px){ph.fS.src=ph.ch[ph.ci]+ph.ds+"toolbar/"+ph.bL[px]+"_over.png";}};this.fS[this.cN[5]]=function(){if(ph.bJ !=px){ph.fS.src=ph.ch[ph.ci]+ph.ds+"toolbar/"+ph.bL[px]+"_off.png";}};pi=this.ed(0,this.bz,0,pp,pq);pi.appendChild(this.fS);this.bqBar.appendChild(pi);this.bz+=pp+this.cQ;}if(fk && (this.gw=="msie" || this.gw=="firefox" ||this.gw=="safari"||this.gw=="opera")){var py=8;this.bY=this.ef(this.ch[this.ci]+this.ds+"toolbar/"+this.bL[py]+"_off.png",64,pq,eL);this.bY[this.cN[0]]=function(){ph.setState(py);};this.bY[this.cN[6]]=function(){if(ph.bJ !=py){ph.bY.src=ph.ch[ph.ci]+ph.ds+"toolbar/"+ph.bL[py]+"_over.png";}};this.bY[this.cN[5]]=function(){if(ph.bJ !=py){ph.bY.src=ph.ch[ph.ci]+ph.ds+"toolbar/"+ph.bL[py]+"_off.png";}};pi=this.ed(0,this.bz,0,pp,pq);pi.appendChild(this.bY);this.bqBar.appendChild(pi);this.bz+=64+this.cQ;}if(fj && (this.gw=="msie" || this.gw=="firefox" || this.gw=="safari"||this.gw=="opera")){var pz=9;this.bZ=this.ef(this.ch[this.ci]+this.ds+"toolbar/"+this.bL[pz]+"_off.png",pp,pq,eM);this.bZ[this.cN[0]]=function(){ph.setState(pz);};this.bZ[this.cN[6]]=function(){if(ph.bJ !=pz){ph.bZ.src=ph.ch[ph.ci]+ph.ds+"toolbar/"+ph.bL[pz]+"_over.png";}};this.bZ[this.cN[5]]=function(){if(ph.bJ !=pz){ph.bZ.src=ph.ch[ph.ci]+ph.ds+"toolbar/"+ph.bL[pz]+"_off.png";}};pi=this.ed(0,this.bz,0,pp,pq);pi.appendChild(this.bZ);this.bqBar.appendChild(pi);this.bz+=pp+this.cQ;}for(var pA=0;pA<this.bl.length;pA++){var pB=this.bl[pA][0];if(pB.sNormalImg.length==1){if(this.bL[parseInt(pB.sNormalImg)]){pB.sFocusImg=this.ch[this.ci]+this.ds+"toolbar/"+this.bL[parseInt(pB.sNormalImg)]+"_on.png";pB.sActiveImg=this.ch[this.ci]+this.ds+"toolbar/"+this.bL[parseInt(pB.sNormalImg)]+"_over.png";pB.sNormalImg=this.ch[this.ci]+this.ds+"toolbar/"+this.bL[parseInt(pB.sNormalImg)]+"_off.png";pB.nWidth=pp;pB.nHeight=pq;}else{continue;}}if(pB.sCursorImg.length==1){if(this.bL[parseInt(pB.sCursorImg)]){pB.sCursorImg=this.ch[this.ci]+this.ds+"cursor/"+this.bL[parseInt(pB.sCursorImg)]+".cur";}}this.bl[pA][1]=this.ef(pB.sNormalImg,pB.nWidth,pB.nHeight,pB.sAlt);(function(){var pC=pA;ph.bl[pC][1][ph.cN[0]]=function(){ph.setState(20+pC);};ph.bl[pC][1][ph.cN[6]]=function(){if(!ph.bl[pC][2]){ph.bl[pC][1].src=ph.bl[pC][0].sActiveImg;}};ph.bl[pC][1][ph.cN[5]]=function(){if(!ph.bl[pC][2]){ph.bl[pC][1].src=ph.bl[pC][0].sNormalImg;}};})();pi=this.ed(0,this.bz,0,pB.nWidth,pB.nHeight);pi.appendChild(this.bl[pA][1]);this.bqBar.appendChild(pi);this.bz+=pB.nWidth+this.cQ;}if(this.mp){this.mu=this.ed(0,(eV?(this.cR*3+this.cQ*3):(this.cR+this.cQ*3))+this.cQ,(eV?this.cQ:this.cQ*2)+this.by+this.cQ,305,400,112,"off");this.mu.style.overflow="hidden";this.mu.style.display="none";this.eg(2,this.lb,this.mu);}if(fm){var pD=6;this.bW=this.ef(this.ch[this.ci]+this.ds+"toolbar/"+this.bL[pD]+"_off.png",pp,pq,eJ);this.bW[this.cN[0]]=function(){ph.setState(pD);};this.bW[this.cN[6]]=function(){if(!ph.fI){ph.bW.src=ph.ch[ph.ci]+ph.ds+"toolbar/"+ph.bL[pD]+"_over.png";}};this.bW[this.cN[5]]=function(){if(!ph.fI){ph.bW.src=ph.ch[ph.ci]+ph.ds+"toolbar/"+ph.bL[pD]+"_off.png";}};pi=this.ed(0,this.bz,0,pp,pq);pi.appendChild(this.bW);this.bqBar.appendChild(pi);this.bz+=pp+this.cQ;this.ku=this.ed(0,(eV?(this.cR*3+this.cQ*3):(this.cR+this.cQ*3))+this.cQ,(eV?this.cQ:this.cQ*2)+this.by+this.cQ,305,400,112,"off");this.ku.style.overflow="hidden";this.ku.style.display="none";this.eg(2,this.lb,this.ku);this.gz=this.ed(0,3,-80,302,80);this.gz.innerHTML="&nbsp;";this.gz.style.backgroundColor="#000000";if(this.gw=="msie"){this.gz.style.filter="progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=20,finishOpacity=100)";}else if(this.gw=="firefox"){this.gz.style.opacity=0.2;}this.ku.appendChild(this.gz);this.gA=this.ed(0,0,-83,300,80);var pE=null;with(this.gA){style.padding="0px;";style.backgroundColor="#ffffff";style.border="solid 1px #639ED6";pE=this.ed(1,0,0,300,20);pE.style.backgroundColor="#639ED6";pE.style.padding="3px";pE.innerHTML=this.lM.length>0?"\u3000\u4f4d\u7f6e\u641c\u7d22":"\u3000\u540d\u5740\u641c\u7d22";pE.style.color="#ffffff";pE.style.fontWeight="bold";appendChild(pE);pE=this.ed(1,0,0,300,22);appendChild(pE);pE.style.padding="3px";if(this.lM.length>0){pE.innerHTML="กก";this.lN=document.createElement("select");this.lN.style.width="78px";this.lN.style.position="absolute";this.lN.style.left="15px";this.lN.style.top="8px";var pF=document.createElement("option");pF.value='';pF.innerHTML="\u540d\u5740\u641c\u7d22";this.lN.appendChild(pF);for(var pG=0;pG<this.lM.length;pG++){var pH=document.createElement("option");pH.value=pG;pH.innerHTML=this.lM[pG][1];this.lN.appendChild(pH);}pE.appendChild(this.lN);}else{var pI=this.ed(0,15,8,80,30);pI.style.lineHeight="23px";pI.innerHTML="\u67e5\u8be2\u5173\u952e\u5b57\uff1a";pE.appendChild(pI);}this.gB=document.createElement("input");with(this.gB){style.position="absolute";style.top="8px";style.left="95px";type="text";style.width="120px";style.border="solid 1px #aaaaaa";}this.gB["onkeydown"]=function(){if(event.keyCode==13)ph.ho();};pE.appendChild(this.gB);var pJ=document.createElement("span");pJ.innerHTML="&nbsp;";pE.appendChild(pJ);var pK=this.ef(this.ch[this.ci]+this.ds+"toolbar/search.jpg",70,23,"\u641c\u7d22","absolute",220,6);pK["onclick"]=function(){ph.ho();};pE.appendChild(pK);var pL=this.ed(0,15,30);pL.style.padding="2px";pL.style.paddingTop="10px";pL.style.color="#cccccc";pL.innerHTML="\u3000\u5982\uff1a\u5f00\u777f\u52a8\u529b\u3001\u94f6\u884c\u3001\u5496\u5561\u9986\u3001\u9152\u5e97\u7b49";pE.appendChild(pL);var pM=this.ef(this.ch[this.ci]+this.ds+"toolbar/close_white.gif",15,15,"\u5173\u95ed\u641c\u7d22\u6846","absolute",280,3);pM.style.cursor="pointer";pM["onclick"]=function(){ph.hd();};appendChild(pM);this.gC=this.ed(0,225,55);this.gC.style.display="none";this.gC.innerHTML="[ \u663e\u793a\u7ed3\u679c ]";this.gC.style.paddingTop="5px";this.gC.style.color="blue";this.gC.style.cursor="pointer";this.gC.title="\u663e\u793a\u641c\u7d22\u7ed3\u679c";this.gC["onclick"]=function(){ph.hk();};appendChild(this.gC);this.gD=this.ed(0,0,82,305,233);this.gD.style.overflow="hidden";this.gD.style.display="none";appendChild(this.gD);this.gE=this.ed(0,3,3,302,230);this.gE.innerHTML="&nbsp;";this.gE.style.backgroundColor="#000000";if(this.gw=="msie"){this.gE.style.filter="progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=20,finishOpacity=100)";}else if(this.gw=="firefox"){this.gE.style.opacity=0.2;}this.gD.appendChild(this.gE);this.gF=this.ed(0,0,0,300,230);this.gF.style.backgroundColor="#ffffff";this.gF.style.border="solid 1px #639ED6";this.gD.appendChild(this.gF);this.gG=this.ed(0,0,0,280,205);this.gG.style.padding="5px;";this.gF.appendChild(this.gG);this.gH=this.ed(0,10,205,280,25);this.gH.style.borderTop="dashed 1px #999999";this.gH.style.padding="5px";this.gH.style.paddingRight="60px";this.gH.style.textAlign="right";this.gF.appendChild(this.gH);pM=this.ed(0,250,205);pM.innerHTML="[ \u5173\u95ed ]";pM.style.paddingTop="5px";pM.style.color="blue";pM.style.cursor="pointer";pM.title="\u5173\u95ed\u641c\u7d22\u7ed3\u679c";pM["onclick"]=function(){ph.hl();};this.gF.appendChild(pM);}this.ku.appendChild(this.gA);}this.bv=this.ed(0,0,0,35,25,null,"off");this.bw=this.ed(0,0,0,35,15,null,"off");this.bw.style.cursor="default";this.bw.style.color="#000000";pi=this.ed(0,0,15,35,6,null,"off");this.ei(pi,this.ch[this.ci]+this.ds+"scalebar/scale.png");this.bv.appendChild(pi);this.bv.appendChild(this.bw);this.bA=this.ed(0,0,0,200,20,null,"off");this.bA.style.fontFamily="Tahoma,Arial,Verdana,sans-serif";this.bA.style.fontWeight="bold";this.bA.style.textAlign="right";this.bA.innerHTML=this.ee(this.dm,"http://www.richmap.cn","\u730e\u56fe\u7f51 www.richmap.cn");if(ff){this.je=this.ed(0,0,0,this.jb+this.jd,this.jc+this.jd,null,"off");this.je.style.overflow="hidden";this.je.style.backgroundColor="#ffffff";this.je.style.borderLeft="solid 1px "+this.jo;this.je.style.borderTop="solid 1px "+this.jo;this.je.style.borderBottom="0px";this.je.style.borderRight="0px";this.je.style.padding="0px";this.je.style.display=this.mffShowOrHide?"":"none";this.bq.appendChild(this.je);this.jf=this.ed(0,this.jd-1,this.jd-1,this.jb,this.jc,null,"off");this.jf[this.cN[0]]=function(e){ph.onEagleClick(e);};this.jf[this.cN[2]]=function(e){ph.onEagleMouseDown(e);};this.jf[this.cN[3]]=function(e){ph.hK(e);};this.jf[this.cN[4]]=function(e){ph.hJ(e);};this.jf.style.backgroundColor="#FFFBDE";this.jf.style.border="solid 1px "+this.jo;this.jf.style.overflow="hidden";this.je.appendChild(this.jf);this.gI=this.ed(0,0,0,"100%","100%",10,"off");this.jf.appendChild(this.gI);this.jg=this.ed(0,this.jd-1,this.jd-1,this.jb,this.jc,1,"off");this.jf.appendChild(this.jg);this.jl=this.ed(0,0,0,this.jm,this.jn,9998,"off");this.jl.style.cursor="pointer";this.jl.innerHTML="<img src=\'"+this.ch[this.ci]+this.ds+"toolbar/"+(this.mffShowOrHide?"Arrow_down":"Arrow_up")+".png\' style=\'border:0px;\'>";this.jl[this.cN[0]]=function(){ph.gS();};this.bq.appendChild(this.jl);this.ji=this.ed(0,0,0,null,null,9998,"off");this.ji.style.border="solid 1px #000000";this.ji.style.backgroundColor="#555555";this.ji.style.cursor="default";this.ji.innerHTML="+";this.ji.style.textAlign="center";this.ji.style.fontSize="16px";this.ji.style.color="#ffffff";if(this.gw=="msie"){this.ji.style.filter="progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=40,finishOpacity=100);";}else if(this.gw=="firefox"||this.gw=="safari"||this.gw=="opera"){this.ji.style.opacity=0.4;}this.jf.appendChild(this.ji);this.jh=this.ed(0,0,0,null,null,9999,"off");this.jh.style.backgroundColor="#ffffff";this.jh.style.cursor="default";this.jh.innerHTML="+";this.jh.style.textAlign="center";this.jh.style.fontSize="16px";this.jh.style.color="#333333";this.jh.style.border="solid 1px #000000";if(this.gw=="msie"){this.jh.style.filter="progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=50,finishOpacity=100);";}else if(this.gw=="firefox"||this.gw=="safari"||this.gw=="opera"){this.jh.style.opacity=0.4;}this.jh[this.cN[2]]=function(e){ph.hL(e);};this.jh[this.cN[3]]=function(e){ph.hM(e);};this.jh[this.cN[4]]=function(e){ph.hN(e);};this.jf.appendChild(this.jh);}this.fR=this.ed(0,0,0,this.gc+4,this.gd+4,null,"off");this.fR.style.border=this.gg;this.fR.style.display="none";this.fR.style.innerHTML="&nbsp;";this.ge=this.ed(0,1,1,this.gc,this.gd,null,"off");this.ge.style.backgroundColor=this.iV;this.ge.innerHTML="&nbsp;";this.ge.style.overflow="hidden";this.gf=this.ed(0,this.gc * 0.5,2,50,18,null,"off");this.gf.style.fontSize="9pt";this.gf.style.textAlign="left";this.gf.style.color=this.iW;this.fR.appendChild(this.ge);this.fR.appendChild(this.gf);this.kk=this.ed(0,-100,-100,null,null,null,"off");this.kk.style.border="0px;";this.kk.style.color="red";this.kk.style.fontSize="12px";this.kk.style.lineHeight="18px";this.kk.style.display="none";if(fi){this.kn=this.ed(0,0,0,null,null,null,"off");with(this.kn.style){backgroundColor="#C7E3EE";border="solid 1px #75B1D3";display="none";};this.bq.appendChild(this.kn);for(var pN=0;pN<this.gk.length;pN++){this.gM(pN);}}this.bq.appendChild(this.br);this.bq.appendChild(this.bqBar);this.bq.appendChild(this.bv);this.bq.appendChild(this.bA);this.bq.appendChild(this.bu);this.bq.appendChild(this.fR);this.bq.appendChild(this.kk);this.kw=this.ed(0,0,0,null,null,111);this.eg(2,this.bd,this.kw);this.kQ=this.ed(0,0,0,null,null,112);this.eg(2,this.bd,this.kQ);return true;};this.gJ=function(pO){var pP=this;if(this.gl[pO][2]<this.cd)return;var pQ=this.ed(0,this.cQ,(this.cb-this.gl[pO][2]-1)*this.cf,51,16,null,"off");pQ.onclick=function(){pP.zoomTo(pP.gl[pO][2]);};this.ei(pQ,this.ch[this.ci]+this.ds+"scrollbar/msg_"+this.gl[pO][1]+".png");this.ko.appendChild(pQ);};this.lD=function(){var pR=["eastcomnet.gnway.net","www.richmap.cn","api.richmap.cn","127.0.0.1"];if(pR.length==0){return true;}this.lO=this.lO.replace(/http\:\/\/(.*?)(\:\d+)*\/.*?$/,"$1");for(var pS=0;pS<pR.length;pS++){if(this.lO==pR[pS]){return true;break;}}return false;};this.mJ=function(){var pT=this.getLayer();var pU=this.getCenter();this.iU("richmap_userDefaultMap",pT+":"+pU[0]+":"+pU[1]);alert("\u5df2\u7ecf\u8bbe\u7f6e\u4e86\u5f53\u524d\u5730\u56fe\u4f4d\u7f6e\u4e3a\u9ed8\u8ba4\u7b2c\u4e00\u6b21\u8fdb\u5165\u7684\u5730\u56fe\uff01");};this.mK=function(){this.iU("richmap_userDefaultMap","");alert("\u5df2\u7ecf\u6e05\u9664\u4e86\u60a8\u4e4b\u524d\u8bbe\u7f6e\u7684\u9ed8\u8ba4\u5730\u56fe");};this.mL=function(){var pV=this.iT("richmap_userDefaultMap");if(pV==null || pV=="")return false;var pW=pV.split(":");try{this.zoomTo(parseInt(pW[0]),parseFloat(pW[1]),parseFloat(pW[2]));}catch(e){return false;}return true;};this.iU=function(pX,pY){var pZ=new Date();var qa=new Date();qa.setTime(pZ.getTime()+1000*60*60*24*365);document.cookie=pX+"="+escape(pY)+"; expires="+qa.toGMTString()+";path=/";};this.iT=function(qb){var qc=qb+"=";if(document.cookie.length > 0) {offset=document.cookie.indexOf(qc);if(offset !=-1) {offset+=qc.length;end=document.cookie.indexOf(";", offset);if(end==-1) end=document.cookie.length;return unescape(document.cookie.substring(offset, end));}else return('');}else return('');};this.closeMenu=function(){this.kn.style.display="none";};this.gK=null;this.gL=function(qd){var qe=this.kn.children[qd].children[1];var qf=this.kn.children[qd].children[0];if(parseInt(qe.style.top) < -50){qe.style.display="none";var qg=qe.children[1].innerHTML;qe.children[1].innerHTML=qe.children[0].innerHTML;qe.children[0].innerHTML=qg;qe.style.top="-25px";qe.style.display="block";if(parseInt(qf.style.top)>25){qf.style.top="-25px";qe.children[0].style.color="#0B3E73";qe.children[0].style.fontWeight="";}else{qf.style.top="0px";qe.children[0].style.color="#0C4072";qe.children[0].style.fontWeight="bold";}}else{qf.style.top=(parseInt(qf.style.top)+3)+"px";qe.style.top=(parseInt(qe.style.top)-3)+"px";setTimeout("fG["+this.iv+"].gL("+qd+")",15);}};this.gM=function(qh){var qi=this;var qj=this.ed(1,0,0,this.gi,this.gj,null,"off");with(qj.style){borderStyle="solid";borderWidth="1px";borderColor="#ffffff #F9FFFF #C7E3EE #ffffff";display="block";overflow="hidden";};qj.index=qh;qj[this.cN[0]]=function(){eval(qi.gk[qh]["onclick"]+"("+qi.m_nMenuX+","+qi.m_nMenuY+")");};qj[this.cN[6]]=function(){if(!qi.gK){qi.gK=qj;qi.gL(qj.index);}else if(qi.gK !=qj){qi.gL(qi.gK.index);qi.gL(qj.index);qi.gK=qj;}};qj[this.cN[5]]=function(event){var qk=arguments[0] || window.event;if((qk.toElement || qk.relatedTarget)==qj.parentNode && qi.gK==qj){qi.gL(qj.index);qi.gK=null;}};this.kn.appendChild(qj);var ql=this.ed(1,null,-25,"100%","100%",null,"off");ql.style.backgroundColor="#E9F4F8";qj.appendChild(ql);var qm=this.ed(1,null,-25,"100%","100%",null,"off");qm.style.display="block";qj.appendChild(qm);var qn=this.ed();with(qn.style){height="22px";paddingTop="11px";fontSize="12px";lineHeight="12px";color="#0B3E73";textAlign="center";cursor="pointer";};qn.innerHTML=this.gk[qh]["title"];qm.appendChild(qn);var qo=this.ed();with(qo.style){height="22px";paddingTop="11px";fontSize="12px";lineHeight="12px";color="#0C4072";textAlign="center";cursor="pointer";};qo.innerHTML=this.gk[qh]["suggest"];qm.appendChild(qo);return true;};this.jF=function(){if(!this.isInit()){this.onError("\u5730\u56fe\u672a\u88ab\u521d\u59cb\u5316\uff0c\u65e0\u6cd5\u4f7f\u7528\u9e70\u773c\u529f\u80fd");return false;}var qp=this.getLayer();if(qp - this.cd > this.jt){this.jr=qp - this.jt;}else{this.jr=this.cd;}this.dH();this.jD=this.cM[qp-1] / this.cM[this.jr-1];this.jj=parseInt(this.jD * this.getWidth());this.jk=parseInt(this.jD * this.getHeight());this.gQ=parseInt((this.jb - this.jj)*0.5);this.gR=parseInt((this.jc - this.jk)*0.5);if(this.jj > this.jb || this.jk > this.jc){this.jh.style.display="none";this.ji.style.display="none";}else{this.jh.style.display="";this.ji.style.display="";this.jh.style.width=this.jj+"px";this.jh.style.height=this.jk+"px";this.ji.style.width=this.jj+"px";this.ji.style.height=this.jk+"px";this.jh.style.left=(this.jb - this.jj)*0.5+"px";this.jh.style.top=(this.jc - this.jk)*0.5+"px";this.ji.style.left=(this.jb - this.jj)*0.5+"px";this.ji.style.top=(this.jc - this.jk)*0.5+"px";this.ji.style.lineHeight=this.jk+"px";this.jh.style.lineHeight=this.jk+"px";}};this.jG=function(){var qq=this;var qr=parseInt(this.ji.style.left);var qs=parseInt(this.ji.style.top);var qt=qr - this.gQ;var qu=qs - this.gR;if(Math.abs(qt) < 2 && Math.abs(qu) < 2){this.ji.style.left=this.gQ+"px";this.ji.style.top=this.gR+"px";return;}else{this.ji.style.left=Math.abs(qt)<2?this.gQ:(qr - qt*0.5)+"px";this.ji.style.top=Math.abs(qu)<2?this.gR:(qs - qu*0.5)+"px";setTimeout(function(){qq.jG();},50);}return;};this.jH=function(){var qv=this;var qw=parseInt(this.jh.style.left);var qx=parseInt(this.jh.style.top);var qy=parseInt(this.ji.style.left);var qz=parseInt(this.ji.style.top);var qA=qy - qw;var qB=qz - qx;if(Math.abs(qA) < 2 && Math.abs(qB) < 2){return;}else{this.ji.style.left=Math.abs(qA)<2?qw:(qy - qA*0.5)+"px";this.ji.style.top=Math.abs(qB)<2?qx:(qz - qB*0.5)+"px";setTimeout(function(){qv.jH();},50);}return;};this.jI=function(){if(!this.isInit())return false;var qC=this.getCenter();this.dG(qC[0],qC[1],"eaglemap");var qD=this.getMBR(qC[0],qC[1],"eaglemap");var qE=this.ea();this.jJ(this.jr,qD[0],qD[1],qD[2],qD[3],qE);return true;};this.jJ=function(qF,qG,qH,qI,qJ,qK){var qL=this.mb(this.mj,qF,qG,qH,qI,qJ);if(qL==null)return;if(!qL.mapList){this.kR(qK);return;}var qM=this.getMoveWindowCoordX("eaglemap");var qN=this.getMoveWindowCoordY("eaglemap");var qO=0;var qP="";for(var qQ=0;qQ < qL.mapList.length;qQ++){qP=qL.mapList[qQ][0];this.cD++;if(this.jz[qP]==null){qO=this.jK();this.jz[qP]=qO;this.jA[qO].src=this.getMapSource(qP);this.jzIndex[qO]=qP;}else{qO=this.jK(qP);}this.jA[qO].style.left=this.getCoordFromScreenX (qM,qL.mapList[qQ][1],"eaglemap")+"px";this.jA[qO].style.top=this.getCoordFromScreenY (qN,qL.mapList[qQ][2],"eaglemap")+"px";this.jB[qO]=qK;this.jA[qO].style.zIndex=this.cD;}this.ju=[this.jr,qL.mbr[0],qL.mbr[1],qL.mbr[2],qL.mbr[3]];this.ji.style.left=this.gQ+"px";this.ji.style.top=this.gR+"px";this.jh.style.left=this.gQ+"px";this.jh.style.top=this.gR+"px";this.kR(qK);};this.kR=function(qR){for(var qS=0;qS<this.jB.length;qS++){if(this.jB[qS] !=qR && this.jB[qS] !=""){this.jA[qS].style.zIndex=1;this.jA[qS].src=this.ch[this.ci]+this.ds+this.cY;this.jB[qS]="";this.jz[this.jzIndex[qS]]=null;this.jzIndex[qS]="";}}};this.jK=function(qT){if(qT !=null && this.jA[this.jz[qT]]){return this.jz[qT]};var qU=this.jA.length;for(var qV=0;qV<qU;qV++){if(this.jB[qV]==""){return qV;break;}}this.jA[qU]=this.ef(this.ch[this.ci]+this.ds+"basemap.png",this.cE,this.cF,null,"absolute",0,0,0);this.jg.appendChild(this.jA[qU]);this.jB[qU]="";return qU;};this.gS=function(qW){if(qW !=null){qW=qW?true:false}if(this.mffShowOrHide==qW)return true;this.mffShowOrHide=this.mffShowOrHide?false:true;this.je.style.display=this.mffShowOrHide?"":"none";if(this.mffShowOrHide){this.bA.style.left=(this.getWidth() - 200 - this.jb - this.jd - 5)+"px";}else{this.bA.style.left=(this.getWidth() - 200 - this.jm - 5)+"px";}this.jl.firstChild.src=this.ch[this.ci]+this.ds+"toolbar/"+(this.mffShowOrHide?"Arrow_down":"Arrow_up")+".png";};this.onzoom=function(){this.ej(this.dL["onzoom"]+"()");};this.zoomTo=function(qX,qY,qZ,ra,rb,rc,rd){if(!this.isInit())return false;try{qX=parseInt(qX);}catch(e){return false;}if(this.bJ==8)return false;if(this.mF && this.mE){this.mF=false;if(this.mL())return true;}if(qX < this.cc)qX=this.cc;if(qX < this.cd)qX=this.cd;if(qX > this.cb)qX=this.cb;if(qY==null || qZ==null){var re=this.getCenter();qY=re[0];qZ=re[1];}try{qY=parseFloat(qY);qZ=parseFloat(qZ);}catch(e){return false;}if(isNaN(qY) || isNaN(qZ)){return false;}var rf=this.getCenter();var rh=parseInt((qY - rf[0])/this.cC);var ri=parseInt((qZ - rf[1])/this.cC);if(ra==null){ra=true}var rj=this.getLayer();var rk=qX;var rl=false;var rm=0;if(rj==null){this.gT=qX;this.hb(rm);this.lf(qX);if(ra)this.dY(qX);if(ff){this.jF();}try{}catch(e){}}else if(rj==rk){rm=this.gU;this.hb(rm);if(Math.abs(rh)<this.getWidth() && Math.abs(ri)<this.getHeight()){this.dG(qY,qZ);this.dW(this.bf,-rh,-ri,"this.offset",null,rm);return true;}}else if(Math.abs(rk - rj) > 3 || (Math.abs(rh)>this.getWidth() && Math.abs(ri)>this.getHeight()) || (rb==null && rc==null)){rm=this.gU;this.dh[rm]=null;this.hb(rm);this.lf(qX);if(rj !=rk){rl=true;}setTimeout(function(){void(0)},0);if(ra)this.dY(qX);if(ff){this.jF();}try{}catch(e){}}else{if(this.gr)return;rm=this.gU==0?1:0;this.dh[rm]=null;this.gr=true;var rn=qX - rj;rn=rn>0?(rn-1):rn;this.gV=256;var ro=Math.pow(2,rn);var rp=20;var rq=4;var rr=this.cE * ro;rr=rn>=0?rr:(0-rr);var rs=parseInt(rr / rq);if(ra){var rt=this.cf * rn;var ru=parseInt(rt / rq);ru=rn>=0?ru:(0-ru);}var rv=this.getCoordFromScreenX(this.cO,qY);var rw=this.getCoordFromScreenY(this.cP,qZ);if(rb !=null && rc !=null){rv=rb;rw=rc;}var rx=rv - parseInt(this.bf.style.left);var rz=rw - parseInt(this.bf.style.top);if(rn >=0){this.gZ(rv,rw);}else{this.ha(rv,rw);}this.gW=1;tempWingObj=this;var rA=this.gT;this.ld("clear",rm);this.lf(qX);setTimeout(function(){void(0)},0);if(ff){this.jF();}this.dG(qY,qZ);if(rj !=rk){this.onzoom();}if(this.bN[this.bJ]=="Survey"){var rB;if(this.gw=="msie"){rB=new rWingUrl(this.ch[this.ci]+this.dr+"Survey.htm");}else{rB=new rWingUrl(this.ch[this.ci]+this.dr+"Survey2.htm");}rB.addParam("w",this.getWidth());rB.addParam("h",this.getHeight());rB.addParam("l",this.getLayer());rB.addParam("req",this.ea());this.bC.src=rB.sUrl;}this.offset(rm);this.gX=setInterval(function(){var rC=tempWingObj.fJ[tempWingObj.gU].childNodes;for(var rD=0;rD<rC.length;rD++){if(rC[rD].tagName){with(rC[rD].style){if(tempWingObj.gW==1){var rE=(parseInt(left) - rx)*ro;var rF=(parseInt(top) - rz)*ro;rC[rD].movex=rn>=0?(0+parseInt(rE / rq)):(0-parseInt(rE / rq));rC[rD].movey=rn>=0?(0+parseInt(rF / rq)):(0-parseInt(rF / rq));}try{left=(parseInt(left)+rC[rD].movex)+"px";top=(parseInt(top)+rC[rD].movey)+"px";width=tempWingObj.gV+rs * tempWingObj.gW+(rn>=0?0:4);height=tempWingObj.gV+rs * tempWingObj.gW+(rn>=0?0:4);}catch(e){}}}}if(ra && eW){with(tempWingObj.bQ.style){if(tempWingObj.gW==1){top=tempWingObj.cA+tempWingObj.cf*(tempWingObj.cb-parseInt(rj))+"px";top=parseInt(top)+ru+"px";}else if(tempWingObj.gW==rq){top=tempWingObj.cA+tempWingObj.cf*(tempWingObj.cb-parseInt(rk))+"px";}else{top=parseInt(top)+ru+"px";}}}tempWingObj.gW++;if(tempWingObj.gW > rq){clearInterval(tempWingObj.gX);tempWingObj.gX=null;tempWingObj.hb(rm);tempWingObj.gr=false;}},(rp / rq));return;};if(ff){this.jF();}if(this.bN[this.bJ]=="Survey"){var rG;if(this.gw=="msie"){rG=new rWingUrl(this.ch[this.ci]+this.dr+"Survey.htm");}else{rG=new rWingUrl(this.ch[this.ci]+this.dr+"Survey2.htm");}rG.addParam("w",this.getWidth());rG.addParam("h",this.getHeight());rG.addParam("l",this.getLayer());rG.addParam("req",this.ea());this.bC.src=rG.sUrl;}this.dG(qY,qZ);if(rl)this.onzoom();this.offset(rm,rd);};this.gY=function(){if(this.gm==null){this.gm=this.ed(0,0,0,null,null);this.bq.appendChild(this.gm);this.gm.style.display="none";if(this.gw=="msie"){this.gm.style.overflow="hidden";var rH=this.ed(0,0,0,241,260);rH.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'"+this.ch[this.ci]+this.ds+"motionRect.png\',sizingMethod=\'crop\')";this.gm.appendChild(rH);}}};this.gZ=function(rI,rJ,rK){var rL=this;rK=rK==null?0:rK;if(this.gs > rK)return;if(rK >=this.gn.length){this.gm.style.display="none";rK=0;this.gs=0;return;};this.gs=rK;this.gm.style.display="";this.gm.style.width=this.gn[rK][2]+"px";this.gm.style.height=this.gn[rK][3]+"px";if(this.gw=="msie"){this.gm.firstChild.style.left=this.gn[rK][0]+"px";this.gm.firstChild.style.top=this.gn[rK][1]+"px";}else{this.gm.style.background="url("+this.ch[this.ci]+this.ds+"motionRect.png) no-repeat "+this.gn[rK][0]+"px "+this.gn[rK][1]+"px";}this.gm.style.left=parseInt(rI - this.gn[rK][2]*0.5)+"px";this.gm.style.top=parseInt(rJ - this.gn[rK][3]*0.5)+"px";rK++;setTimeout(function(){rL.gZ(rI,rJ,rK);},50);};this.ha=function(rM,rN,rO){var rP=this;rO=rO==null?0:rO;if(this.gs > rO)return;if(rO >=this.gp.length){this.gm.style.display="none";rO=0;this.gs=0;return;};this.gs=rO;this.gm.style.display="";this.gm.style.width=this.gp[rO][2]+"px";this.gm.style.height=this.gp[rO][3]+"px";this.gm.style.left=parseInt(rM - this.gp[rO][2]*0.5)+"px";this.gm.style.top=parseInt(rN - this.gp[rO][3]*0.5)+"px";if(this.gw=="msie"){this.gm.firstChild.style.left=this.gp[rO][0]+"px";this.gm.firstChild.style.top=this.gp[rO][1]+"px";}else{this.gm.style.background="url("+this.ch[this.ci]+this.ds+"motionRect.png) no-repeat "+this.gp[rO][0]+"px "+this.gp[rO][1]+"px";}rO++;setTimeout(function(){rP.ha(rM,rN,rO);},50);};this.kS=function(rQ,rR,rS,rT){if(!this.isInit())return false;var rU=(rQ+rS)/2;var rV=(rR+rT)/2;var rW=this.getLayer();if(rW !=this.cb){var rX=this.getMBR();var rY=(rX[2] - rX[0])/(rS - rQ);var rZ=(rX[1] - rX[3])/(rR - rT);var sa=rY>rZ?rZ:rY;var sb=this.cL[this.getLayer() - 1] / sa;for(var sc=this.getLayer()-1;sc<this.cL.length;sc++){if((sc+1)==this.cb){rW=sc+1;break;}else if((this.cL[sc]*1.5 > sb) && (this.cL[sc+1]*1.5 < sb)){rW=sc+1;break;}}}this.zoomTo(rW,rU,rV);};this.zoomToMBR=function(sd,se,sf,sg){sd=parseInt(sd);se=parseInt(se);sf=parseInt(sf);sg=parseInt(sg);if(!this.isInit())return false;var sh=parseInt(sd*1+sf)/2;var sj=parseInt(se*1+sg)/2;var sk=Math.abs(sf - sd);var sl=Math.abs(se - sg);var sm=this.cd;var sn=this.cd;for(var so=this.cd;so<=this.cb;so++){var sp=this.dH(so);if(sp * this.getWidth() > sk){sm=so;}if(sp * this.getHeight() > sl){sn=so;}}var sq=sm<sn?sm:sn;this.zoomTo(sq,sh,sj);};this.zoomIn=function(){this.zoomTo(parseInt(this.getLayer())+1);};this.kT=function(sr,ss,st,sv){sr=parseInt(sr);ss=parseInt(ss);st=parseInt(st);sv=parseInt(sv);if(!this.isInit())return false;var sw=(sr+st)/2;var sx=(ss+sv)/2;var sy=this.getLayer();if(sy !=this.cc){var sz=this.getMBR();var sA=(sz[2] - sz[0])/(st - sr);var sB=(sz[1] - sz[3])/(ss - sv);var sC=sA>sB?sB:sA;var sD=this.cL[this.getLayer() - 1] * sC;for(var sE=this.getLayer()-1;sE>=0;sE--){if((sE+1)==this.cc){sy=sE+1;break;}else if((this.cL[sE]*1.5 < sD) && (this.cL[sE-1]*1.5 > sD)){sy=sE+1;break;}}}this.zoomTo(sy,sw,sx);};this.fv=[];this.navigating=function(sF,sG,sH,sI,sJ,sK,sL,sM,sN){sN=sN==null?0:sN;var sO=this.ea();this.fv[sO]=document.createElement("script");this.fv[sO].setAttribute("type","text/javascript");this.fv[sO].setAttribute("language","javascript");document.body.appendChild(this.fv[sO] );var sP=new rWingUrl(this.ch[this.ci]+"/map");sP.addParam("arg",sO+","+sG+","+sF);sP.addParam("run","fG["+this.iv+"].fA");sP.addParam("bname",sH);sP.addParam("bx",sI);sP.addParam("by",sJ);sP.addParam("ename",sK);sP.addParam("ex",sL);sP.addParam("ey",sM);sP.addParam("type",sN);sP.addParam("act","navigating");sP.addParam("req",this.ea());this.fv[sO].src=encodeURI(sP.sUrl);return true;};this.fw=function(sQ,sR,sS){sQ=this.fy(sQ,sR,sS);if(sQ==null)return "";if(this.gw=="msie"){return sQ.text;}else{return sQ.nodeValue;};};this.fx=function(sT,sU,sV,sW){sT=this.fy(sT,sU,sW);if(sT==null)return "";return sT.getAttribute(sV);};this.fy=function(sX,sY,sZ){if(sX==null || typeof(sX)=="undefined")return null;sZ=sZ==null?0:sZ;var tb=sX.getElementsByTagName(sY);if(tb==null)return null;return tb[sZ];};this.fA=function(tc){var td=tc[1].split(",");var te=this.getDomFromString(tc[0]);document.body.removeChild(this.fv[td[0]]);this.fv[td[0]]=null;var tf=this.fw(te,"Return");var tg=this.fw(te,"WalkDistance");var th="";var ti="";var tj=0;var tk=0;var tl=0;var tm=0;if(tg !=""){th=this.fx(te,"Begin","name");ti=this.fx(te,"End","name");tj=this.fx(te,"Begin","x");tk=this.fx(te,"Begin","y");tl=this.fx(te,"End","x");tm=this.fx(te,"End","y");}else{th=this.fw(te,"Begin");ti=this.fw(te,"End");tj=this.fx(te,"Begin","screenX");tk=this.fx(te,"Begin","screenY");tl=this.fx(te,"End","screenX");tm=this.fx(te,"End","screenY");}var tn="";if(tf=="0"){tn={"flag":td[1],"hasResult":false,"totalLength":0,"solution":[],"begin":th,"end":ti,"beginx":tj,"beginy":tk,"endx":tl,"endy":tm};eval(td[2])(tn);return;}if(tg !=""){var to=this.fw(te,"Direction");tn={"flag":td[1],"hasResult":true,"totalLength":this.getLengthByXY(tj,tk,tl,tm),"solution":[{"discription":"\u4ece\u8d77\u70b9\u5f00\u59cb\uff0c\u5411"+to+"\u65b9\u5411\u6b65\u884c"+tg+"\u7c73\u5373\u5230","path":tj+" "+tk+" "+tl+" "+tm,"distance":tg}],"begin":th,"end":ti,"beginx":tj,"beginy":tk,"endx":tl,"endy":tm};eval(td[2])(tn);return;}var tp=parseFloat(this.fx(te,"DriverSolution","Length"));var tq=[];var ts=this.fy(te,"Solution").childNodes;for(var tt=0;tt<ts.length;tt++){var tu=this.fw(ts[tt],"Path").replace(/\s$/,"");var tv=this.fw(ts[tt],"Name");var tw=this.fw(ts[tt],"Direction");var tx=this.fw(ts[tt],"Distance");var ty=this.fw(ts[tt],"Action");var tz=this.fw(ts[tt],"Crossing");var tA="";if(ts.length==1){tA='\u4ece\u8d77\u70b9\u5f00\u59cb\u6cbf'+tv+'\u5411'+tw+'\u65b9\u5411\u884c\u9a76\u7ea6'+tx+'\u7c73\u540e\u5230\u8fbe\u7ec8\u70b9';}else if(tt==0){tA='\u4ece\u8d77\u70b9\u5f00\u59cb\u6cbf'+tv+'\u5411'+tw+'\u65b9\u5411\u884c\u9a76\u7ea6'+tx+'\u7c73\u5230\u8fbe'+tz+'\u7684\u4ea4\u53c9\u53e3';}else if((tt+1) !=ts.length){tA='\u5728\u8be5\u4ea4\u53c9\u53e3'+ty.replace("\u5411\u524d\u76f4\u8d70","\u76f4\u884c")+'\uff0c\u6cbf'+tv+'\u5411'+tw+'\u65b9\u5411\u884c\u9a76\u7ea6'+tx+'\u7c73\u5230\u8fbe'+tz+'\u7684\u4ea4\u53c9\u53e3';}else{tA='\u5728\u8be5\u4ea4\u53c9\u53e3'+ty.replace("\u5411\u524d\u76f4\u8d70","\u76f4\u884c")+'\uff0c\u6cbf'+tv+'\u5411'+tw+'\u65b9\u5411\u884c\u9a76\u7ea6'+tx+'\u7c73\u540e\u5230\u8fbe\u7ec8\u70b9';}tq.push({"discription":tA,"path":tu,"distance":tx});}tn={"flag":td[1],"hasResult":true,"totalLength":tp,"solution":tq,"begin":th,"end":ti,"beginx":tj,"beginy":tk,"endx":tl,"endy":tm};eval(td[2])(tn);};this.lE=[];this.lF=null;this.fB=[];this.matchingPOI=function(tB,tC,tD,tE,tF,tG,tH,tI){if(tE=="")return;tF=tF==null?"":tF;tG=tG==null?"":tG;var tJ=this.ea();if(this.lF !=null && this.gw=="firefox"){document.body.removeChild(this.lF);this.lF=null;}if(this.lF==null){this.lF=document.createElement("script");this.lF .setAttribute("type","text/javascript");this.lF .setAttribute("language","javascript");document.body.appendChild(this.lF);}if(!tH){this.fB.push(tJ)};this.lE[tJ]=[tB,tC,tH];var tK=new rWingUrl(tI==null?(this.ch[this.ci]+"/tpapi?act=poi"):tI);tK.addParam("arg",tJ);tK.addParam("run","fG["+this.iv+"].lG");tK.addParam("cityname",tD);tK.addParam("key",tE);tK.addParam("pagesize",tF);tK.addParam("pageno",tG);tK.addParam("req",this.ea());this.lF.src=encodeURI(tK.sUrl);};this.lG=function(tL){var tM=tL.arg;if(!this.lE[tM][2] && this.fB[this.fB.length-1] !=tM){return;}tL.arg=this.lE[tM][1];if(this.lE[tM][0].indexOf("fG")==0){this.hq(tL);}else{eval(this.lE[tM][0])(tL);}};this.lH=[];this.lI=null;this.lJ=[];this.aroundPoiSearch=function(tN,tO,tP,tQ,tR,tS,tT,tU,tV,tW){if(tQ=="" || tR=="")return;tT=tT==null?500:tT;tU=tU==null?"":tU;tV=tV==null?"":tV;var tX=this.ea();if(this.lI==null){this.lI=document.createElement("script");this.lI.setAttribute("type","text/javascript");this.lI.setAttribute("language","javascript");document.body.appendChild(this.lI);}if(!tW){this.lJ.push(tX)};this.lH[tX]=[tN,tO,tW];var tY=new rWingUrl(this.ch[this.ci]+"/tpapi");tY.addParam("arg",tX);tY.addParam("run","fG["+this.iv+"].lK");tY.addParam("cn",tP);tY.addParam("cx",tQ);tY.addParam("cy",tR);tY.addParam("dis",tT);tY.addParam("key",tS);tY.addParam("pagesize",tU);tY.addParam("pageno",tV);tY.addParam("act","aroundpoi");tY.addParam("req",this.ea());this.lI.src=(tY.sUrl);};this.lK=function(tZ){var ua=tZ.arg;if(!this.lH[ua][2] && this.lJ[this.lJ.length-1] !=ua){return;}tZ.arg=this.lH[ua][1];eval(this.lH[ua][0])(tZ);};this.getPointsFromOval=function(uc,ud,ue,uf){if(!uf.length)return [];try{uc=parseFloat(uc);ud=parseFloat(ud);}catch(e){return [];}var ug=[];var uh=[];var ui=ue * 1.6 * this.hR * 0.001;var uj=ue * 1.6 * this.hS * 0.001;for(var uk=0;uk<uf.length;uk++){if(Math.abs(uf[uk].getScreenX() - uc) < ui && Math.abs(uf[uk].getScreenY() - ud)< uj){ug.push(uf[uk]);}}for(var ul=0;ul<ug.length;ul++){if(this.getLengthByXY(uc,ud,ug[ul].getScreenX(),ug[ul].getScreenY()) <=ue)uh.push(ug[ul]);}return uh;};this.getPointsFromPolygon=function(um,un){un=un.split(" ");if(un.length < 6)return [];var uo=[];var up=[];for(var uq=0;uq<un.length;uq++){if((uq+1) !=un.length){uo.push([un[uq],un[uq+1]]);uq++;}else{break;}}for(var ur=0;ur<um.length;ur++){if(this.lC(um[ur].getScreenX(),um[ur].getScreenY(),uo)){up.push(um[ur]);}}uo=null;return up;};this.getPointsFromPolygon1=function(us,ut){ut=ut.split(" ");if(ut.length < 6)return [];var uu=[];var uv=[];for(var uw=0;uw<ut.length;uw++){if((uw+1) !=ut.length){uu.push([ut[uw],ut[uw+1]]);uw++;}else{break;}}for(var ux=0;ux<us.length;ux++){if(this.lC(us[ux].x,us[ux].y,uu)){uv.push(us[ux]);}}uu=null;return uv;};this.lC=function(uy,uz,uA){var uB=0;var uC=x2=y1=y2=0;for(var uD=0;uD<uA.length;uD++){uC=uA[uD][0] - uy;y1=uA[uD][1] - uz;if((uD+1)==uA.length){x2=uA[0][0] - uy;y2=uA[0][1] - uz;}else{x2=uA[uD+1][0] - uy;y2=uA[uD+1][1] - uz;}if((uC < 0 && x2 < 0) || (y1>0 && y2>0) || (y1<0 && y2<0)){continue;}else if((uC==0 && y1==0) || (x2==0 && y2==0)){return true;break;}else{var uE=Math.atan2(Math.abs(y1),uC);var uF=Math.atan2(Math.abs(y2),x2);if(uE+uF <=Math.PI){uB++;}else{continue;}}}if(uB % 2==0){return false;}else{return true;}};this.getAreaFromPolygon=function(uG){var uH=uG.split(" ");var uI=[];var uJ=b=r=t=0;for(var uK=0;uK<uH.length;uK++){var uL=parseFloat(uH[uK]);uK++;var uM=parseFloat(uH[uK]);uJ=uJ==0?uL:(uJ>uL?uL:uJ);b=b==0?uM:(b<uM?uM:b);r=r==0?uL:(r<uL?uL:r);t=t==0?uM:(t>uM?uM:t);uI.push([uL,uM]);};var uN=this.getLengthByXY(uJ,t,r,t) * this.getLengthByXY(r,t,r,b);var uO=6000;var uP=r - uJ;var uQ=b - t;var uR=parseInt(Math.sqrt(uQ/uP*uO))+1;var uS=parseInt(uO/uR)+1;var uT=uP/uS;var uU=uQ/uR;var uV=0;for(var uW=0;uW<=uR;uW++){for(var uX=0;uX<=uS;uX++){if(this.lC(uJ+uT*uX,t+uU*uW,uI)){uV++;}}}return parseFloat((uN * uV / uO).toString().replace(/\.\d+/,""));};this.borderLineSearch=function(uY,uZ,vb){var vc=this.getCityCodeByName(uY);if(this.io[vc]==null)return;var vd=this.hR * 0.001 * uZ * 2;var ve=this.hS * 0.001 * uZ * 2;var vf=this.db[this.io[vc]]["borderMBR"].split(" ");for(var vg=0;vg<vf.length;vg++){vf[vg]=parseFloat(vf[vg])+parseFloat((vg==0 || vg==8 || vg==6)?(0-vd):vd);vg++;vf[vg]=parseFloat(vf[vg])+parseFloat((vg==1 || vg==3 || vg==9)?(0-ve):ve);}vf=vf.join(" ");var vh=this.db[this.io[vc]]["border"].replace(/^(.*?\s.*?)\s.*?$/,"$1");var vi=this.db[this.io[vc]]["border"]+" "+vh+" "+vf+" "+vh;var vj=this.getPointsFromPolygon(vb,vi);return vj;};this.nr=-1;this.ns=-1;this.nq=function(){if((this.mj+1) !=this.mR.length){this.nr=this.mj;this.mj=this.mR.length - 1;this.bl[this.ns][0].sNormalImg=this.ch[this.ci]+this.ds+"toolbar/richmap.png";this.bl[this.ns][0].sActiveImg=this.ch[this.ci]+this.ds+"toolbar/cdtlj.png";this.bl[this.ns][0].sFocusImg=this.ch[this.ci]+this.ds+"toolbar/richmap.png";}else{this.mj=this.nr;this.nr=-1;this.bl[this.ns][0].sNormalImg=this.ch[this.ci]+this.ds+"toolbar/cdtlj.png";this.bl[this.ns][0].sActiveImg=this.ch[this.ci]+this.ds+"toolbar/richmap.png";this.bl[this.ns][0].sFocusImg=this.ch[this.ci]+this.ds+"toolbar/cdtlj.png";}this.offset(this.gU,true);};this.getRegionFromPoint=function(vk,vl){for(var vm=0;vm<this.db.length;vm++){if(this.db[vm]["orderno"].length==4){var vn=this.getPointsFromPolygon([new wingBasePoint("checkPoint",vk,vl)],this.db[vm]["border"]+" "+this.db[vm]["border"].replace(/^(.*?\s.*?)\s.*?$/,"$1"));if(vn.length !=0){return {"province":"\u798f\u5efa\u7701","city":this.db[vm]["city"],"county":"","citycode":this.db[vm]["citycode"]};break;}}}return {"province":"\u798f\u5efa\u7701","city":"","county":"","citycode":""};};this.offset=function(vo,vp){if(!this.isInit())return false;this.ek("Offset Map ...");this.ej(this.dL["onchange"]+"()");this.onChange();this.dB(null,null,null,vo,vp);if(this.cl<this.mpLayer){this.jN()}this.gq();this.showAllElement();};this.dB=function(vq,vr,vs,vt,vu){if(!this.isInit())return false;if(vq==null)vq=this.getLayer();if(vr==null || vs==null){var vv=this.getCenter();vr=vv[0];vs=vv[1];}this.setProvince(vr,vs);if(ff){this.jI();}vt=vt==null?0:vt;var vw=this.getMBR(vr,vs,null,vq);var vx=this.dH(vq);vw[0] -=vx * this.getWidth() * 0.5;vw[1]+=vx * this.getHeight() * 0.5;vw[2]+=vx * this.getWidth() * 0.5;vw[3] -=vx * this.getHeight() * 0.5;if(this.dh[vt]==null)this.dh[vt]=[];if(this.dh[vt].length !=0 && vu !=true){if(this.dh[vt][0] <=vw[0]&& this.dh[vt][1] >=vw[1]&& this.dh[vt][2] >=vw[2]&& this.dh[vt][3] <=vw[3]){this.ek("\u56fe\u5143\u8db3\u591f,\u4e0d\u9700\u8981\u91cd\u65b0\u8bfb\u53d6");return true;}}var vy=this.ea();this.dC(vq,vw[0],vw[1],vw[2],vw[3],vt,vy);try{if(this.mp && vq>=this.mpLayer)this.mpByMBR(null,vw[0],vw[1],vw[2],vw[3],vy);}catch(e){}return true;};this.setProvince=function(vz,vA){if(this.nr !=-1)return;var vB=1;var vC=this.mj;for(var vD=0;vD<this.mh.length;vD++){var vE=this.io[this.mh[vD]];if(vE==null)continue;if(vz >=this.db[vE]["l"] &&vA <=this.db[vE]["b"] &&vz <=this.db[vE]["r"] &&vA >=this.db[vE]["t"]){vB++;vC=vD;}}if(vB > 2)return;this.mj=vC;};this.setProvinceByCode=function(vF){if(this.nr !=-1)return;if(vF.length < 2)return false;vF=vF.substring(0,2);for(var vG=0;vG<this.mh.length;vG++){if(this.mh[vG]==vF)this.mj=vG;}return true;};this.fz=function(vH){return vH;for(var vI=0;vI<this.ch.length;vI++){if(vH.indexOf(this.ch[vI].replace(/(http\:\/\/.*?)\/.*/,"$1/")) >=0){if(this.fs[vI]==true){return vH;}else{vH=vH.replace(/http\:\/\/(.*?)\/(.*)/,this.ch[this.ci].replace(/(http\:\/\/.*?)\/.*/,"$1/")+"$2");return vH;}break;}};vH=vH.replace(/http\:\/\/(.*?)\/(.*)/,this.ch[this.ci].replace(/(http\:\/\/.*?)\/.*/,"$1/")+"$2");return vH;};this.getMapSource=function(vJ){var vK=this.mi[this.mj];if(this.bIsSmUser){if(this.mj=="1")vK=vK.replace("cn_fj","cn_fj1").replace("maps.reachmap.com","125.77.117.1:86");}return vK+vJ;};this.dC=function(vL,vM,vN,vO,vP,vQ,vR){var vS=this.mb(this.mj,vL,vM,vN,vO,vP);if(vS==null)return;if(!vS.mapList){this.ld(vR,vQ);return;}var vT=this;var vU;var vV;var vW;var vX;var vY=this.getMoveWindowCoordX();var vZ=this.getMoveWindowCoordY();var wa=0;var wb="";for(var wc=0;wc < vS.mapList.length;wc++){wb=vS.mapList[wc][0];this.cD++;wa=this.dD(vQ,wb);this.di[wa][0].src=this.getMapSource(wb);this.dk[wb]=wa;this.dj[wa]=wb;this.di[wa][0].style.left=this.getCoordFromScreenX (vY,vS.mapList[wc][1])+"px";this.di[wa][0].style.top=this.getCoordFromScreenY (vZ,vS.mapList[wc][2])+"px";this.di[wa][0].style.width=this.lR+"px";this.di[wa][0].style.height=this.lR+"px";this.di[wa][2]=vR;this.di[wa][0].style.zIndex=this.cD;}vU+=this.cE * this.cC;vV+=this.cF * this.cC;this.dh[vQ]=[vS.mbr[0],vS.mbr[1],vS.mbr[2],vS.mbr[3]];this.ld(vR,vQ);this.jM(vR);};this.ld=function(wd,we){for(var wf=0;wf<this.di.length;wf++){if((this.di[wf][2] !=wd) && this.di[wf][1]==we){this.di[wf][0].style.zIndex=1;this.di[wf][0].src=this.ch[this.ci]+this.ds+this.cY;this.di[wf][2]="";this.dk[this.dj[wf]]=null;this.dj[wf]="";}};};this.jL=function(wg,wh,wi,wj,wk){var wl=this;var wm=this.getCoordFromScreenX(this.getMoveWindowCoordX(),wi);var wn=this.getCoordFromScreenY(this.getMoveWindowCoordY(),wj);if(this.gb[wg] !=null){this.ga[this.gb[wg]]["flag"]=wk;this.fZ[wg].style.left=wm+"px";this.fZ[wg].style.top=wn+"px";}else{this.gb[wg]=this.ga.length;this.ga[this.gb[wg]]=new Array();this.ga[this.gb[wg]]["flag"]=wk;this.ga[this.gb[wg]]["screenX"]=wi;this.ga[this.gb[wg]]["screenY"]=wj;this.ga[this.gb[wg]]["stopname"]=wh;this.ga[this.gb[wg]]["id"]=wg;this.fZ[wg]=this.ed(0,wm,wn,200,40,null,"off");var wo=this.ed(0,-this.fX,-this.fY,this.fW,this.fV,null,"off");this.ei(wo,this.ch[this.ci]+this.ds+this.fU);wo.title=wh;wo.style.cursor="default";this.fZ[wg].appendChild(wo);var wp=this.ed(0,this.fW-this.fX+2,-this.fY,null,null,null,"off");wp.style.fontSize="12px";wp.style.padding="0px";wp.style.height="18px";wp.style.lineHeight="20px";wp.style.color="#FF9200";wp.wordBreak="keep-all";wp.innerHTML=wh;this.fZ[wg].appendChild(wp);var wq=this.ed(0,-parseInt(this.m_aIcons[1][1]*0.5),-parseInt(this.m_aIcons[1][2]*0.5),this.m_aIcons[1][1],this.m_aIcons[1][2],null,"off");this.ei(wq,this.ch[this.ci]+this.ds+"api/icon_shadow_"+this.m_aIcons[1][0]+".png");with(wq){style.overflow="hidden";style.padding="0px";}this.fZ[wg].appendChild(wq);this.fZ[wg][this.cN[0]]=function(){if(wl.dL["onStopClick"] !=null){wl.ej(wl.dL["onStopClick"]+"(\'"+wg+"\');");}};this.fQ.appendChild(this.fZ[wg]);}};this.le=function(wr){try{return this.fZ[wr];}catch(e){return false;}};this.jM=function(ws){for(var wt=0;wt<this.ga.length;wt++){if(!this.ga[wt]){continue;}if(this.ga[wt]["flag"] !=ws){this.gb[this.ga[wt]["id"]]=null;try{this.fQ.removeChild(this.fZ[this.ga[wt]["id"]]);this.fZ[this.ga[wt]["id"]]=null;}catch(e){}this.ga[wt]=null;}}};this.jN=function(){for(var wu=0;wu<this.ga.length;wu++){if(this.ga[wu]){var wv=this.ga[wu]["id"];try{this.fQ.removeChild(this.fZ[wv]);this.fZ[this.ga[wu]["id"]]=null;}catch(e){}this.gb[wv]=null;this.ga[wu]=null;}}};this.dD=function(ww,wx){if(wx !=null && this.di[this.dk[wx]]){if(this.di[this.dk[wx]][1]==ww){return this.dk[wx];}}var wy=this.di.length;for(var wz=0;wz<wy;wz++){if(this.di[wz][2]=="" && this.di[wz][1]==ww){return wz;break;}}this.di[wy]=[];this.di[wy][1]=ww;this.di[wy][0]=this.ef(this.ch[this.ci]+this.ds+"basemap.png",this.cE,this.cF,null,"absolute",0,0,0);this.fJ[ww].appendChild(this.di[wy][0]);this.di[wy][2]="";return wy;};this.jO=function(wA){if(isNaN(wA)){return false;}if(wA<=0){return false;}this.fR.style.filter="progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=100,finishOpacity=100);";this.fR.style.display="";this.ge.style.width="0px";this.gf.innerHTML="0%";this.iX=wA;this.iY=wA;};this.jP=function(wB){if(wB !=this.cZ[this.cZ.length-1]){return false;}this.iY --;var wC=1-this.iY/this.iX;this.ge.style.width=parseInt((wC)*this.gc)+"px";this.fR.style.filter="progid:DXImageTransform.Microsoft.Alpha(style=0,opacity="+parseInt((1-wC) * 100).toString()+",finishOpacity=100);";this.gf.innerHTML=parseInt(wC * 100).toString()+"%";if(this.iY==0){this.fR.style.display="none";}};this.lf=function(wD){if(!this.isInit())return false;try{wD=parseInt(wD);}catch(e){wD=4;}this.cl=wD;this.gT=wD;this.dH();this.dF();};this.hb=function(wE){this.ek("\u628a\u76ee\u6807\u5c42\u7684zIndex\u63d0\u5347\u5230\u6700\u9ad8");var wF=wE==1?0:1;this.fJ[wF].style.zIndex=wF+1;this.fJ[wE].style.zIndex=20;this.gU=wE;};this.getState=function(){return this.bJ;};this.hc=function(){if(this.fI)return true;this.fI=true;this.ku.style.display="";this.ku.style.height="85px";this.hh();};this.hd=function(){if(!this.fI)return true;this.hl();this.gA.style.top="-83px";this.gz.style.top="-80px";this.ku.style.display="none";this.he=-83;this.fI=false;this.dE(6,"off");return true;};this.hg=-83;this.hf=0;this.he=-83;this.hh=function(){var wG=this;if(this.he < this.hf){this.he=parseInt(this.he*0.6);if(this.he==-1)this.he=0;this.gA.style.top=this.he+"px";this.gz.style.top=(this.he+3)+"px";setTimeout(function(){wG.hh();},30);}else{this.he=-5;this.hj();}};this.mfmBoxShake=false;this.hj=function(){var wH=this;if(!this.mfmBoxShake){if(this.he !=0){this.gA.style.top=this.he+"px";this.gz.style.top=(this.he+3)+"px";this.he=parseInt(this.he/3);this.mfmBoxShake=true;}else{this.gB.focus();return;}}else{this.gA.style.top=this.hf+"px";this.gz.style.top=(this.hf+3)+"px";this.mfmBoxShake=false;}setTimeout(function(){wH.hj();},30);};this.hk=function(){this.gD.style.display="";this.gC.style.display="none";this.ku.style.height="320px";};this.hl=function(){this.gD.style.display="none";this.gC.style.display="";this.ku.style.height="85px";};this.lM=[];this.addSearchData=function(wI,wJ,wK){this.lM.push([wI,wJ,wK]);};this.mf="";this.mg=null;this.mS=null;this.hn=null;this.ho=function(wL){var wM=null;if(wL==null){var wN=this.gB.value.replace(/^\s+|\s+$/g,"");if(wN==""){alert("\u8bf7\u8f93\u5165\u672c\u5730\u67e5\u8be2\u5173\u952e\u5b57\uff01r\u6bd4\u5982\uff1a\u56fd\u9645\u5927\u53a6\u3001\u725b\u6392\u3001\u670d\u88c5\u3001\u4f1a\u5c55\u4e2d\u5fc3\u7b49");this.gB.focus();return false;}this.hk();this.gG.innerHTML="\u8bfb\u53d6\u4fe1\u606f...";this.mf=wN;this.mg=null;if(this.lM.length > 0){if(this.lN.value !=""){this.mg=this.lN.value;wM=this.lM[this.mg][0];}}this.mS=wM;this.matchingPOI("fG["+this.iv+"].hq","ran","",wN,10,1,false,wM);}else{this.hk();this.gG.innerHTML="\u8bfb\u53d6\u4fe1\u606f...";this.matchingPOI("fG["+this.iv+"].hq","ran","",this.mf,10,wL,false,this.mS);}return true;};this.hp=null;this.hq=function(wO){if(wO==null || typeof(wO) !="object")return false;if(wO.totalcount==0 || wO.pois.length==0){this.gG.innerHTML="\u6ca1\u6709\u627e\u5230\u60a8\u8981\u7684\u4fe1\u606f\uff0c\u5efa\u8bae\u60a8\u66f4\u6362\u5173\u952e\u5b57\u7ee7\u7eed\u67e5\u8be2";this.gH.innerHTML="";return;}var wP="";for(var wQ=0;wQ<wO.pois.length;wQ++){wP+="<div style=\'padding:3px;border-bottom:dotted 1px #eeeeee;font-size:12px;color:#000000;cursor:pointer;\' onmouseover=\"this.style.backgroundColor=\'#eeeeee\'\" onmouseout=\"this.style.backgroundColor=\'\'\" onclick=\"fG["+this.iv+"].ht("+wQ+");\">"+((wO.pageNo-1)*10+(wQ+1))+"\u3001"+wO.pois[wQ].name+"</div>";}this.gG.innerHTML=wP;var wR=wO.totalpage;var wS="font-size:9pt;color:#555555;";var wT="font-size:9pt;cursor:pointer;color:blue;";var wU=wO.pageNo==1?"<span style=\'"+wS+"\'>\u9996\u9875</span>":"<span style=\'"+wT+"\' onclick=\"fG["+this.iv+"].ho(1)\">\u9996\u9875</span>";var wV=wO.pageNo==wR?"<span style=\'"+wS+"\'>\u4e0b\u4e00\u9875</span>":"<span onclick=\"fG["+this.iv+"].ho("+(wO.pageNo*1+1)+")\" style=\'"+wT+"\'>\u4e0b\u4e00\u9875</span>";var wW=wO.pageNo==1?"<span style=\'"+wS+"\'>\u4e0a\u4e00\u9875</span>":"<span onclick=\"fG["+this.iv+"].ho("+(wO.pageNo*1-1)+")\" style=\'"+wT+"\'>\u4e0a\u4e00\u9875</span>";var wX=wO.pageNo==wR?"<span style=\'"+wS+"\'>\u672b\u9875</span>":"<span onclick=\"fG["+this.iv+"].ho("+wR+")\" style=\'"+wT+"\'>\u672b\u9875</span>";var wY=wU+" "+wW+" \u5171"+wR+"/"+wO.pageNo+"\u9875 "+wV+" "+wX;this.gH.innerHTML=wY;this.hp=wO;};this.ht=function(wZ){var xa=this;var xb=new wingBasePoint();xb.setId("_showlocationpoi");xb.setScreenX(this.hp.pois[wZ].x);xb.setScreenY(this.hp.pois[wZ].y);this.hl();var xc=new wingPicObj();xc.setImageUrl(this.ch[this.ci]+this.ds+"api/location.png");xc.setWidth(27);xc.setHeight(28);xc.setX(-12);xc.setY(-28);xc.setFnOnClick(function(){var xd="\u540d\u79f0\uff1a"+xa.hp.pois[wZ].name+"<br>\u5730\u5740\uff1a"+xa.hp.pois[wZ].address+"<br>\u7ecf\u5ea6\uff1a"+xa.hp.pois[wZ].x+"<br>\u7eac\u5ea6\uff1a"+xa.hp.pois[wZ].y+"<br>";var xe=250;var xf=0;var xg=true;var xh=0;var xi=false;var xj=true;richmap.showMsgBox(xa.hp.pois[wZ].x,xa.hp.pois[wZ].y,xd,xe,xf,xg,xh,xi,xj);});xb.addObj(xc);var xk=new wingTextObj();xk.setText(this.hp.pois[wZ].name);xk.setColor("red");xk.setSize("12px");xk.setBorder("solid 1px red");xk.setBgColor("white");xk.setPadding("2px");xk.setX(15);xk.setY(-28);xb.addObj(xk);richmap.addElement(xb);richmap.zoomTo(this.getLayer(),this.hp.pois[wZ].x,this.hp.pois[wZ].y);this.ej(this.dL["onpoiclick"]+"({\'name\':\'"+this.hp.pois[wZ].name+"\',\'address\':\'"+this.hp.pois[wZ].address+"\',\'x\':\'"+this.hp.pois[wZ].x+"\',\'y\':\'"+this.hp.pois[wZ].y+"\',\'flag\':\'"+(this.mg==null?"":this.lM[this.mg][2])+"\'})");};this.setState=function(xl){try{xl=parseInt(xl);}catch(e){return false;}if(!this.isInit())return false;this.ek("set status:"+this.bN[xl]);if(xl >=20){if(!this.bl[xl - 20])return;if(!this.bl[xl - 20][0].bMapState){this.bl[xl-20][0].onclick();this.bl[xl-20][1].src=this.bl[xl-20][0].sFocusImg;if(this.mn[xl] !="" && this.mn[xl] !=null){this.kk.style.display="";this.kk.innerHTML="<nobr>"+this.mn[xl]+"</nobr>";}return;}}if(xl < 20 && this.bN[xl]==null)return false;if(xl==6){if(this.fI)return true;this.dE(xl,"on");this.hc();return;}if(this.bJ !=xl){var xm=false;if(this.bN[this.bJ]=="Survey"){xm=true;}if(this.bJ==7){if(this.gw=="msie"){this.fuWindow.style.display="none";}else{this.ln();}}if(this.bJ==8){if(this.gw=="msie"){this.ks.style.display="none";}else{this.ln();}}if(this.bJ==9){if(this.gw=="msie"){this.kq.style.display="none";}else{this.ln();}}this.dE(this.bJ,"off");this.bJ=xl;if(xm){this.bC.style.display="none";this.bC.src="";}if(this.bJ >=20){this.bl[this.bJ - 20][2]=false;}this.dE(this.bJ,"on");if(this.bN[this.bJ]=="Survey"){var xn;if(this.gw=="msie"){xn=new rWingUrl(this.ch[this.ci]+this.dr+"Survey.htm");}else{xn=new rWingUrl(this.ch[this.ci]+this.dr+"Survey2.htm");}xn.addParam("l",this.getLayer());xn.addParam("w",this.getWidth());xn.addParam("h",this.getHeight());xn.addParam("req",this.ea());var xo=this;this.bC.src=xn.sUrl;this.bC.style.display="";}else if(xl==7){if(this.gw=="msie"){this.fuWindow.contentWindow.resetBody();setTimeout("void(0)",10);this.fuWindow.style.display="";}else{this.lg=[];this.lh=false;}this.be.style.cursor="url("+this.ch[this.ci]+this.ds+"cursor/"+this.bL[this.bJ]+".cur),"+this.bM[this.bJ];}else if(xl==8){if(this.gw=="msie"){this.ks.contentWindow.resetBody();setTimeout("void(0)",10);this.ks.style.display="";}else{this.lg=[];this.lh=false;}this.be.style.cursor="url("+this.ch[this.ci]+this.ds+"cursor/"+this.bL[this.bJ]+".cur),"+this.bM[this.bJ];}else if(xl==9){if(this.gw=="msie"){this.kq.contentWindow.resetBody();setTimeout("void(0)",10);this.kq.style.display="";}else{this.lg=[];this.lh=false;}this.be.style.cursor="url("+this.ch[this.ci]+this.ds+"cursor/"+this.bL[this.bJ]+".cur),"+this.bM[this.bJ];}else{if(xl >=20){this.bl[xl - 20][2]=true;this.be.style.cursor="url("+this.bl[xl - 20][0].sCursorImg+"),"+this.bl[xl - 20][0].sDefaultCursor;this.bl[xl-20][0].onclick();}else{this.be.style.cursor="url("+this.ch[this.ci]+this.ds+"cursor/"+this.bL[this.bJ]+".cur),"+this.bM[this.bJ];}}if(this.mn[xl] !="" && this.mn[xl] !=null){this.kk.style.display="";this.kk.innerHTML="<nobr>"+this.mn[xl]+"</nobr>";}return true;}return true;};this.hu=function(){if(this.kq==null){this.kq=document.createElement("IFRAME");with(this.kq){marginHeight=0;marginWidth=0;frameBorder=0;style.display="none";allowTransparency=true;style.width=this.getWidth()+"px";style.height=this.getHeight()+"px";};this.kr.appendChild(this.kq);this.kq.contentWindow.document.write(this.gu+"<style>body{cursor:url("+this.ch[this.ci]+this.ds+"cursor/"+this.bL[9]+".cur),"+this.bM[9]+"}</style><SCRIPT>var lastPoint=new Array();var drawLineAble=false;function startPoint(obj){lastPoint.push([event.x,event.y]);var pointLength=lastPoint.length;if(lastPoint.length >=2){var x1=lastPoint[0][0];var y1=lastPoint[0][1];var x2=lastPoint[1][0];var y2=lastPoint[1][1];var distance=Math.sqrt((x2-x1)*(x2-x1)+(y2-y1)*(y2-y1));}else{drawLineAble=true;}}function returnPath(x1,y1,x2,y2){parent.fG["+this.iv+"].hz(x1,y1,x2,y2);}function resetBody(){try{document.getElementById(\"BaseOval\").innerHTML=\"\";}catch(e){}lastPoint=new Array();drawLineAble=false;}function cancelSurvey(){if(event){if(event.button==2){if(lastPoint.length<2)return false;activeLine.setAttribute(\"from\",\"0,0\");activeLine.setAttribute(\"to\",\"0,0\");    returnPath(lastPoint[0][0],lastPoint[0][1],lastPoint[1][0],lastPoint[1][1]);drawLineAble=false;lastPoint=new Array();return false;}}}var activeLine=null;function overPoint(obj){if(drawLineAble){activeLine.setAttribute(\"from\",lastPoint[0][0]+\",\"+lastPoint[0][1]);activeLine.setAttribute(\"to\",event.x+\",\"+event.y);var x1=lastPoint[0][0];var y1=lastPoint[0][1];var x2=event.x;var y2=event.y;var distance=Math.sqrt((x2-x1)*(x2-x1)+(y2-y1)*(y2-y1));obj.innerHTML=\"<v:oval fillcolor=\'#CEE7F7\' strokecolor=\'#0059E7\' style=\'position:absolute;left:\"+(x1-distance).toString()+\";top:\"+(y1-distance).toString()+\";width:\"+distance*2+\";height:\"+distance*2+\";filter:progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=70,finishOpacity=100);\'></v:oval>\";}}function fnOnload(){activeLine=document.getElementById(\"vLine\");}</SCRIPT><DIV id=ActiveLine style=\"Z-INDEX: 11;LEFT: 0px; POSITION: absolute; TOP: 0px\"><v:line id=vLine style=\"LEFT: 0px; POSITION: absolute; TOP: 0px\" from=\"0,0\" to=\"0,0\" strokecolor=\"#184DB5\" strokeweight=\"2pt\"></v:line></DIV><div style=\'width:100%;height:100%;background-color:#ffffff;filter:progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=3,finishOpacity=100);\' >&nbsp;</div><DIV id=BaseOval style=\"Z-INDEX: 10; LEFT: 0px; WIDTH: 100%; POSITION: absolute; TOP: 0px; HEIGHT: 560px\"></DIV><script language=\"javascript\">document.body.onmouseup=function(){cancelSurvey();};document.body.onmousemove=function(){overPoint(document.getElementById(\'BaseOval\'));};document.body.onclick=function(){startPoint(document.getElementById(\'BaseOval\'));};document.body.onload=function(){fnOnload();};</script></body></html>");this.kq.contentWindow.location.reload();}return true;};this.li=function(){if(this.hw==null){this.hw=this.ed(0,0,0,26,26,null,"off");this.hw.innerHTML="";this.hw.style.background="";this.hw.style.display="none";this.hw.style.overflow="hidden";this.hw.style.lineHeight="0px";this.gx.appendChild(this.hw);}};this.hx=function(){if(this.gw=="firefox"||this.gw=="safari"||this.gw=="opera"){this.lm();}if(this.ks==null && this.gw=="msie"){this.ks=document.createElement("IFRAME");with(this.ks){marginHeight=0;marginWidth=0;frameBorder=0;style.display="none";allowTransparency=true;style.width=this.getWidth()+"px";style.height=this.getHeight()+"px";};this.kt.appendChild(this.ks);this.ks.contentWindow.document.write(this.gu+"<style>body{cursor:url("+this.ch[this.ci]+this.ds+"cursor/"+this.bL[8]+".cur),"+this.bM[8]+"}</style><SCRIPT language=javascript>var lastPoint=new Array();var drawLineAble=false;var drawPointAble=true;var dragAble=false;var tempx,tempy;var x,y;var eventsource=null;var dragapproved=true;var eventnum=null;var activeLine=null;var activeLine1=null;var activeShape=null;function nodrags(){if(event.button==2)return;dragapproved=false;returnPath(lastPoint);var str=lastPoint.join(\",\");str=\"m  \"+lastPoint[0][0]+\",\"+lastPoint[0][1]+\"  l \"+str+\"  e\";activeShape.path=str;}function drags(obj,num){if(event.button==2)return;if(!dragAble)return;dragapproved=true;tempx=obj.style.pixelLeft;tempy=obj.style.pixelTop;x=event.clientX;y=event.clientY;eventnum=num;eventsource=obj;document.onmousemove=move;}function move(){if(dragapproved){var newleft=tempx+event.clientX - x;var newtop=tempy+event.clientY - y;eventsource.style.pixelLeft=newleft;eventsource.style.pixelTop=newtop;drawLine();return false;}}function resetBody(){try{document.getElementById(\"BaseLine\").innerHTML=\"\";}catch(e){}lastPoint=new Array();try{activeShape.path=\'m 0,0 l 0,0 e\';}catch(e){}drawLineAble=false;drawPointAble=true;dragAble=false;}function drawLine(){var sourceObj=eventsource.getAttribute(\"source\");var objectObj=eventsource.getAttribute(\"object\");sourceObj=document.getElementById(\"ln\"+sourceObj);objectObj=document.getElementById(\"ln\"+objectObj);sourceObj.from=eventsource.style.pixelLeft+\",\"+eventsource.style.pixelTop;objectObj.to=eventsource.style.pixelLeft+\",\"+eventsource.style.pixelTop;lastPoint[eventnum][0]=eventsource.style.pixelLeft;lastPoint[eventnum][1]=eventsource.style.pixelTop;if(eventnum==lastPoint.length-1){lastPoint[0][0]=eventsource.style.pixelLeft;lastPoint[0][1]=eventsource.style.pixelTop;lastPoint[lastPoint.length-1][0]=eventsource.style.pixelLeft;lastPoint[lastPoint.length-1][1]=eventsource.style.pixelTop;}}function startPoint(obj){var ls,le;if(!drawPointAble)return;lastPoint.push([event.x,event.y]);var pointLength=lastPoint.length;if(lastPoint.length >=2){ls=pointLength-1;le=pointLength;if(Math.abs(lastPoint[pointLength-1][0]-lastPoint[0][0])<15){if(Math.abs(lastPoint[pointLength-1][1]-lastPoint[0][1])<15){lastPoint[pointLength-1][0]=lastPoint[0][0];lastPoint[pointLength-1][1]=lastPoint[0][1];ls=pointLength-1;le=1;}}if(pointLength>2){var $path=lastPoint.join(\",\");$path=\"m  \"+lastPoint[0][0]+\",\"+lastPoint[0][1]+\"  l \"+$path+\" \"+lastPoint[0][0]+\",\"+lastPoint[0][1]+\" e\";activeShape.path=$path;}  obj.innerHTML+=\"<v:line id=\'ln\"+(pointLength-1).toString()+\"\' style=\'position:absolute;left:0px;top:0px;\' strokecolor=\'#FFcc99\' strokeweight=\'2\' from=\'\"+lastPoint[pointLength-1][0]+\",\"+lastPoint[pointLength-1][1]+\"\' to=\'\"+lastPoint[pointLength-2][0]+\",\"+lastPoint[pointLength-2][1]+\"\'></v:line><v:oval style=\'POSITION:absolute;Z-INDEX:1;LEFT:\"+(lastPoint[pointLength-1][0]-1)+\";TOP:\"+(lastPoint[pointLength-1][1]-1)+\";width:5;height:5;\' onmousedown=\'drags(this,\"+(pointLength-1).toString()+\")\' onmouseup=\'nodrags()\' source=\'\"+ls+\"\' object=\'\"+le+\"\' fillcolor=\'red\'/>\";}else{drawLineAble=true;}}function cancelSurvey(){if(event){if(event.button==2){if(!drawPointAble)return;if(lastPoint.length > 2){drawPointAble=false;dragAble=true;}drawLineAble=false;if(lastPoint.length < 2){document.getElementById(\"BaseLine\").innerHTML=\"\";lastPoint=new Array();return;}activeLine.setAttribute(\"from\",\"0,0\");activeLine.setAttribute(\"to\",\"0,0\");activeLine1.setAttribute(\"from\",\"0,0\");activeLine1.setAttribute(\"to\",\"0,0\");activeShape.setAttribute(\"path\",\"\");var len=lastPoint.length;if(lastPoint[0][0]==lastPoint[len-1][0]  && lastPoint[0][1]==lastPoint[len-1][1]){}else{lastPoint.push([lastPoint[0][0],lastPoint[0][1]]);document.getElementById(\"BaseLine\").innerHTML+=\"<v:line id=\'ln\"+len.toString()+\"\' style=\'position:absolute;left:0px;top:0px;\' strokecolor=\'#FFcc99\' strokeweight=\'2\' from=\'\"+lastPoint[0][0]+\",\"+lastPoint[0][1]+\"\' to=\'\"+lastPoint[len-1][0]+\",\"+lastPoint[len-1][1]+\"\'></v:line><v:oval style=\'POSITION:absolute;Z-INDEX:1;LEFT:\"+(lastPoint[len][0]-1)+\";TOP:\"+(lastPoint[len][1]-1)+\";width:5;height:5;\' onmousedown=\'drags(this,\"+len+\")\' onmouseup=\'nodrags()\' source=\'\"+len.toString()+\"\' object=\'1\' fillcolor=\'red\'/>\";}var str=\"\";returnPath(lastPoint);return false;}}}function returnPath(s){parent.fG["+this.iv+"].hy(s);return true;}function overPoint(obj){if(drawLineAble){var len=lastPoint.length;activeLine.setAttribute(\"from\",lastPoint[0][0]+\",\"+lastPoint[0][1]);activeLine.setAttribute(\"to\",event.x+\",\"+event.y);if(len>1){activeLine1.setAttribute(\"from\",lastPoint[lastPoint.length-1][0]+\",\"+lastPoint[lastPoint.length-1][1]);activeLine1.setAttribute(\"to\",event.x+\",\"+event.y);}}}function fnOnload(){activeLine=document.getElementById(\"vLine\");activeLine1=document.getElementById(\"vLine1\");activeShape=document.getElementById(\"vShape\");textObj=document.getElementById(\"showText\");}</SCRIPT><DIV id=ActiveLine style=\"LEFT: 0px; position: absolute; TOP: 0px\"><v:line id=vLine style=\"LEFT: 0px; position: absolute; TOP: 0px\" from=\"0,0\" to=\"0,0\" strokecolor=\"#C6C3AD\" strokeweight=\"3pt\"></v:line></DIV><DIV id=ActiveLine1 style=\"LEFT: 0px; position: absolute; TOP: 0px\"><v:line id=vLine1 style=\"LEFT: 0px; position: absolute; TOP: 0px\" from=\"0,0\" to=\"0,0\" strokecolor=\"#C6C3AD\" strokeweight=\"3pt\"></v:line></DIV><div id=ActiveShape style=\"LEFT:0px; position:absolute; TOP:0px\"><v:shape id=\"vShape\" style=\'Z-INDEX:0;LEFT:0px;position:absolute;TOP:0px;width:100px;height:100px;filter:progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=10,finishOpacity=100);\' coordsize=\'100,100\' filled=\'t\' fillcolor=\"#0065FF\" strokecolor=\"#6379F7\" path=\'\' /></div><div style=\'width:100%;height:100%;background-color:#ffffff;filter:progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=3,finishOpacity=100);\' >&nbsp;</div><DIV id=BaseLine style=\"Z-INDEX: 10; LEFT: 0px; WIDTH: 100%; position: absolute; TOP: 0px; HEIGHT: 560px\"></DIV><script language=\"javascript\">document.body.onmouseup=function(){cancelSurvey();};document.body.onmousemove=function(){overPoint(document.getElementById(\'BaseLine\'));};document.body.onclick=function(){startPoint(document.getElementById(\'BaseLine\'));};document.body.onload=function(){fnOnload()};</script></body></html>");this.ks.contentWindow.location.reload();}return true;};this.fD=function(){if(this.gw=="firefox"){this.lm();}if(this.fuWindow==null && this.gw=="msie"){this.fuWindow=document.createElement("IFRAME");with(this.fuWindow){marginHeight=0;marginWidth=0;frameBorder=0;style.display="none";allowTransparency=true;style.width=this.getWidth()+"px";style.height=this.getHeight()+"px";};this.fu.appendChild(this.fuWindow);this.fuWindow.contentWindow.document.write(this.gu+"<style>body{cursor:url("+this.ch[this.ci]+this.ds+"cursor/"+this.bL[7]+".cur),"+this.bM[7]+"}</style><SCRIPT language=javascript>var lastPoint=new Array();var drawLineAble=false;var drawPointAble=true;var dragAble=false;var tempx,tempy;var x,y;var eventsource=null;var dragapproved=true;var eventnum=null;var activeLine=null;var activeLine1=null;var activeShape=null;function nodrags(){if(event.button==2)return;dragapproved=false;returnPath(lastPoint);var str=lastPoint.join(\",\");str=\"m  \"+lastPoint[0][0]+\",\"+lastPoint[0][1]+\"  l \"+str+\"  e\";activeShape.path=str;}function drags(obj,num){if(event.button==2)return;if(!dragAble)return;dragapproved=true;tempx=obj.style.pixelLeft;tempy=obj.style.pixelTop;x=event.clientX;y=event.clientY;eventnum=num;eventsource=obj;document.onmousemove=move;}function move(){if(dragapproved){var newleft=tempx+event.clientX - x;var newtop=tempy+event.clientY - y;eventsource.style.pixelLeft=newleft;eventsource.style.pixelTop=newtop;drawLine();return false;}}function resetBody(){try{document.getElementById(\"BaseLine\").innerHTML=\"\";}catch(e){}lastPoint=new Array();try{activeShape.path=\'m 0,0 l 0,0 e\';}catch(e){}drawLineAble=false;drawPointAble=true;dragAble=false;}function drawLine(){var sourceObj=eventsource.getAttribute(\"source\");var objectObj=eventsource.getAttribute(\"object\");sourceObj=document.getElementById(\"ln\"+sourceObj);objectObj=document.getElementById(\"ln\"+objectObj);sourceObj.from=eventsource.style.pixelLeft+\",\"+eventsource.style.pixelTop;objectObj.to=eventsource.style.pixelLeft+\",\"+eventsource.style.pixelTop;lastPoint[eventnum][0]=eventsource.style.pixelLeft;lastPoint[eventnum][1]=eventsource.style.pixelTop;if(eventnum==lastPoint.length-1){lastPoint[0][0]=eventsource.style.pixelLeft;lastPoint[0][1]=eventsource.style.pixelTop;lastPoint[lastPoint.length-1][0]=eventsource.style.pixelLeft;lastPoint[lastPoint.length-1][1]=eventsource.style.pixelTop;}}function startPoint(obj){var ls,le;if(!drawPointAble)return;lastPoint.push([event.x,event.y]);var pointLength=lastPoint.length;if(lastPoint.length >=2){ls=pointLength-1;le=pointLength;if(Math.abs(lastPoint[pointLength-1][0]-lastPoint[0][0])<15){if(Math.abs(lastPoint[pointLength-1][1]-lastPoint[0][1])<15){lastPoint[pointLength-1][0]=lastPoint[0][0];lastPoint[pointLength-1][1]=lastPoint[0][1];ls=pointLength-1;le=1;}}if(pointLength>2){var $path=lastPoint.join(\",\");$path=\"m  \"+lastPoint[0][0]+\",\"+lastPoint[0][1]+\"  l \"+$path+\" \"+lastPoint[0][0]+\",\"+lastPoint[0][1]+\" e\";activeShape.path=$path;}  obj.innerHTML+=\"<v:line id=\'ln\"+(pointLength-1).toString()+\"\' style=\'position:absolute;left:0px;top:0px;\' strokecolor=\'#FFcc99\' strokeweight=\'2\' from=\'\"+lastPoint[pointLength-1][0]+\",\"+lastPoint[pointLength-1][1]+\"\' to=\'\"+lastPoint[pointLength-2][0]+\",\"+lastPoint[pointLength-2][1]+\"\'></v:line><v:oval style=\'POSITION:absolute;Z-INDEX:1;LEFT:\"+(lastPoint[pointLength-1][0]-1)+\";TOP:\"+(lastPoint[pointLength-1][1]-1)+\";width:5;height:5;\' onmousedown=\'drags(this,\"+(pointLength-1).toString()+\")\' onmouseup=\'nodrags()\' source=\'\"+ls+\"\' object=\'\"+le+\"\' fillcolor=\'red\'/>\";}else{drawLineAble=true;}}function cancelSurvey(){if(event){if(event.button==2){if(!drawPointAble)return;if(lastPoint.length > 2){drawPointAble=false;dragAble=true;}drawLineAble=false;if(lastPoint.length < 2){document.getElementById(\"BaseLine\").innerHTML=\"\";lastPoint=new Array();return;}activeLine.setAttribute(\"from\",\"0,0\");activeLine.setAttribute(\"to\",\"0,0\");activeLine1.setAttribute(\"from\",\"0,0\");activeLine1.setAttribute(\"to\",\"0,0\");activeShape.setAttribute(\"path\",\"\");var len=lastPoint.length;if(lastPoint[0][0]==lastPoint[len-1][0]  && lastPoint[0][1]==lastPoint[len-1][1]){}else{lastPoint.push([lastPoint[0][0],lastPoint[0][1]]);document.getElementById(\"BaseLine\").innerHTML+=\"<v:line id=\'ln\"+len.toString()+\"\' style=\'position:absolute;left:0px;top:0px;\' strokecolor=\'#FFcc99\' strokeweight=\'2\' from=\'\"+lastPoint[0][0]+\",\"+lastPoint[0][1]+\"\' to=\'\"+lastPoint[len-1][0]+\",\"+lastPoint[len-1][1]+\"\'></v:line><v:oval style=\'POSITION:absolute;Z-INDEX:1;LEFT:\"+(lastPoint[len][0]-1)+\";TOP:\"+(lastPoint[len][1]-1)+\";width:5;height:5;\' onmousedown=\'drags(this,\"+len+\")\' onmouseup=\'nodrags()\' source=\'\"+len.toString()+\"\' object=\'1\' fillcolor=\'red\'/>\";}var str=\"\";returnPath(lastPoint);return false;}}}function returnPath(s){parent.fG["+this.iv+"].hy(s);return true;}function overPoint(obj){if(drawLineAble){var len=lastPoint.length;activeLine.setAttribute(\"from\",lastPoint[0][0]+\",\"+lastPoint[0][1]);activeLine.setAttribute(\"to\",event.x+\",\"+event.y);if(len>1){activeLine1.setAttribute(\"from\",lastPoint[lastPoint.length-1][0]+\",\"+lastPoint[lastPoint.length-1][1]);activeLine1.setAttribute(\"to\",event.x+\",\"+event.y);}}}function fnOnload(){activeLine=document.getElementById(\"vLine\");activeLine1=document.getElementById(\"vLine1\");activeShape=document.getElementById(\"vShape\");textObj=document.getElementById(\"showText\");}</SCRIPT><DIV id=ActiveLine style=\"LEFT: 0px; position: absolute; TOP: 0px\"><v:line id=vLine style=\"LEFT: 0px; position: absolute; TOP: 0px\" from=\"0,0\" to=\"0,0\" strokecolor=\"#C6C3AD\" strokeweight=\"3pt\"></v:line></DIV><DIV id=ActiveLine1 style=\"LEFT: 0px; position: absolute; TOP: 0px\"><v:line id=vLine1 style=\"LEFT: 0px; position: absolute; TOP: 0px\" from=\"0,0\" to=\"0,0\" strokecolor=\"#C6C3AD\" strokeweight=\"3pt\"></v:line></DIV><div id=ActiveShape style=\"LEFT:0px; position:absolute; TOP:0px\"><v:shape id=\"vShape\" style=\'Z-INDEX:0;LEFT:0px;position:absolute;TOP:0px;width:100px;height:100px;filter:progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=10,finishOpacity=100);\' coordsize=\'100,100\' filled=\'t\' fillcolor=\"#0065FF\" strokecolor=\"#6379F7\" path=\'\' /></div><div style=\'width:100%;height:100%;background-color:#ffffff;filter:progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=3,finishOpacity=100);\' >&nbsp;</div><DIV id=BaseLine style=\"Z-INDEX: 10; LEFT: 0px; WIDTH: 100%; position: absolute; TOP: 0px; HEIGHT: 560px\"></DIV><script language=\"javascript\">document.body.onmouseup=function(){cancelSurvey();};document.body.onmousemove=function(){overPoint(document.getElementById(\'BaseLine\'));};document.body.onclick=function(){startPoint(document.getElementById(\'BaseLine\'));};document.body.onload=function(){fnOnload()};</script></body></html>");this.fuWindow.contentWindow.location.reload();}return true;};this.lj=0;this.lk=0;this.lh=false;this.kV=function(){this.kj.innerHTML='<canvas width=\"'+(this.getWidth()*5)+'\" height=\"'+(this.getHeight()*5)+'\"></canvas>';this.kW=this.kj.firstChild.getContext('2d');};this.lm=function(){this.kt.innerHTML='<canvas width=\"'+(this.getWidth())+'\" height=\"'+(this.getHeight())+'\"></canvas>';this.kX=this.kt.firstChild.getContext('2d');};this.ln=function(){this.kX.clearRect(0,0,this.getWidth(),this.getHeight());};this.lp=function(xq,xr,xs,xt){if(this.lh)return;this.lg.push([xq,xr,xs,xt]);var xu="";this.lq();};this.lq=function(){this.kX.beginPath();this.kX.clearRect(0,0,this.getWidth(),this.getHeight());if(this.lg.length > 1){this.kX.lineWidth=2;this.kX.strokeStyle="#FFCC99";this.kX.globalAlpha=1;this.kX.moveTo(this.lg[0][0],this.lg[0][1]);for(var xv=1;xv<this.lg.length;xv++){this.kX.lineTo(this.lg[xv][0],this.lg[xv][1]);}if(!this.lh)this.kX.lineTo(this.lj,this.lk);this.kX.closePath();this.kX.stroke();}if(this.lg.length > 2){this.kX.beginPath();this.kX.fillStyle="#0065FF";this.kX.globalAlpha=0.1;this.kX.moveTo(this.lg[0][0],this.lg[0][1]);for(var xw=1;xw<this.lg.length;xw++){this.kX.lineTo(this.lg[xw][0],this.lg[xw][1]);}this.kX.fill();}};this.lr=function(){if(this.lh)return;this.lh=true;this.lq();var xx=this.lg;xx.push([0,0]);this.hy(xx);xx=null;};this.hy=function(xy){var xz="";for(var xA=0;xA<xy.length-1;xA++){if(xA !=0)xz+=" ";xz+=parseInt(xy[xA][0] * this.cC+this.cO)+" ";xz+=parseInt(xy[xA][1] * this.cC+this.cP);}this.ej(this.dL["onpolygonselect"]+"(\'"+xz+"\')");return true;};this.ls=function(){if(this.lg.length==2){var xB=Math.sqrt((this.lj-this.lg[0])*(this.lj-this.lg[0])+(this.lk-this.lg[1])*(this.lk-this.lg[1]));this.kX.beginPath();this.kX.clearRect(0,0,this.getWidth(),this.getHeight());this.kX.fillStyle="#0065FF";this.kX.globalAlpha=0.1;this.kX.moveTo(this.lg[0],this.lg[1]);this.kX.arc(this.lg[0],this.lg[1],xB,0,Math.PI*2,true);this.kX.fill();this.kX.globalAlpha=1;this.kX.strokeStyle="#FFCC99";this.kX.lineWidth=2;this.kX.stroke();}};this.lt=function(){if(this.lh)return;this.lh=true;this.ls();this.hz(this.lg[0],this.lg[1],this.lj,this.lk);};this.hz=function(xC,xD,xE,xF){var xG=parseInt(xC * this.cC+this.cO);var xH=parseInt(xE * this.cC+this.cO);var xI=parseInt(xD * this.cC+this.cP);var xJ=parseInt(xF * this.cC+this.cP);var xK=this.getLengthByXY(xG,xI,xH,xJ);this.ej(this.dL["onovalselect"]+"("+xG+","+xI+","+xK+","+xH+","+xJ+")");return true;};this.hA=function(xL){var xM=xL||window.event;var xN , event_Y;if(this.gw=="firefox"){var xO=this.hP(xL).split(",");xN=parseInt(xO[0]);event_Y=parseInt(xO[1]);}var xP=xM.x ? xM.x : xN;var xQ=xM.y ? xM.y : event_Y;if(this.gw=="opera"){xP=xM.pageX;xQ=xM.pageY;}try{this.kk.style.left=(xP+10)+"px";this.kk.style.top=(xQ+10)+"px";}catch(e){}};this.dE=function(xR,xS){if(xR==null || xS==null)return false;try{if(xR >=20){if(xS=="on"){this.bl[xR - 20][1].src=this.bl[xR - 20][0].sFocusImg;}else if(xS=="off"){this.bl[xR - 20][1].src=this.bl[xR - 20][0].sNormalImg;}else if(xS=="over"){this.bl[xR - 20][1].src=this.bl[xR - 20][0].sActiveImg;}return true;}switch(xR){case 0:this.bE.src=this.ch[this.ci]+this.ds+"toolbar/"+this.bL[xR]+"_"+xS+".png";break;case 1:this.bF.src=this.ch[this.ci]+this.ds+"toolbar/"+this.bL[xR]+"_"+xS+".png";break;case 2:this.bG.src=this.ch[this.ci]+this.ds+"toolbar/"+this.bL[xR]+"_"+xS+".png";break;case 3:this.bH.src=this.ch[this.ci]+this.ds+"toolbar/"+this.bL[xR]+"_"+xS+".png";break;case 4:this.bI.src=this.ch[this.ci]+this.ds+"toolbar/"+this.bL[xR]+"_"+xS+".png";break;case 5:this.fS.src=this.ch[this.ci]+this.ds+"toolbar/"+this.bL[xR]+"_"+xS+".png";break;case 6:this.bW.src=this.ch[this.ci]+this.ds+"toolbar/"+this.bL[xR]+"_"+xS+".png";break;case 7:this.fr.src=this.ch[this.ci]+this.ds+"toolbar/"+this.bL[xR]+"_"+xS+".png";break;case 8:this.bY.src=this.ch[this.ci]+this.ds+"toolbar/"+this.bL[xR]+"_"+xS+".png";break;case 9:this.bZ.src=this.ch[this.ci]+this.ds+"toolbar/"+this.bL[xR]+"_"+xS+".png";break;default:return false;break;}}catch(e){};return true;};this.dF=function(){var xT=this.cL[this.getLayer()-1];xT=xT >=1000?((xT/1000).toString()+"km"):(xT.toString()+"m");this.bw.innerHTML="<span style=\'font-size:9pt;font-weight:bold;\'><nobr>"+xT+"</nobr></span>";};this.hB=function(){this.kU=this.ed(0);this.kQ.appendChild(this.kU);var xU=null;var xV=null;var xW=this;for(var xX=0;xX<7;xX++){xU=this.ed(0,0,0,10,10);this.kU.appendChild(xU);if(xX==6){if(this.gw=="firefox"){xU.style.whiteSpace="-moz-pre-wrap";xU.style.wordBreak="break-all";xU.style.overflow="auto";}else{xU.style.wordBreak="break-all";}xU.style.padding="3 0 0 0";this.kUContent=xU;continue;}xU.style.overflow="hidden";xV=this.ed(0,0,0,690,786);if(xX==5){var xY=xV;xV["onmouseover"]=function(){xY.style.top="-690px";};xV["onmouseout"]=function(){xY.style.top="-703px";};xV["onclick"]=function(){xW.closeMsgBox();};xV.style.cursor="pointer";xV.title="\u5173\u95ed\u5bf9\u8bdd\u6846";}if(this.gw=="firefox"||this.gw=="safari"|| !!document.documentMode||this.gw=="opera"){xV.style.background="url(\'"+this.ch[this.ci]+this.ds+"api/dialog.png\')";}else{xV.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=crop,src=\'"+this.ch[this.ci]+this.ds+"api/dialog.png\')";}xU.appendChild(xV);}xV=null;xU=null;return true;};this.hBShadow=function(){this.kP=this.ed(0);this.kO.appendChild(this.kP);var xZ=null;var ya=null;for(var yb=0;yb<7;yb++){xZ=this.ed(0,0,0,10,10);xZ.style.overflow="hidden";this.kP.appendChild(xZ);ya=this.ed(0,0,0,1044,800);if(this.gw=="firefox"||this.gw=="safari"||!!document.documentMode||this.gw=="opera"){ya.style.background="url(\'"+this.ch[this.ci]+this.ds+"api/dialogBg.png\')";}else{ya.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=crop,src=\'"+this.ch[this.ci]+this.ds+"api/dialogBg.png\')";}xZ.appendChild(ya);}ya=null;xZ=null;return true;};this.hC=function(yc,yd,ye,yf,yg){if(this.kP==null)return false;if(yc<yd)return false;yc=yc+30;var yh=yg?45:140;var yi=yg?40:60;var yj=yg?615:470;var yk=parseInt((yc-yh)*0.3+0.99);var yl=parseInt((yc-yh)*0.7-0.99);if(this.kN){ye=ye - yk;yf=yf - 30 - yd - yi;}else{ye=ye - yk - 30;yf=yf - 30 - yd - yi+8;}this.kP.style.left=ye+"px";this.kP.style.top=yf+"px";this.hF(this.kP.childNodes[0],yc+10,30,yd+8,0,0,0);this.hF(this.kP.childNodes[1],35,30,18+yc+yd,0,-752,0);this.hF(this.kP.childNodes[2],yc,yd,15,30,yd-280,-30);this.hF(this.kP.childNodes[3],yd+20,yd,15+yc,30,yd-1022,-30);this.hF(this.kP.childNodes[4],yk+30,30,0,30+yd,-25,-310);this.hF(this.kP.childNodes[5],yh,yi,yk+30,30+yd,-yj,-310);this.hF(this.kP.childNodes[6],yl+30,30,yk+30+yh,30+yd,yl-424,-310);};this.hD=false;this.hE=function(ym,yn,yo,yp,yq){if(this.kU==null)return false;var yr=15;var ys=ym+yr*2;var yt=yn+yr*2+(this.hD?0:10);var yu=yq?40:98;var yv=yq?50:95;var yw=yq?370:0;var yx=parseInt((ys-yu)*0.4+0.99);var yy=parseInt((ys-yu)*0.6 - 0.99);if(this.kN){yo=yo - yx;yp=yp - yt - yv+25 - 3;}else{yo=yo - yx - 7;yp=yp - yt - yv+25+4;}this.kU.style.left=yo+"px";this.kU.style.top=yp+"px";this.hF(this.kU.childNodes[0],ys-25,yt-25,0,0,0,0);this.hF(this.kU.childNodes[1],24,yt-25,ys-25,0,24-690,0);this.hF(this.kU.childNodes[2],yx,24,0,yt-25,0,-666);this.hF(this.kU.childNodes[3],yu,yv,yx,yt-25,-yw,-691);this.hF(this.kU.childNodes[4],yy+2,24,yx+yu-1,yt-25,yy-689,-666);if(this.hD){this.kU.childNodes[5].style.display="none";}else{this.kU.childNodes[5].style.display="";this.hF(this.kU.childNodes[5],13,13,ys-24,10,-354,-703);}this.hF(this.kU.childNodes[6],ym,yn,yr,yr+(this.hD?0:10));};this.hF=function(yz,yA,yB,yC,yD,yE,yF){with(yz){if(yA !=null && yB !=null){style.width=yA+"px";style.height=yB+"px";}style.left=yC+"px";style.top=yD+"px";if(yE !=null && yF !=null){firstChild.style.left=yE+"px";firstChild.style.top=yF+"px";}}};this.showMsgBox=function(yG,yH,yI,yJ,yK,yL,yM,yN,yO){if(this.kP==null)this.hBShadow();if(this.kU==null)this.hB();this.kP.style.display="";this.kU.style.display="";this.kG=yJ;this.kH=yK;this.kI=yG;this.kJ=yH;this.kK=yL;this.kL=yI;this.kM=yM;this.kN=yO==null?false:yO;this.hD=yN==null?false:yN;switch(yM){case 1:this.hG();this.zoomTo(this.getLayer(),yG,yH);break;case 2:this.hG();break;default:this.hG();break;}};this.gq=function(){if(this.kP==null || this.kU==null)return;if(this.kP.style.display=="none")return;var yP=this.getCoordFromScreenX(this.getMoveWindowCoordX(),this.kI);var yQ=this.getCoordFromScreenY(this.getMoveWindowCoordY(),this.kJ);this.hE(this.kG,this.kH,yP,yQ,this.kK);this.hC(this.kG,this.kH*0.3,yP,yQ,this.kK);};this.hG=function(){if(this.kP==null || this.kU==null)return;if(this.kP.style.display=="none")return;var yR=this.getCoordFromScreenX(this.getMoveWindowCoordX(),this.kI);var yS=this.getCoordFromScreenY(this.getMoveWindowCoordY(),this.kJ);var yT=this.kG;var yU=this.kH;var yV=this.kK;this.hF(this.kUContent,yT,yU,15,25);this.kUContent.innerHTML=this.kL;if(yU==0 || yT==0){this.kUContent.style.overflow="visible";yT=yT==0?this.kUContent.offsetWidth:yT;this.kUContent.style.width=yT+"px";if((this.gw=="firefox"||this.gw=="safari"||this.gw=="opera") && yU==0){this.kUContent.style.whiteSpace="normal";var yW=document.createElement("div");yW.style.position="absolute";yW.style.width=yT+"px";yW.style.whiteSpace="-moz-pre-wrap";yW.style.wordBreak="break-all";yW.style.overflow="auto";yW.style.left="-10000px";yW.style.top="-10000px";yW.innerHTML=this.kL;document.body.appendChild(yW);yU=yW.offsetHeight;yW.parentNode.removeChild(yW);yW=null;}yU=yU==0?this.kUContent.offsetHeight:yU;}else{this.kUContent.style.overflow="auto";}this.kUContent.innerHTML=this.kL;if(yU*0.3>yT){yT=parseInt(yU * 0.3)+5;this.hF(this.kUContent,yT,0,15,25);yU=this.kUContent.offsetHeight;}yT=yT < 120?120:yT;yU=yU < 60?60:yU;if(yT>580 || yU > 580){yT=yT>580?580:yT;yU=yU>580?580:yU;this.kUContent.style.overflow="auto";}yV=yV==null?false:yV;if(yT<180 || yU<80 || yT+50 > this.getWidth() || yU+50 > this.getHeight())yV=true;this.kG=yT;this.kH=yU;this.kK=yV;this.hE(yT,yU,yR,yS,yV);this.hC(yT,yU*0.3,yR,yS,yV);};this.closeMsgBox=function(){if(this.kP){this.kP.style.display="none";this.kU.style.display="none";}};this.hH=function(){this.kP=null;this.kU=null;this.kUContent=null;};this.showDialog=function(yX,yY,yZ,za,zb,zc){this.showMsgBox(yX,yY,zc+"<br>"+zb,yZ,za,false,1,false,true);};this.hI=function(objid,parent){if(parent){return parent.getElementById(objid);}else{return document.getElementById(objid);}};this.closeDialog=function(){this.clearElement("richmapInnerDialog",false);return true;};this.setLayer=function(zd){var ze=this.getCenter();if(ze !=false){this.zoomTo(zd,ze[0],ze[1]);}};this.getLayer=function(){if(!this.isInit())return false;return this.cl;};this.setWidth=function(zf){if(this.isInit()){this.resizeMap(zf,this.getHeight());}else{this.cm=zf;}};this.getWidth=function(){return this.cm;};this.setHeight=function(){if(this.isInit()){this.resizeMap(this.getWidth(),nHeight);}else{this.cn=nHeight;}};this.getHeight=function(){return this.cn;};this.setCenter=function(zg,zh){if(zg==null || zh==null){zg=this.m_nMenuX;zh=this.m_nMenuY;}this.zoomTo(this.getLayer(),zg,zh);};this.getCenter=function(zi){if(!this.isInit())return false;var zj=[];if(zi !="eaglemap"){zj[0]=parseInt(this.cO+(this.getWidth() * this.cC)*0.5);zj[1]=parseInt(this.cP+(this.getHeight() * this.cC)*0.5);}else{zj[0]=parseInt(this.jp+(this.jb * this.jy)*0.5);zj[1]=parseInt(this.jq+(this.jc * this.jy)*0.5);}return zj;};this.dG=function(zk,zl,zm){if(zm==null || zm=="basemap"){this.cO=parseInt(zk - (this.getWidth() * this.cC)*0.5);this.cP=parseInt(zl - (this.getHeight() * this.cC)*0.5);return true;}if(zm=="eaglemap"){this.jp=parseInt(zk - (this.jb * this.jy)*0.5);this.jq=parseInt(zl - (this.jc * this.jy)*0.5);}return false;};this.center=function(zn,zo,zp){if(!this.isInit())return false;if(zp==null)zp=this.getLayer();return this.zoomTo(zp,zn,zo);};this.zoomToPosition=function(zq,zr,zs,zt,zu){try{zs=parseInt(zs);zt=parseInt(zt);zq=parseFloat(zq);zr=parseFloat(zr);}catch(e){return false;}if(zu==null)zu=this.getLayer();var zv=this.dH(zu);if(!zv)return false;var zw=zq+(this.getWidth() * 0.5 - zs) * zv;var zx=zr+(this.getHeight() * 0.5 - zt) * zv;this.zoomTo(zu,zw,zx,null,zs,zt);return true;};this.dH=function(zy){if(zy==null){this.cC=this.cM[this.getLayer()-1]*0.001;this.jy=this.cM[this.jr - 1] * 0.001;return true;}else{try{zy=parseInt(zy);}catch(e){return false;}if(this.cM[zy-1]==null){return false;}return this.cM[zy-1]/1000;}};this.getMBR=function(zz,zA,zB,zC){if(!this.isInit())return false;var zD=[];if(zC==null)zC=this.getLayer();var zE=this.dH(zC);if(zB !="eaglemap"){zD[0]=parseInt(this.cO);zD[1]=parseInt(this.cP+this.getHeight() * this.cC);zD[2]=parseInt(this.cO+this.getWidth() * this.cC);zD[3]=parseInt(this.cP);}else{zD[0]=parseInt(this.jp);zD[1]=parseInt(this.jq+this.jc * this.jy);zD[2]=parseInt(this.jp+this.jb * this.jy);zD[3]=parseInt(this.jq);}return zD;};this.setMaxLayer=function(zF){if(this.isInit()){return false;}if(isNaN(zF))return false;zF=parseInt(zF);if(zF < 6 || zF > 14)return false;this.cb=zF;};this.getMaxLayer=function(){return this.cb;};this.setMinLayer=function(zG){if(this.isInit()){return false;}if(isNaN(zG))return false;zG=parseInt(zG);if(zG < 5 || zG > 13)return false;this.cc=zG;};this.getMinLayer=function(){return this.cc;};this.getStartLayer=function(){return this.cd;};this.getCoordFromScreenX=function(zH,zI,zJ){if(zJ !="eaglemap"){return parseInt((zI - zH) / this.cC);}else{return parseInt((zI - zH) / this.jy);}};this.getCoordFromScreenY=function(zK,zL,zM){if(zM !="eaglemap"){return parseInt((zL - zK) / this.cC);}else{return parseInt((zL - zK) / this.jy);}};this.getScreenXFromLeft=function(zN,zO){if(zO !="eaglemap"){return this.cO+parseInt(zN) * this.cC;}else{return this.jp+parseInt(zN) * this.jy;}};this.getScreenYFromTop=function(zP,zQ){if(zQ !="eaglemap"){return this.cP+parseInt(zP) * this.cC;}else{return this.jq+parseInt(zP) * this.jy;}};this.getMoveWindowCoordX=function(zR){if(zR !="eaglemap"){return this.getScreenXFromLeft(this.bf.style.left,zR);}else{return this.getScreenXFromLeft(this.jg.style.left,zR);}};this.getMoveWindowCoordY=function(zS){if(zS !="eaglemap"){return this.getScreenYFromTop(this.bf.style.top,zS);}else{return this.getScreenYFromTop(this.jg.style.top,zS);}};this.lu=[];this.lc=[];this.lw=function(){for(var zT=0;zT<this.lu.length;zT++){if(this.lu[zT][1] !=false){if(this.gw=="firefox"){this.lc[this.lu[zT][0]][0]=document.createElement("script");this.lc[this.lu[zT][0]][0].setAttribute("type","text/javascript");this.lc[this.lu[zT][0]][0].setAttribute("language","javascript");document.body.appendChild(this.lc[this.lu[zT][0]][0]);}return this.lu[zT][0];break;}}var zU=this.ea();this.lc[zU]=[];this.lc[zU][0]=document.createElement("script");this.lc[zU][0].setAttribute("type","text/javascript");this.lc[zU][0].setAttribute("language","javascript");document.body.appendChild(this.lc[zU][0]);var zV=this.lu.length;this.lu[zV]=[zU,true];this.lc[zU][1]=zV;return zU;};this.lx=function(zW){if(this.gw=="firefox"){this.lc[zW][0].parentNode.removeChild(this.lc[zW][0]);this.lc[zW][0]=null;}this.lu[this.lc[zW][1]][1]=false;};this.ly=function(zX,zY,zZ,Aa){var Ab=this.lw();var Ac=new rWingUrl(this.ch[this.ci]);Ac.addFolder(this.dq);Ac.addFolder("manage");Ac.addFolder("getServer");Ac.addParam("act",zX);Ac.addParam("k",zY);Ac.addParam("run",zZ);Ac.addParam("arg",Aa);var Ad=this;var Ae=Ac.sUrl;this.lc[Ab][0].src=Ae;};this.getLengthByXY=function(dScreenX1,dScreenY1,dScreenX2,dScreenY2){dScreenX1=this.getLongitudeByScreenX(dScreenX1);dScreenX2=this.getLongitudeByScreenX(dScreenX2);dScreenY1=this.getLatitudeByScreenY(dScreenY1);dScreenY2=this.getLatitudeByScreenY(dScreenY2);var Af=Math.abs(dScreenX1-dScreenX2) * 40075360 * Math.sin( ( 90 - dScreenY1) * Math.PI /180 )/360;var Ag=Math.abs(dScreenY1-dScreenY2) * 110940;return Math.round(Math.sqrt(Af*Af+Ag*Ag));};this.ma=function(Ah,Ai,Aj){};this.getPositionFromScreenXY=function(Ak,Al,Am){return [this.getPixXFromScreenX(Ak,Am),this.getPixYFromScreenY(Al,Am)];};this.getPixXFromScreenX=function(An,Ao){Ao=Ao==null?1:2;return this.getCoordFromScreenX(Ao==1?this.getMoveWindowCoordX():this.cO,An);};this.getPixYFromScreenY=function(Ap,Aq){Aq=Aq==null?1:2;return this.getCoordFromScreenY(Aq==1?this.getMoveWindowCoordY():this.cP,Ap);};this.resizeMap=function(Ar,As){if(!this.isInit())return false;var At=this.getCenter();var Au=this.getLayer();if(!this.dz(Ar,As))return false;this.ek("\u91cd\u65b0\u8c03\u6574\u5730\u56fe\u7a97\u53e3\u5927\u5c0f\u5230\uff1a"+this.getWidth()+","+this.getHeight());this.lb.style.width=this.getWidth()+"px";this.lb.style.height=this.getHeight()+"px";this.bd.style.width=this.getWidth()+"px";this.bd.style.height=this.getHeight()+"px";this.bC.style.width=this.getWidth()+"px";this.bC.style.Height=this.getHeight()+"px";if(this.gw=="msie"){this.ks.style.width=this.getWidth()+"px";this.ks.style.height=this.getHeight()+"px";this.ki.style.width=this.getWidth()*5+"px";this.ki.style.height=this.getHeight()*5+"px";}else{this.kW=null;this.kV();this.kX=null;this.lm();}this.dw();this.dx();this.dy();this.gt();this.dh=new Array();this.zoomTo(Au,At[0],At[1],null,null,null,true);if(ff){this.jF();}};this.dL=new Array();this.addEventListener=function(Av,Aw){if(typeof(Av)!="string")return false;if(typeof(Aw)!="string")return false;this.dL[Av]=Aw;return true;};this.onsuccess=function(){this.fq=true;if(this.fH){this.showCityList();}if(this.dL["onsuccess"]!=null){this.ej(this.dL["onsuccess"]+"()");}};this.onfailure=function(Ax){if(Ax==null)Ax="";this.ej(this.dL["onfailure"]+"(\'"+Ax+"\')");};this.onerror=function(Ay){if(Ay==null)Ay="";this.ej(this.dL["onerror"]+"(\'"+Ay+"\')");};this.onEagleClick=function(){return false;};this.onEagleMouseDown=function(Az){var AA=Az||window.event;var AB=AA.srcElement||Az.target;if(this.dP(this.jh,AB,this.jf))return;if((this.gw=="msie"&&AA.button==1)||(this.gw=="firefox"&&AA.button==0)||(this.gw=="safari" && AA.button==0)||(this.gw=="opera" && AA.button==0)){this.ek("eaglemousedown");this.dT(this.jg,null,this.ji,AA);}};this.hK=function(AC){var AD=AC||window.event;if((this.gw=="msie"&&AD.button==1)||(this.gw=="firefox"&&AD.button==0)||(this.gw=="safari" && AD.button==0)||(this.gw=="opera" && AD.button==0)){this.dV(this.jg,AD);}};this.hJ=function(AE){var AF=AE||window.event;if((this.gw=="msie"&&AF.button==1)||(this.gw=="firefox"&&AF.button==0)||(this.gw=="safari" && AF.button==0)||(this.gw=="opera" && AF.button==0)){this.dU(this.jg,null,null,null,null,null,this.ji,AF);}};this.hL=function(AG){var AH=AG||window.event;if((this.gw=="msie"&&AH.button==1)||(this.gw=="firefox"&&AH.button==0)||(this.gw=="safari" && AH.button==0)||(this.gw=="opera" && AH.button==0)){this.dT(this.jh,null,null,AH);}};this.hM=function(AI){var AJ=AI||window.event;if((this.gw=="msie"&&AJ.button==1)||(this.gw=="firefox"&&AJ.button==0)||(this.gw=="safari" && AJ.button==0)||(this.gw=="opera" && AJ.button==0)){this.dV(this.jh,AJ);}};this.hN=function(AK){var AL=AK||window.event;if((this.gw=="msie"&&AL.button==1)||(this.gw=="firefox"&&AL.button==0)||(this.gw=="safari" && AL.button==0)||(this.gw=="opera" && AL.button==0)){this.dU(this.jh,null,null,null,null,null,null,AL);}};this.onclick=function(eventTag){var AM=eventTag||window.event;var AN=AM.srcElement||AM.target;var AO=AM.x ? AM.x : AM.layerX;var AP=AM.y ? AM.y : AM.layerY;if(this.gw=="opera"){AO=AM.pageX;AP=AM.pageY;}var AQ=AO;var AR=AP;switch(this.bJ){case 0:break;case 1:break;case 2:break;case 3:break;case 4:if(this.dP(this.kx,AN,this.be))break;if(this.getLayer() < this.ce){this.ek("\u5f53\u524d\u5c42\u7ea7\u4e0b\u8303\u56f4\u592a\u5927!\u6807\u70b9\u7684\u53ef\u884c\u5c42\u7ea7\u5e94\u81f3\u5c11\u5728\u7b2c"+this.ce+"\u5c42");this.onerror("\u5f53\u524d\u5c42\u7ea7\u4e0b\u8303\u56f4\u592a\u5927!\u6807\u70b9\u7684\u53ef\u884c\u5c42\u7ea7\u5e94\u81f3\u5c11\u5728\u7b2c"+this.ce+"\u5c42");}else{var AS=parseInt(AQ * this.cC+this.cO);var AT=parseInt(AR * this.cC+this.cP);this.showMark(AS,AT);this.ej(this.dL["onmark"]+"("+AS+","+AT+")");this.ek("\u6807\u70b9\u8fd4\u56de:"+AS+","+AT);}break;case 7:if(this.dP(this.kx,AN,this.be))break;var AU=parseInt(AQ * this.cC+this.cO);var AV=parseInt(AR * this.cC+this.cP);this.showNote(AU,AV);this.setState(0);break;default:return false;break;}this.ej(this.dL["onclick"]+"("+AO+","+AP+")");return true;};this.onmousedown=function(AW){var AX=AW||window.event;var AY=AX.srcElement||AX.target;var AZ=AX.x ? AX.x : AX.layerX;var Ba=AX.y ? AX.y : AX.layerY;if(this.gw=="opera"){AZ=AX.pageX;Ba=AX.pageY;}if(!AX.ctrlKey){if(this.dP(this.kx,AY,this.be))return;}if((this.gw=="msie"&&AX.button==1)||(this.gw=="firefox"&&AX.button==0)|| (this.gw=="safari" && AX.button==0)||(this.gw=="opera" && AX.button==0)){if(fi)this.closeMenu();switch(this.bJ){case 0:this.dT(this.bf,null,this.kw,AX);break;case 1:this.dQ(AX);break;case 2:this.dQ(AX);break;case 3:break;case 4:break;case 5:this.dQ(AX);break;default:return false;break;}}this.be.focus();this.ej(this.dL["onfocus"]+"()");this.ej(this.dL["onmousedown"]+"("+AZ+","+Ba+")");return true;};this.onmouseup=function(Bb){var Bc=Bb||window.event;var Bd,mY;if(this.gw=="opera"){Bd=Bc.pageX;mY=Bc.pageY;}else{Bd=Bc.x ? Bc.x : Bc.layerX;mY=Bc.y ? Bc.y : Bc.layerY;}if(Bc.button==2){if(fi && this.bJ !=8 && this.bJ !=9){var Be=Bd;var Bf=mY;this.m_nMenuX=parseInt(Be * this.cC+this.cO);this.m_nMenuY=parseInt(Bf * this.cC+this.cP);if(this.getWidth() - this.gi < Be){Be=Be - this.gi;}var Bg=this.gj*this.gk.length;if(this.getHeight() - Bg < Bf){Bf=Bf - Bg;}this.kn.style.left=Be+"px";this.kn.style.top=Bf+"px";this.kn.style.display="";}else if(this.bJ==8){this.lr();}else if(this.bJ==9){this.lt();}this.ej(this.dL["onrightclick"]+"("+parseInt(Bd * this.cC+this.cO)+","+parseInt(mY * this.cC+this.cP)+")");}else if((this.gw=="msie"&&Bc.button==1)||(this.gw=="firefox"&&Bc.button==0)|| (this.gw=="safari" && Bc.button==0)||(this.gw=="opera" && Bc.button==0)){switch(this.bJ){case 0:this.dV(this.bf,Bc);break;case 1:this.dS("this.dM","zoomin");break;case 2:this.dS("this.dN","zoomout");break;case 3:break;case 4:break;case 5:this.dS("this.lz");break;case 8:this.lp(Bd,mY);break;case 9:if(this.lg.length==0){this.lg.push(Bd);this.lg.push(mY);}break;default:return false;break;}}this.ej(this.dL["onmouseup"]+"("+Bd+","+mY+")");return false;};this.onmouseout=function(){this.kk.style.left="-100px";this.kk.style.top="-100px";};this.onKeyDown=function(Bh){var Bi=Bh||window.event;if(Bi.keyCode==9)return false;try{if(Bi.ctrlKey){this.gy.style.width="0px";this.gy.style.height="0px";switch(Bi.keyCode){case 37:this.dO(3,"key");break;case 38:this.dO(0,"key");break;case 39:this.dO(1,"key");break;case 40:this.dO(2,"key");break;default:break;}}}catch(e){}return true;};this.onKeyUp=function(Bj){var Bk=Bj||window.event;if(Bk.ctrlKey){this.hO();}return true;};this.hO=function(){this.gy.style.width=this.getWidth()+"px";this.gy.style.height=this.getHeight()+"px";};this.onChange=function(){return true;};this.onFocus=function(){this.ej(this.dL["onfocus"]+"()");};this.dM=function(Bl,Bm,Bn,Bo){if(Bm==0 && Bn==0){this.zoomTo(this.getLayer()+1,Bl,Bo);}else{this.kS(Bl,Bm,Bn,Bo);}};this.dN=function(Bp,Bq,Br,Bs){if(Bq==0 && Br==0){this.zoomTo(this.getLayer()-1,Bp,Bs);}else{this.kT(Bp,Bq,Br,Bs);}};this.lz=function(Bt,Bu,Bv,Bw,Bx,By,Bz,BA){if(Bt==0 || Bu==0 || Bv==0 || Bw==0){return false;}this.ej(this.dL["onrectselect"]+"("+Bt+","+Bu+","+Bv+","+Bw+","+Bx+","+By+","+Bz+","+BA+")");};this.onmousemove=function(BB){var BC=BB||window.event;var BD=BC.x ? BC.x : BC.layerX;var BE=BC.y ? BC.y : BC.layerY;if(this.gw=="opera"){BD=BC.pageX;BE=BC.pageY;}if(this.mn[this.getState()] !="" && this.mn[this.getState()] !=null){this.hA(BC);}if((this.gw=="msie"&&BC.button==1)||(this.gw=="firefox"&&BC.button==0)|| (this.gw=="safari" && BC.button==0)||(this.gw=="opera" && BC.button==0)){switch(this.bJ){case 0:this.dU(this.bf,null,null,null,null,null,this.kw,BC);break;case 1:this.dR(BC);break;case 2:this.dR(BC);break;case 3:break;case 4:break;case 5:this.dR(BC);break;case 8:if(this.gw=="firefox"||this.gw=="safari"||this.gw=="opera"){document.captureEvents?document.captureEvents("mouseup",this.be):this.be.setCapture();document.releaseEvents?document.releaseEvents("mouseup",this.be):this.be.releaseCapture();this.lj=BD;this.lk=BE;if(!this.lh){this.lq();}}break;case 9:if(this.gw=="firefox"||this.gw=="safari"||this.gw=="opera"){document.captureEvents?document.captureEvents("mouseup",this.be):this.be.setCapture();document.releaseEvents?document.releaseEvents("mouseup",this.be):this.be.releaseCapture();this.lj=BD;this.lk=BE;if(!this.lh){this.ls();}}break;default:return false;break;}}else if(BC.button==2){}return true;};this.onmousewheel=function(BF){if(!fh)return true;if(this.bJ==3)return true;if(this.gr)return false;if(!BF){BF=window.event;}var BG=this.getLayer();var BH=0;var BI=0;switch(this.gw){case "msie":this.be.setCapture();BH=BF.x;BI=BF.y;this.be.releaseCapture();if(BF.wheelDelta>0){BG=BG+1;}else{BG=BG - 1;}break;case "firefox":BH=BF.layerX;BI=BF.layerY;if(BF.detail>0){BG=BG - 1;}else{BG=BG+1;}break;case "safari":BH=BF.layerX;BI=BF.layerY;if(BF.wheelDelta>0){BG=BG+1;}else{BG=BG-1;}break;case "opera":BH=BF.pageX;BI=BF.pageY;if(BF.wheelDelta>0){BG=BG-1;}else{BG=BG+1;}break;default:return false;break;}var BJ=parseInt(BH * this.cC+this.cO);var BK=parseInt(BI * this.cC+this.cP);if(BG > this.getMaxLayer() || BG < this.getStartLayer()){}else{this.zoomToPosition(BJ,BK,BH,BI,BG);}return false;};this.ondblclick=function(BL){if(!fg)return false;var BM=BL||window.event;var BN=BM.srcElement||BM.target;var BO=BM.x ? BM.x : BM.layerX;var BP=BM.y ? BM.y : BM.layerY;if(this.gw=="opera"){BO=BM.pageX;BP=BM.pageY;}switch(this.bJ){case 0:if(this.dP(this.kx,BN,this.be))break;var BQ=this.getScreenXFromLeft(BO);var BR=this.getScreenYFromTop(BP);if(this.getLayer() !=this.getMaxLayer()){this.zoomToPosition(BQ,BR,BO,BP,this.getLayer()+1);}else{this.zoomTo(this.getLayer()+1,BQ,BR);}break;case 1:break;case 2:break;case 3:break;case 4:break;default:return false;break;}};this.dO=function(BS,BT){if(BS==null)return false;if(BT==null)BT="button";var BU,nMoveY;if(BT=="button"){BU=isNaN(this.cw)?50:(this.cw>100)?50:(this.cw<0)?50:this.cw;nMoveY=isNaN(this.cx)?50:(this.cx>100)?50:(this.cx<0)?50:this.cx;}else if(BT=="key"){BU=isNaN(this.cu)?25:(this.cu>100)?25:(this.cu<0)?25:this.cu;nMoveY=isNaN(this.cv)?20:(this.cv>100)?20:(this.cv<0)?20:this.cv;}else{return false;}var BV=this.getCenter();switch(BS){case 2:BV[1]=BV[1]+nMoveY/100 * this.getHeight() * this.cC;break;case 3:BV[0]=BV[0] - BU/100 * this.getWidth() * this.cC;break;case 0:BV[1]=BV[1] - nMoveY/100 * this.getHeight() * this.cC;break;case 1:BV[0]=BV[0]+BU/100 * this.getWidth() * this.cC;break;default:return false;break;}this.zoomTo(this.getLayer(),BV[0],BV[1]);return true;};this.dP=function(BW,BX,BY){var BZ=false;for(var Ca=0;Ca<10;Ca++){if(BX){if(BX==BW){BZ=true;break;}if(BX==BY){break;}}else{break;}BX=BX.parentNode;}return BZ;};this.hP=function(Cb){var Cc=Cb.layerX;var Cd=Cb.layerY;return Cc+","+Cd;};this.addElement=function(Ce){if(!this.kE(Ce))return false;if(Ce.sType=="point"){if(this.de["P_"+Ce.sId] !=null){this.kY[this.de["P_"+Ce.sId]]=Ce;}else{this.de["P_"+Ce.sId]=this.kY.length;this.kY[this.de["P_"+Ce.sId]]=Ce;}}else{if(this.de["S_"+Ce.sId] !=null){this.kZ[this.de["S_"+Ce.sId]]=Ce;}else{this.de["S_"+Ce.sId]=this.kZ.length;this.kZ[this.de["S_"+Ce.sId]]=Ce;}}return true;};this.addWingElement=function(Cf){return this.addElement(Cf);};this.kE=function(Cg){if(Cg==null)return false;if(typeof(Cg) !="object"){this.onerror(er);return false;}if(typeof(Cg.sId)=="undefined " || Cg.sType=="undefined"){this.onerror(er);return false;}if(Cg.sType==null || Cg.sType=="")return false;return true;};this.showAllElement=function(){if(!this.isInit())return false;if(this.bJ==8 || this.bJ==9){this.setState(0);}this.ek("showElement...");this.kx.innerHTML="";this.kw.innerHTML="";this.ie();if(this.gw=="msie"){try{this.ki.contentWindow.document.body.innerHTML="";}catch(e){}}else if(this.gw=="firefox"||this.gw=="safari"||this.gw=="opera"){this.kW.clearRect(0,0,this.getWidth()*5,this.getHeight()*5);}for(var Ch=0;Ch<this.kY.length;Ch++){var Ci=this.kY[Ch];this.showElement(Ci);}for(var Cj=0;Cj<this.kZ.length;Cj++){var Ck=this.kZ[Cj];this.showElement(Ck);}};this.jQ=function(Cl,Cm){this.bf.style.left=Cl+"px";this.bf.style.top=Cm+"px";this.kw.style.left=Cl+"px";this.kw.style.top=Cm+"px";this.kQ.style.left=Cl+"px";this.kQ.style.top=Cm+"px";};this.hR=750;this.hS=620;this.hT=[[7,6],[38,6],[68,6],[7,35],[68,35],[7,64],[38,64],[68,64]];this.hU=null;this.hV=0;this.hW=0;this.hX="";this.lA=function(Cn,Co,Cp,Cq,Cr){if(!Cn)return;if(!Cn.length)return;if(Cn.length < 2)return;if(Cq !=this.hW || Cr !=this.hX){this.hV=0;}this.hw.style.display="";this.hW=Cq;this.hX=Cr;var Cs=this;if(this.hU!=null){clearInterval(this.hU);this.hU=null;}var Ct=new Array();var Cu=0;for(var Cv=1;Cv<Cn.length;Cv++){Ct[Cu]=[Cn[Cv-1][0],Cn[Cv-1][1],this.hZ(Cn[Cv-1][0],Cn[Cv-1][1],Cn[Cv][0],Cn[Cv][1])];var Cw=Cn[Cv][0] - Cn[Cv-1][0];var Cx=Cn[Cv][1] - Cn[Cv-1][1];var Cy=Math.abs(parseInt(Cw / Co));var Cz=Math.abs(parseInt(Cx / Co));doXY=Cy>Cz?Cy:Cz;var CA=Cw/doXY;var CB=Cx/doXY;Cu++;for(var CC=1;CC<=doXY;CC++){Ct[Cu]=[parseInt(CC*CA+Cn[Cv-1][0]),parseInt(CC*CB+Cn[Cv-1][1])];Cu++;}}this.hU=setInterval(function(){Cs.hY(Ct,0);},Cp);};this.hY=function(CD){if(this.hV >=CD.length){this.hV=0;}if(CD[this.hV][2] !=null){this.hw.style.background="url("+this.ch[this.ci]+this.ds+"api/runCar.png) no-repeat -"+this.hT[CD[this.hV][2]][0]+"px -"+this.hT[CD[this.hV][2]][1]+"px";}this.hw.style.left=(CD[this.hV][0]-13)+"px";this.hw.style.top=(CD[this.hV][1]-13)+"px";this.hV++;};this.soutstr="";this.hZ=function(CE,CF,CG,CH){var CI=CG - CE;var CJ=CH - CF;var CK=CE - CG;var CL=CF - CH;var CM=0;if(CF>CH && Math.abs(CI)*2<=CL){CM=1;}else if(CE>CG && Math.abs(CJ)*2<=CK){CM=3;}else if(CG>CE && Math.abs(CJ)*2<=CI){CM=4;}else if(CH>CF && Math.abs(CI)*2<=CJ){CM=6;}else if((CK*2>=CJ && CJ>0) || (CJ*2>=CK && CK>0)){CM=5;}else if((CI*2>=CJ && CJ>0) || (CJ*2>=CI && CI>0)){CM=7;}else if((CK*2>=CL && CL>0) || (CL*2>=CK && CK>0)){CM=0;}else if((CI*2>=CL && CL>0) || (CL*2>=CI && CI>0)){CM=2;}return CM;};this.showElement=function(CN,CO){if(!this.isInit())return false;if(!this.addElement(CN))return false;var CP=this;var CQ=this.eb();var CR=this.de[(CN.sType=="point"||CN.sType=="rect")?("P_"+CN.sId):("S_"+CN.sId)];switch(CN.sType){case "point":if(isNaN(CN.dScreenX) || isNaN(CN.dScreenY))return;var CS=this.getPixXFromScreenX(CN.dScreenX);var CT=this.getPixYFromScreenY(CN.dScreenY);var CU=this.ed(0,CS,CT,null,null,CQ,"off");var CV=this.hI("_WingElement_"+CN.sId);if(CN.bControl || this.gw=="firefox"){if(CV)this.kw.removeChild(CV);CU.id="_WingElement_"+CN.sId;this.eg(2,this.kw,CU);}else if(CN.bHidden){if(CV)this.kv.removeChild(CV);CU.id="_WingElement_"+CN.sId;this.eg(2,this.kv,CU);}else{if(CV)this.kx.removeChild(CV);CU.id="_WingElement_"+CN.sId;this.eg(2,this.kx,CU);}for(var CW=0;CW<CN.oWingObj.length;CW++){var CX=CN.oWingObj[CW];var CY=null;switch(CX.sType){case "text":if(CX.sText=="" || CX.sText==null)break;CY=this.ed(0,CX.nScreenX,CX.nScreenY,null,null,CW,"off");CY.style.border=CX.sBorder;CY.style.fontSize=CX.sSize;if(isNaN(CX.nWidth) || isNaN(CX.nHeight) || CX.nWidth==0 || CX.nHeight==0){}else{CY.style.width=CX.nWidth+"px";CY.style.height=CX.nHeight+"px";CY.style.overflowX=CX.sOverflowX;CY.style.overflowY=CX.sOverflowY;}try{if(CX.sCursor !="" && CX.sCursor !=null)CY.style.cursor=CX.sCursor;}catch(e){};try{if(CX.sFilter !="" && CX.sFilter !=null)CY.style.filter=CX.sFilter;}catch(e){};CY.style.color=CX.sColor;CY.style.padding=CX.sPadding;CY.style.wordBreak=CX.sWordBreak;CY.style.lineHeight=CX.sLineHeight;if(CX.sFontFamily !=""){CY.style.fontFamily=CX.sFontFamily;}if(CX.sBgColor !="")CY.style.backgroundColor=CX.sBgColor;if(CX.sTextType=="text"){CY.innerText=CX.sText;CY.innerHTML="<nobr>"+CY.innerText+"</nobr>";}else{CY.innerHTML=CX.sText;}this.eg(2,CU,CY);break;case "pic":if(isNaN(CX.nScreenX))CX.nScreenX=0;if(isNaN(CX.nScreenY))CX.nScreenX=0;if(isNaN(CX.nImageHeight))break;if(isNaN(CX.nImageWidth))break;CY=this.ed(0,CX.nScreenX,CX.nScreenY,CX.nImageWidth,CX.nImageHeight,CW,"off");CY.style.cursor=CX.sCursor;CY.alt=CX.sAlt;CY.style.border=CX.sBorder;if(CX.sImageSrc.indexOf(".png") >=0 && this.gw=="msie"||this.gw=="opera"){this.ei(CY,CX.sImageSrc,CX.sFilterMethod);}else{CY.innerHTML="<img src=\'"+CX.sImageSrc+"\' width=\'"+CX.nImageWidth+"\' height=\'"+CX.nImageHeight+"\'>";};this.eg(2,CU,CY);break;default:break;}if(CY !=null){CY.onclick=CX.onclick;CY.ondblclick=CX.ondblclick;CY.onmousedown=CX.onmousedown;CY.onmouseup=CX.onmouseup;CY.onmouseover=CX.onmouseover;CY.onmouseout=CX.onmouseout;}CY=null;}CU.style.left=CS+"px";CU.style.top=CT+"px";CU=null;if(CN.nShadow >=0){if(this.ia[CN.sId]==null){this.ib(CN.sId,CN.nShadow,CS,CT);}this.ic(CN.sId,CN.nShadow,CS,CT);};break;case "line":this.ek("start line draw...");if(!CN.aScreenX || !CN.aScreenY)break;if(CN.aScreenX.length < 1 || CN.aScreenY < 1 || isNaN(CN.nWeight))break;this.ek("\u663e\u793a\u7ebf\u8def:"+CN.sId);if(this.gw=="msie"){}else if(this.gw=="firefox" || this.gw=="safari"||this.gw=="opera"){this.kW.beginPath();this.kW.strokeStyle=CN.sColor;this.kW.globalAlpha=CN.nAlpha*0.01;this.kW.lineWidth=parseInt(CN.nWeight * this.getLayer() * 0.2);this.kW.lineCap='butt';}else{break;}var CZ=new Array();var Da=new Array();var Db=this.cC * this.getWidth() * 2;var Dc=this.cC * this.getHeight() * 2;var Dd=this.getMBR();var De=Dd[0];var Df=Dd[3];Dd[0] -=Db;Dd[1]+=Dc;Dd[2]+=Db;Dd[3] -=Dc;var Dg=false;var Dh=CN.aScreenX.length > CN.aScreenY.length?CN.aScreenX.length:CN.aScreenY.length;var Di="";var Dj=[];var Dk=[];if(this.gw=="msie"){Di="<v:PolyLine  id=\'_WingElement_"+CN.sId+"\' filled=\'false\' strokecolor=\'"+CN.sColor+"\' opacity=\'"+parseInt(CN.nAlpha)+"%\' style=\'position:absolute;\' strokeweight=\'"+parseInt(CN.nWeight * this.getLayer() * 0.2)+"\' Points=\'";}var Dl=false;if(CN.run){var Dm=[];}var Dn=0;var Do;var Dp;var Dq;var Dr;var Ds;var Dt;for(Dn=0;Dn<Dh;Dn++){Do=this.getCoordFromScreenX(De,CN.aScreenX[Dn]);Dp=this.getCoordFromScreenY(Df,CN.aScreenY[Dn]);Dq=Do+this.getWidth() * 2;Dr=Dp+this.getHeight() * 2;if(CN.aScreenX[Dn] < Dd[0] || CN.aScreenY[Dn] > Dd[1] || CN.aScreenX[Dn] > Dd[2] || CN.aScreenY[Dn] < Dd[3]){Dl=true;continue;}if(CN.run){Dm.push([Do,Dp]);}if(Dn==Dh-1)Dg=true;if(this.gw=="msie"){if(Dl){Dk[Dn]="\'><v:stroke opacity=\'"+parseInt(CN.nAlpha)+"%\'/></v:PolyLine><v:PolyLine filled=\'false\' strokecolor=\'"+CN.sColor+"\' style=\'position:absolute;\' strokeweight=\'"+parseInt(CN.nWeight * this.getLayer() * 0.2)+"\' Points=\'";Dl=false;Dk[Dn]+=Dq+"px,"+Dr+"px ";}else{Dk[Dn]=Dq+"px,"+Dr+"px ";}if(CN.oPoint.bShow){Ds=Dq-CN.oPoint.nSize*0.5;Dt=Dr-CN.oPoint.nSize*0.5;Dj[Dn]="<v:"+CN.oPoint.sStyle+" style=\'position:absolute;width:"+CN.oPoint.nSize+"px;height:"+CN.oPoint.nSize+"px;left:"+Ds+"px;top:"+Dt+"px;\' FillColor=\'"+CN.oPoint.sFillColor+"\' strokecolor=\'"+CN.oPoint.sBorderColor+"\' onmouseover=\"parent."+CN.oPoint.sMouseOver+"(\'"+Dn+"\',"+Do+","+Dp+")\"  onmouseout=\"parent."+CN.oPoint.sMouseOut+"(\'"+Dn+"\',"+Do+","+Dp+")\" />";}}else if(this.gw=="firefox" ||this.gw=="safari"||this.gw=="opera"){if(Dn==0){this.kW.moveTo(Dq,Dr);}else{if(Dl){this.kW.stroke();this.kW.moveTo(Dq,Dr);}else{this.kW.lineTo(Dq,Dr);}}}};if(this.gw=="msie"){Dk[Dn]="\' strokecolor=\'"+CN.sColor+"\'>";if(CN.bArrow &&  Dn==Dh){Dk[Dn]+="<v:stroke startarrow=\'close\' endarrow=\'classic\'></v:stroke>";}Dk[Dn]+="<v:stroke opacity=\'"+parseInt(CN.nAlpha)+"%\'/></v:PolyLine>";this.ki.contentWindow.document.body.innerHTML+=Di+Dk.join("")+Dj.join("");var Du=this.hI("_WingElement_"+CN.sId,this.ki.contentWindow.document);Du.onclick=CN.onclick;Du.ondblclick=CN.ondblclick;Du.onmousedown=CN.onmousedown;Du.onmouseup=CN.onmouseup;Du.onmouseover=CN.onmouseover;Du.onmouseout=CN.onmouseout;Du=null;Di=null;Dk=null;Dj=null;}else if(this.gw=="firefox"||this.gw=="safari"||this.gw=="opera"){this.kW.stroke();}if(CN.run)this.lA(Dm,CN.runLength,CN.runSpeed,this.getLayer(),CR);var Dv=- parseInt(CP.bf.style.left) - CP.cm * 2;var Dw=- parseInt(CP.bf.style.top) - CP.cn * 2;this.kj.style.left=Dv+"px";this.kj.style.top=Dw+"px";this.gx.style.left=- parseInt(this.bf.style.left)+"px";this.gx.style.top=- parseInt(this.bf.style.top)+"px";break;case "shape":if(CN.aScreenX.length==0 || CN.aScreenY.length==0 || isNaN(CN.alpha))break;CN.alpha=parseInt(CN.alpha);if(CN.alpha > 100 || CN.alpha < 0)CN.alpha=100;if(this.gw=="msie"){var Dx="m ";}else if(this.gw=="firefox"||this.gw=="safari"||this.gw=="opera"){this.kW.beginPath();this.kW.fillStyle=CN.sBgColor;this.kW.strokeStyle=CN.strokeColor;this.kW.globalAlpha=CN.alpha*0.01;this.kW.lineWidth=CN.strokeWeight;}else{break;}var Dy=this.cC * this.getWidth() * 2;var Dz=this.cC * this.getHeight() * 2;var DA=this.getMBR();DA[0] -=Dy;DA[1]+=Dz;DA[2]+=Dy;DA[3] -=Dz;var DB=CN.aScreenX.length > CN.aScreenY.length?CN.aScreenX.length:CN.aScreenY.length;for(var DC=0;DC<DB;DC++){var DD=this.getCoordFromScreenX(DA[0],CN.aScreenX[DC]);var DE=this.getCoordFromScreenY(DA[3],CN.aScreenY[DC]);if(this.gw=="msie"){if(DC==0){Dx+=DD+","+DE+" l";}else{Dx+=DD+","+DE;}if(DC !=DB)Dx+=" ";}else{if(DC==0){this.kW.moveTo(DD,DE);}else{this.kW.lineTo(DD,DE);}}};if(this.gw=="msie"){var DF="<v:shape id=\'_WingElement_"+CN.sId+"\' CoordOrig=\"0,0\"  CoordSize=\""+(this.getWidth() * 5)+","+(this.getHeight() * 5)+"\" fillcolor=\""+CN.sBgColor+"\" style=\"position:absolute;top:0;left:0;width:"+(this.getWidth() * 5)+"px;height:"+(this.getHeight() * 5)+"px;\"strokecolor=\""+CN.strokeColor+"\" storkeweight=\""+CN.strokeWeight+"\" path=\""+Dx+" x e\" onclick=\"parent.fG["+this.iv+"].kZ[parent.fG["+this.iv+"].de[\'S_"+CN.sId+"\']].onclick()\" onmousedown=\"parent.fG["+this.iv+"].kZ[parent.fG["+this.iv+"].de[\'S_"+CN.sId+"\']].onmousedown()\" onmouseup=\"parent.fG["+this.iv+"].hO();parent.fG["+this.iv+"].kZ[parent.fG["+this.iv+"].de[\'S_"+CN.sId+"\']].onmouseup()\" onmouseover=\"parent.fG["+this.iv+"].kZ[parent.fG["+this.iv+"].de[\'S_"+CN.sId+"\']].onmouseover()\" onmouseout=\"parent.fG["+this.iv+"].kZ[parent.fG["+this.iv+"].de[\'S_"+CN.sId+"\']].onmouseout()\" ondblclick=\"parent.fG["+this.iv+"].kZ[parent.fG["+this.iv+"].de[\'S_"+CN.sId+"\']].ondblclick()\"><v:fill opacity=\""+parseInt(CN.alpha)+"%\" /></v:shape>";this.ki.contentWindow.document.body.innerHTML+=DF;}else{this.kW.closePath();this.kW.fill();this.kW.stroke();}var DG=- parseInt(CP.bf.style.left) - CP.cm * 2;var DH=- parseInt(CP.bf.style.top) - CP.cn * 2;this.kj.style.left=DG+"px";this.kj.style.top=DH+"px";break;case "oval":if(isNaN(CN.alpha) || isNaN(CN.radius))break;if(this.gw=="msie"){}else if(this.gw=="firefox"||this.gw=="safari"||this.gw=="opera"){this.kW.beginPath();if(CN.sBgColor !="")this.kW.fillStyle=CN.sBgColor;this.kW.strokeStyle=CN.strokeColor;this.kW.globalAlpha=CN.alpha*0.01;this.kW.lineWidth=CN.strokeWeight;}else{break;}var DI=CN.radius * this.hR / this.cM[this.getLayer()-1];var DJ=CN.radius * this.hS / this.cM[this.getLayer()-1];var DK=parseInt(Math.sqrt(DI*DI+DJ*DJ));var DL=this.cC * this.getWidth() * 2;var DM=this.cC * this.getHeight() * 2;var DN=this.getMBR();DN[0] -=DL;DN[1]+=DM;DN[2]+=DL;DN[3] -=DM;var DO=this.getCoordFromScreenX(DN[0],CN.dScreenX);var DP=this.getCoordFromScreenY(DN[3],CN.dScreenY);if(this.gw=="msie"){var DQ="<v:oval id=\'_WingElement_"+CN.sId+"\' fillcolor=\""+CN.sBgColor+"\" style=\"position:absolute;top:"+(DP-DK)+";left:"+(DO-DK)+";width:"+(DK * 2)+";height:"+(DK * 2)+";\" strokecolor=\""+CN.strokeColor+"\" storkeweight=\""+CN.strokeWeight+"\" onclick=\"parent.fG["+this.iv+"].kZ[parent.fG["+this.iv+"].de[\'S_"+CN.sId+"\']].onclick()\" onmousedown=\"parent.fG["+this.iv+"].kZ[parent.fG["+this.iv+"].de[\'S_"+CN.sId+"\']].onmousedown()\" onmouseup=\"parent.fG["+this.iv+"].kZ[parent.fG["+this.iv+"].de[\'S_"+CN.sId+"\']].onmouseup()\" onmouseover=\"parent.fG["+this.iv+"].kZ[parent.fG["+this.iv+"].de[\'S_"+CN.sId+"\']].onmouseover()\" onmouseout=\"parent.fG["+this.iv+"].kZ[parent.fG["+this.iv+"].de[\'S_"+CN.sId+"\']].onmouseout()\" ondblclick=\"parent.fG["+this.iv+"].kZ[parent.fG["+this.iv+"].de[\'S_"+CN.sId+"\']].ondblclick()\"><v:fill opacity=\""+parseInt(CN.alpha)+"%\" /></v:oval>";this.ki.contentWindow.document.body.innerHTML+=DQ;}else{this.kW.moveTo(DO,DP);this.kW.arc(DO,DP,DK,0,Math.PI*2,true);this.kW.fill();this.kW.stroke();}var DR=- parseInt(CP.bf.style.left) - CP.cm * 2;var DS=- parseInt(CP.bf.style.top) - CP.cn * 2;this.kj.style.left=DR+"px";this.kj.style.top=DS+"px";break;case "sector":if(isNaN(CN.alpha) || isNaN(CN.radius))break;CN.startAngel=parseInt(CN.startAngel);CN.endAngel=parseInt(CN.endAngel);if(this.gw=="msie"){}else if(this.gw=="firefox"||this.gw=="safari"||this.gw=="opera"){this.kW.beginPath();if(CN.color1 !="")this.kW.fillStyle=CN.color1;this.kW.strokeStyle=CN.strokeColor;this.kW.globalAlpha=CN.alpha*0.01;this.kW.lineWidth=CN.strokeWeight;}else{break;}var DT=CN.radius * this.hR / this.cM[this.getLayer()-1];var DU=CN.radius * this.hS / this.cM[this.getLayer()-1];var DV=parseInt(Math.sqrt(DT*DT+DU*DU));var DW=this.cC * this.getWidth() * 2;var DX=this.cC * this.getHeight() * 2;var DY=this.getMBR();DY[0] -=DW;DY[3] -=DX;var DZ=this.getCoordFromScreenX(DY[0],CN.dScreenX);var Ea=this.getCoordFromScreenY(DY[3],CN.dScreenY);if(this.gw=="msie"){var Eb="<v:shape id=\'_WingElement_"+CN.sId+"\' CoordOrig=\"0,0\" CoordSize=\""+(this.getWidth() * 5)+","+(this.getHeight() * 5)+"\" style=\"position:absolute;left:"+DZ+"px;top:"+Ea+"px;height:"+(this.getHeight() * 5)+"px;width:"+(this.getWidth() * 5)+"px;\" fillcolor=\""+CN.sBgColor+"\"  strokeweight=\""+CN.strokeWeight+"\" path=\"m0,0ae0,0,"+(DV * 2)+","+(DV * 2)+","+CN.startAngel*65536+","+CN.endAngel*65536+"xe\" onclick=\"parent.fG["+this.iv+"].kZ[parent.fG["+this.iv+"].de[\'S_"+CN.sId+"\']].onclick()\" onmousedown=\"parent.fG["+this.iv+"].kZ[parent.fG["+this.iv+"].de[\'S_"+CN.sId+"\']].onmousedown()\" onmouseup=\"parent.fG["+this.iv+"].kZ[parent.fG["+this.iv+"].de[\'S_"+CN.sId+"\']].onmouseup()\" onmouseover=\"parent.fG["+this.iv+"].kZ[parent.fG["+this.iv+"].de[\'S_"+CN.sId+"\']].onmouseover()\" onmouseout=\"parent.fG["+this.iv+"].kZ[parent.fG["+this.iv+"].de[\'S_"+CN.sId+"\']].onmouseout()\" ondblclick=\"parent.fG["+this.iv+"].kZ[parent.fG["+this.iv+"].de[\'S_"+CN.sId+"\']].ondblclick()\"> <v:fill type=\""+CN.fillType+"\" color=\""+CN.color1+"\" color2=\""+CN.color2+"\" opacity=\""+parseInt(CN.alpha)+"%\" /> </v:shape>";this.ki.contentWindow.document.body.innerHTML+=Eb;}else{this.kW.moveTo(DZ,Ea);this.kW.arc(DZ,Ea,DV*2,Math.PI*(2-CN.startAngel/180),Math.PI*(2-(CN.startAngel+CN.endAngel)/180),true);this.kW.closePath();this.kW.fill();this.kW.stroke();}var Ec=- parseInt(CP.bf.style.left) - CP.cm * 2;var Ed=- parseInt(CP.bf.style.top) - CP.cn * 2;this.kj.style.left=Ec+"px";this.kj.style.top=Ed+"px";break;default:this.ek(es+"Object:"+CN.sId);this.onerror(es+"Object:"+CN.sId);return false;break;}return true;};this.ia=[];this.m_aIcons=[[1,18,6],[2,23,8],[3,39,12]];this.ib=function(Ee,Ef,Eg,Eh){Ef=parseInt(Ef);if(Ef>this.m_aIcons.length || Ef<0)Ef=0;this.ia[Ee]=this.ed(0,parseInt(Eg-this.m_aIcons[Ef][1]*0.5),parseInt(Eh-this.m_aIcons[Ef][2]*0.5),this.m_aIcons[Ef][1],this.m_aIcons[Ef][2],null,"off");this.ei(this.ia[Ee],this.ch[this.ci]+this.ds+"api/icon_shadow_"+this.m_aIcons[Ef][0]+".png");with(this.ia[Ee]){style.overflow="hidden";style.padding="0px";}this.kp.appendChild(this.ia[Ee]);return true;};this.ic=function(Ei,Ej,Ek,El){if(this.ia[Ei] !=null){this.ia[Ei].style.left=parseInt(Ek-this.m_aIcons[Ej][1]*0.5)+"px";this.ia[Ei].style.top=parseInt(El-this.m_aIcons[Ej][2]*0.5)+"px";}return true;};this.id=function(elementId){if(this.ia[elementId] !=null){try{this.kp.removeChild(this.ia[elementId]);this.ia[elementId]=null;}catch(e){}}};this.ie=function(){this.kp.innerHTML="";this.ia=new Array();};this.getElementObj=function(Em){return this.getElementById(Em);};this.getElementById=function(En){if(this.de["P_"+En] !=null){return this.kY[this.de["P_"+En]];}else if(this.de["S_"+En] !=null){return this.kZ[this.de["S_"+En]];}else{return null;}};this.getElementObjById=function(Eo){var Ep=this.getElementById(Eo);if(Ep==null)return null;if(Ep.getType()=="point"){return document.getElementById("_WingElement_"+Eo);}else{if(this.gw=="firefox")return null;return this.ki.contentWindow.document.getElementById("_WingElement_"+Eo);}};this.bK=function(Eq){Eq=parseFloat(Eq);var Er="";while(Eq > 51){var Es=Eq % 52;if(Es < 26){Er=String.fromCharCode(Es+97)+Er;}else{Er=String.fromCharCode(Es+65 - 26)+Er;}Eq=parseInt(Eq / 52);};if(Eq < 26){Er=String.fromCharCode(Eq+97)+Er;}else{Er=String.fromCharCode(Eq+65 - 26)+Er;}return Er;};this.num52to10=function(Et){Et=Et.replace(/ /g,"");var  Eu=0;for(i=0;i<Et.length;i++){var Ev=parseInt(Et.charCodeAt(Et.length - i - 1));if(Ev >=97){Ev=(Ev - 97)*Math.pow(52,i);}else{Ev=(Ev - 65+26)*Math.pow(52,i);}Eu+=Ev;}return Eu;};this.clearElement=function(Ew,Ex,Ey){if(Ex==null)Ex=true;if(Ey==null)Ey=true;if(!this.isInit())return false;if(typeof(Ew) !="string"){if(Ex)this.onerror(eq);return false;}if(this.de["S_"+Ew]!=null){this.kZ[this.de["S_"+Ew]]=null;this.de["S_"+Ew]=null;return true;}else if(this.de["P_"+Ew]!=null){var Ez=this.kY[this.de["P_"+Ew]];var EA=this.hI("_WingElement_"+Ew);if(Ez.bControl || this.gw=="firefox"){if(EA)this.kw.removeChild(EA);}else if(Ez.bHidden){if(EA)this.kv.removeChild(EA);}else{if(EA)this.kx.removeChild(EA);}Ez=null;this.kY[this.de["P_"+Ew]]=null;this.de["P_"+Ew]=null;return true;}else{if(Ex)this.onerror(eq);return false;}this.id(Ew);if(Ey){this.showAllElement();}return true;};this.clearAllElement=function(){if(!this.isInit())return false;if(this.hU!=null){clearInterval(this.hU);this.hU=null;}this.hw.style.display="none";this.kx.innerHTML="";this.kw.innerHTML="";this.kv.innerHTML="";this.kY=new Array();this.kZ=new Array();this.de=new Array();this.closeMsgBox();this.ie();if(this.gw=="msie"){try{this.ki.contentWindow.document.body.innerHTML="";}catch(e){}}else if(this.gw=="firefox"||this.gw=="safari"||this.gw=="opera"){this.kW.clearRect(0,0,this.getWidth()*5,this.getHeight()*5);}if(this.bJ==8 || this.bJ==9){this.setState(0);}this.ej(this.dL["onclearallelement"]+"()");return true;};this.showMark=function(EB,EC){var ED=new wingBasePoint("onMark_showPic",EB,EC);var EE=new wingPicObj();EE.sImageSrc=this.ch[this.ci]+this.ds+"api/mark.png";EE.nImageWidth=26;EE.nImageHeight=29;EE.sAlt="\u6807\u70b9\u4f4d\u7f6e";EE.nScreenX=0;EE.nScreenY=-29;ED.addObj(EE);this.addElement(ED);this.showAllElement();};this.dQ=function(EF){var EG=EF||window.event;if((this.gw=="msie"&&EG.button==1)||(this.gw=="firefox"&&EG.button==0)|| (this.gw=="safari" && EG.button==0)||(this.gw=="opera" && EG.button==0)){this.bb=true;this.bB.style.display="";document.captureEvents?document.captureEvents("mousemove",this.be):this.be.setCapture();var EH=EG.x ? EG.x : EG.layerX;var EI=EG.y ? EG.y : EG.layerY;if(this.gw=="opera"){EH=EG.pageX;EI=EG.pageY;}this.nEvent_x=EH;this.nEvent_y=EI;}};this.dR=function(EJ){var EK=EJ||window.event;var EL , event_Y;if(this.gw=="firefox"){var EM=this.hP(EK).split(",");EL=parseInt(EM[0]);event_Y=parseInt(EM[1]);}var EN=EK.x ? EK.x : EL;var EO=EK.y ? EK.y : event_Y;if(this.gw=="opera"){EN=EK.pageX;EO=EK.pageY;}if(this.bb==true){var EP=EN;var EQ=EO;var ER=0;var ES=0;if(EP < this.nEvent_x && EQ < this.nEvent_y){ER=EP;ES=EQ;}else if(EP > this.nEvent_x && EQ < this.nEvent_y){ER=this.nEvent_x;ES=EQ;}else if(EP < this.nEvent_x && EQ > this.nEvent_y){ER=EP;ES=this.nEvent_y;}else if(EP > this.nEvent_x && EQ > this.nEvent_y){ER=this.nEvent_x;ES=this.nEvent_y;}this.bB.style.top=ES+"px";this.bB.style.left=ER+"px";EP=Math.abs(EP - this.nEvent_x) ;EQ=Math.abs(EQ - this.nEvent_y);try{this.bB.style.width=EP+"px";this.bB.style.height=EQ+"px";}catch(e){}}};this.dS=function(ET,EU){if(this.bb==true){this.bb=false;if((this.bJ==1 || this.bJ==2) && (parseInt(this.bB.style.width) < 5 || parseInt(this.bB.style.height) < 5)){try{var EV=EU=="zoomin"?(this.getLayer()+1):(this.getLayer()-1);if(EV > this.getMaxLayer() || EV < this.getStartLayer()){this.zoomTo(EV,this.getScreenXFromLeft(this.nEvent_x),this.getScreenYFromTop(this.nEvent_y));}else{this.zoomToPosition(this.getScreenXFromLeft(this.nEvent_x),this.getScreenYFromTop(this.nEvent_y),this.nEvent_x,this.nEvent_y,EV);}}catch(e){}}else{var EW=parseInt(this.bB.style.left);var EX=parseInt(this.bB.style.top);var EY=parseInt(this.bB.style.width);var EZ=parseInt(this.bB.style.height);var Fa=this.getScreenXFromLeft(EW);var Fb=this.getScreenYFromTop(EX);var Fc=this.getScreenXFromLeft(EW+EY);var Fd=this.getScreenYFromTop(EX+EZ);var Fe=this.getMBR();if(Fa < Fe[0])Fa=Fe[0];if(Fd > Fe[1])Fd=Fe[1];if(Fc > Fe[2])Fc=Fe[2];if(Fb < Fe[3])Fb=Fe[3];this.ek("return MBR<br>l:"+Fa+"<br>b:"+Fd+"<br>r:"+Fc+"<br>t:"+Fb);try{eval(ET+"("+Fa+","+Fd+","+Fc+","+Fb+","+EW+","+EX+","+EY+","+EZ+")");}catch(e){};}this.bB.style.display="none";this.bB.style.width="0px";this.bB.style.height="0px";this.bB.style.left="-2000px";document.releaseEvents?document.releaseEvents("mousemove",this.be):this.be.releaseCapture();}};this.dT=function(Ff,Fg,Fh,Fi){var Fj=Fi||window.event;if((this.gw=="msie"&&Fj.button==1)||(this.gw=="firefox"&&Fj.button==0) || (this.gw=="safari" && Fj.button==0)||(this.gw=="opera" && Fj.button==0)){if(this.gw=="msie"){Ff.setCapture();}if(this.gw=="firefox"||this.gw=="safari"||this.gw=="opera"){if(Ff==this.bf){document.onmousemove=Ff.parentNode.onmousemove;document.onmouseup=Ff.parentNode.onmouseup;}else if(Ff==this.bQ){document.onmouseup=Ff.onmouseup;document.onmousemove=Ff.onmousemove;this.bf.parentNode.onmouseup=Ff.onmouseup;}else{document.onmouseup=Ff.parentNode.onmouseup;}}if(Fg!=1)this.nEvent_x=Fj.clientX;if(Fg!=2)this.nEvent_y=Fj.clientY;if(Fg!=1)this.il=parseInt(Ff.style.left);if(Fg!=2)this.im=parseInt(Ff.style.top);if(Fh){this.ij=parseInt(Fh.style.left);this.ik=parseInt(Fh.style.top);}if(Ff==this.bf && ff){this.ih=parseInt(this.ji.style.left);this.ii=parseInt(this.ji.style.top);}if(Ff==this.jg){this.ek("mffMoveable is true");this.mffMoveable=true;}else if(Ff==this.jh){this.mffRectMoveable=true;}else if(Ff==this.bf){this.bb=true;}else if(Ff==this.bQ){this.m_bScrollMoveable=true;}}};this.dU=function(Fk,Fl,Fm,Fn,Fo,Fp,Fq,Fr){var Fs=Fr||window.event;var Ft;var Fu;if(this.bb){if(Fk==this.bf){Ft=this.il+Fs.clientX - this.nEvent_x;Fu=this.im+Fs.clientY - this.nEvent_y;this.jQ(Ft,Fu);if(ff){this.ji.style.left=(this.ih - (Fs.clientX - this.nEvent_x) * this.jD)+"px";this.ji.style.top=(this.ii - (Fs.clientY - this.nEvent_y) * this.jD)+"px";}}}if(this.m_bScrollMoveable){if(Fk==this.bQ){if(Fl!=1){Ft=this.il+Fs.clientX - this.nEvent_x;Ft=Fm!=null?(Ft<Fm?Fm:Ft):Ft;Ft=Fn!=null?(Ft>Fn?Fn:Ft):Ft;Fk.style.left=Ft+"px";if(Fq)Fq.style.left=(this.ij+Fs.clientX - this.nEvent_x)+"px";}if(Fl!=2){Fu=this.im+Fs.clientY - this.nEvent_y;Fu=Fo!=null?(Fu<Fo?Fo:Fu):Fu;Fu=Fp!=null?(Fu>Fp?Fp:Fu):Fu;Fk.style.top=Fu+"px";if(Fq)Fq.style.top=(this.ik+Fs.clientY - this.nEvent_y)+"px";}}}if(this.mffMoveable){if(Fk!=this.jg)return;Ft=this.il+Fs.clientX - this.nEvent_x;Fu=this.im+Fs.clientY - this.nEvent_y;Fk.style.left=Ft+"px";Fk.style.top=Fu+"px";if(Fq)Fq.style.left=(this.ij+Fs.clientX - this.nEvent_x)+"px";if(Fq)Fq.style.top=(this.ik+Fs.clientY - this.nEvent_y)+"px";}if(this.mffRectMoveable){if(Fk!=this.jh)return;Ft=this.il+Fs.clientX - this.nEvent_x;Fu=this.im+Fs.clientY - this.nEvent_y;Ft=Ft<0?0:Ft>(this.jb-this.jj)?(this.jb-this.jj):Ft;Fu=Fu<0?0:Fu>(this.jc-this.jk)?(this.jc-this.jk):Fu;Fk.style.left=Ft+"px";Fk.style.top=Fu+"px";}};this.dV=function(Fv,Fw){var Fx=Fw||window.event;if(this.gw=="msie"){Fv.releaseCapture();}if(this.gw=="firefox"||this.gw=="safari"||this.gw=="opera"){document.onmouseup=Fv.onmouseup;document.onmousemove=null;}if(this.m_bScrollMoveable){this.m_bScrollMoveable=false;if(Fv==this.bQ){this.dX(null,true);}}if(this.bb){this.bb=false;var Fy=(parseInt(Fv.style.left) - this.il) * this.cC;var Fz=(parseInt(Fv.style.top) - this.im) * this.cC;this.gy.style.left=(parseInt(this.gy.style.left)-parseInt(Fv.style.left))+"px";this.gy.style.top=(parseInt(this.gy.style.top)-parseInt(Fv.style.top))+"px";if(Fy !=0 || Fz !=0){this.cO -=Fy;this.cP -=Fz;if(ff){this.jG();}this.offset();}}if(this.mffMoveable){this.mffMoveable=false;var FA=(parseInt(Fv.style.left) - this.il) * this.jy;var FB=(parseInt(Fv.style.top) - this.im) * this.jy;if(FA !=0 || FB !=0){this.jp -=FA;this.jq -=FB;var FC=this.getCenter("eaglemap");this.zoomTo(this.getLayer(),FC[0],FC[1]);this.jG();}}if(this.mffRectMoveable){this.mffRectMoveable=false;var FD=(parseInt(Fv.style.left) - this.il) * this.jy;var FE=(parseInt(Fv.style.top) - this.im) * this.jy;if(FD !=0 || FE !=0){this.jp+=FD;this.jq+=FE;this.jH();var FF=this.getCenter("eaglemap");this.ek("<font color=\'#ff0000\'>Eagle zoom</font>");this.zoomTo(this.getLayer(),FF[0],FF[1]);}}};this.dW=function(FG,FH,FI,FJ,FK){var FL=0.3;var FM=this;var FN=FG;var FO=FK;FH=parseInt(FH);FI=parseInt(FI);var FP;var FQ;if((Math.abs(FH) <=1) && (Math.abs(FI) <=1)){FP=parseInt(FN.style.left)+FH;FQ=parseInt(FN.style.top)+FI;if(FN==this.bf){this.jQ(FP,FQ);}else{FN.style.left=FP+"px";FN.style.top=FQ+"px";if(FO){FO.style.left=FP+"px";FO.style.top=FQ+"px";}}this.ek("<font color=green>move Complete</font>");try{eval(FJ+"()");}catch(e){}}else{var FR=parseInt(FH * FL);var FS=parseInt(FI * FL);if(FR==0 && FH !=0)FR=FH>0?1:-1;if(FS==0 && FI !=0)FS=FI>0?1:-1;FP=parseInt(FN.style.left)+FR;FQ=parseInt(FN.style.top)+FS;if(FN==this.bf){this.jQ(FP,FQ);}else{FN.style.left=FP+"px";FN.style.top=FQ+"px";if(FO){FO.style.left=FP+"px";FO.style.top=FQ+"px";}}setTimeout(function(){FM.dW(FN,(FH - FR),(FI - FS),FJ,FO);},20);}};this.dX=function(FT,FU){var FV=this.cA;var FW=0;var FX=FT||window.event;if(!FU){FW=FX.offsetY?FX.offsetY:FX.layerY;if(FW){FW=FW+FV - parseInt(this.cf*0.5);}else{return false;}}else{FW=parseInt(this.bQ.style.top);}for(var FY=1;FY<=this.cb;FY++){var FZ=FV+this.cf*(this.cb-FY);if((FW >=FZ-parseInt(this.cf*0.5)) && (FW <=FZ+parseInt(this.cf*0.5))){window.status="nTempTop:"+FW+",zoomTo i:"+FY;if(FY < this.cd){FY=this.cd;}this.zoomTo(FY,null,null,false);this.dY(FY);break;}}return true;};this.dY=function(Ga){if(!eW)return;this.ek("\u6eda\u52a8\u6761\u8f6c\u5230\u7b2c"+Ga+"\u5c42\u7684\u6807\u51c6\u4f4d\u7f6e");if(Ga > this.cb)return false;this.bQ.style.top=this.cA+this.cf*(this.cb-parseInt(Ga))+"px";};this.dZ=function(){var Gb=null;try{Gb=new ActiveXObject("Msxml2.XMLHTTP.4.0");}catch(e){try{Gb=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{Gb=new ActiveXObject("Microsoft.XMLHTTP");}catch(e){Gb=null;};};};if (Gb==null && typeof XMLHttpRequest!='undefined'){Gb=new XMLHttpRequest();};return Gb;};this.ea=function(){this.cT++;var Gc=this.cT.toString(2);Gc="l"+Gc.replace(/0/g,"l");return "f_"+Gc;};this.eb=function(){this.cT++;return this.cT;};this.ec=function(Gd){return typeof(Gd)=="object"?Gd:null;};this.ed=function(Ge,Gf,Gg,Gh,Gi,Gj,Gk){var Gl=document.createElement("div");if(Ge !=null){if(isNaN(Ge))Ge=0;var Gm=["absolute","relative","static"];if(Gm[Ge]){Gl.style.position=Gm[Ge]}}if(Gf!=null)Gl.style.left=isNaN(Gf)?"0px":Gf+"px";if(Gg!=null)Gl.style.top=isNaN(Gg)?"0px":Gg+"px";if(Gh!=null){if(Gh!="100%"){Gl.style.width=Gh+"px" ;}else{Gl.style.width=Gh;}}if(Gi!=null){if(Gi!="100%"){Gl.style.height=Gi+"px";}else{Gl.style.height=Gi;}}if(Gj!=null)Gl.style.zIndex=Gj;if(Gk!=null){Gl.setAttribute("UNSELECTABLE",Gk);Gl.setAttribute("onselectstart","return false;");}Gl.style.fontSize="12px";Gl.style.color="#000000";Gl.style.textAlign="left";Gl.style.lineHeight="100%";Gl.style.padding="0px";Gl.style.border="0px";return Gl;};this.ee=function(Gn,Go,Gp){if(Gp==null)Gp="";return "<span onclick=\"self.open(\'"+Go+"\');\" title=\'"+Gp+"\' style=\"letter-spacing:normal;padding:0px;font-weight:normal;margin:0px 0px 0px 0px;cursor:pointer;font-size:12px;color:#000000\">"+Gn+"</span>";};this.ef=function(Gq,Gr,Gs,Gt,Gu,Gv,Gw,Gx){var Gy=document.createElement("img");Gy.style.width=Gr+"px";Gy.style.height=Gs+"px";Gy.src=Gq;if(Gt!=""&&Gt!=null)Gy.alt=Gt;Gy.style.border="0px";if(Gu !=null)Gy.style.position=Gu;Gy.setAttribute("UNSELECTABLE","off");Gy.setAttribute("onselectstart","return false;");Gy.setAttribute("galleryImg","no");Gy.pendingSrc="null";if(Gv !=null)Gy.style.left=Gv+"px";if(Gw !=null)Gy.style.top=Gw+"px";if(Gx !=null)Gy.style.zIndex=Gx;return Gy;};this.eg=function(Gz,GA,GB){var GC=["beforeBegin","afterBegin","beforeEnd","afterEnd"];GA.appendChild(GB);};this.eh=function(GD){if(typeof(GD)!="object")return false;try{GD.parentNode.removeChild(GD);}catch(e){}return true;};this.ei=function(GE,GF,GG){if(GG==null)GG="crop";if(this.gw=="msie")GE.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod="+GG+",src=\'"+GF+"\')";if(this.gw=="firefox" || this.gw=="safari"||this.gw=="opera")GE.style.backgroundImage="url("+GF+")";};this.ej=function(funcstr){if(funcstr!=null&&funcstr!=""){try{eval(funcstr);}catch(e){}}};this.ek=function(GH){return;var GI=this.ec(document.getElementById("Logs"));if(GI){GI.innerHTML+=GH+"<br>";GI.scrollTop=GI.scrollHeight;}};this.el=function(GJ,GK){return false;if(this.ec(document.getElementById("quickstatus"))){document.getElementById("quickstatus").innerHTML=GJ+":"+GK;}};this.removeElement=function(GL,GN){if(GL.splice){return GL.splice(GN,1);}var GO=GL.slice(GN+1,GL.length);for(var GP=GL.length-GN;GP>0;GP--){GL.pop();}for(var GQ=0;GQ<GO.length;GQ++){GL.push(GO[GQ]);}return GL;};this.getDomFromString=function(GR){var GS=null;if(this.gw=="msie"){GS=new ActiveXObject("MSXML2.DOMDocument");GS.loadXML(GR);}else{GS=(new DOMParser()).parseFromString(GR,"text/xml");}return GS.documentElement;};this.cU="";this.cV="\u798f\u5dde\u5e02";this.cW="";this.cVCode="FJFZ";this.db=[];this.io=[];this.ip=false;this.fK=null;this.iq="map?act=getregion";this.ir=10000;this.fM=null;this.iu=null;this.init=function(){var GT=fG.length;fG[GT]=this;this.iv=GT;if(!this.iy())return false;this.iz();};this.dK=function(){if(!this.isInit())return false;if(this.dL["addResetScript"] !=null){this.ej(this.dL["addResetScript"]+"()");}else{this.showCity(this.cVCode);}};this.iw=function(){if(this.ci==-1){this.onerror(et);}};this.ix=0;this.gw="";this.iy=function(){if(!window.RegExp) return false;var GU=["opera","msie","safari","firefox","netscape","mozilla"];var GV=navigator.userAgent.toLowerCase();for (var GW=0; GW < GU.length; GW++){this.gw=GU[GW];if(GV.indexOf(this.gw) !=-1){var GX=new RegExp(this.gw+"[ /]?([0-9]+(.[0-9]+)?)");if (GX.exec(GV) !=null){this.ix=parseFloat(RegExp.$1);}if (this.gw=="opera")return this.ix >=7;if (this.gw=="safari")return this.ix >=125;if (this.gw=="msie")return (this.ix >=5.5 &&GV.indexOf("powerpc")==-1);if (this.gw=="netscape")return this.ix > 7;if (this.gw=="firefox")return this.ix >=0.8;}}return !!document.getElementById;};this.getUserAgent=function(){return this.gw;};this.setKey=function(GY){this.mM=GY;};this.iz=function(){var GZ=this;for(var Ha=0;Ha<this.ch.length;Ha++){var Hb=new rWingUrl(this.ch[Ha]+this.dq+this.iq);Hb.addParam("run","fG["+this.iv+"].fF");Hb.addParam("key",this.mM);Hb.addParam("domain",this.lO);var Hc=document.createElement("script");Hc.setAttribute("language","javascript");Hc.setAttribute("type","text/javascript");document.body.appendChild(Hc);Hb.addParam("arg",Ha);Hc.src=Hb.sUrl;}setTimeout(function(){GZ.iw()},this.ir);};this.checkProvinceCode=function(Hd){for(var He=0;He<this.mh.length;He++){if(Hd.indexOf(this.mh[He])>=0){return true;break;}};return false;};this.showCityList=function(){if(this.fH){var Hf=this;this.fK=this.ed(0,this.bz,0);var Hg=this.ed(0,0,0,77,21);Hg.style.backgroundImage="url("+this.ch[this.ci]+this.ds+"/toolbar/city.png)";Hg.style.backgroundRepeat="no-repeat";Hg.style.overflow="hidden";Hg.title=eK;Hg.style.fontSize="12px";Hg.style.paddingLeft="22px";Hg.style.paddingTop="5px";Hg.style.cursor="pointer";Hg.style.color="#444444";Hg.style.wordBreak="keep-all";Hg.innerHTML="<nobr>"+this.getCityNameByCode(this.getCity())+"</nobr>";Hg[this.cN[0]]=function(){Hf.fK.childNodes[1].style.display="";Hf.fK.childNodes[1].focus();};this.fK.appendChild(Hg);var Hh=this.ed(0,0,this.by+1,56,370);Hh.style.border="solid 1px #999999";Hh.style.fontSize="12px";Hh.style.cursor="default";Hh.style.color="#333333";if(this.gw=="msie")Hh.style.padding="2px";Hh.style.backgroundColor="#ffffff";Hh.style.wordBreak="keep-all";Hh.style.display="none";Hh.style.overflow="hidden";var Hi=0;for(var Hj=0;Hj < this.db.length;Hj++){if(!this.checkProvinceCode(this.db[Hj]["citycode"]))continue;var Hk=this.attachCity(Hj);if(Hk==null){continue;}else{Hh.appendChild(this.attachCity(Hj,false,Hi));Hi++;}}Hh[this.cN[10]]=function(){setTimeout(function(){if(Hf.iu !=null){Hf.iu.style.color="#cccccc";Hf.iu=null;}Hf.fK.childNodes[1].style.display="none";Hf.fK.childNodes[2].style.display="none";},200);};this.fK.appendChild(Hh);Hh=null;var Hl=this.ed(0,60,this.by+1,56,this.by-2);Hl.style.border="solid 1px #999999";Hl.style.fontSize="12px";Hl.style.cursor="default";Hl.style.color="#333333";Hl.style.padding="2px";Hl.style.backgroundColor="#ffffff";Hl.style.wordBreak="keep-all";Hl.style.display="none";this.fK.appendChild(Hl);Hl=null;this.bqBar.appendChild(this.fK);this.bz+=80+this.cQ;}};this.attachCity=function(Hm,Hn,Ho){var Hp=this.ed(1,0,0,56,13);var Hq=this;var Hr;switch(this.db[Hm]["orderno"].length){case 2:Hr=this.db[Hm]["province"];break;case 4:Hr=this.db[Hm]["city"];break;case 6:if(!Hn)return null;Hr=this.db[Hm]["county"];break;default:return false;break;}if(this.db[Hm+1] !=null){if(this.db[Hm+1]["orderno"].length==6){Hp.innerHTML=Hr+"&nbsp;";var Hs=document.createElement("span");Hs.style.color="#cccccc";if(!Hn){Hs[this.cN[6]]=function(eventTag){var Ht=eventTag||window.event;var Hu=Ht.srcElement||Ht.target;if(Hq.iu==null){Hq.iu=Hu;Hq.iu.style.color="#000000";}else{Hq.iu.style.color="#cccccc";Hq.iu=Hu;Hq.iu.style.color="#000000";}Hq.iA(Hm,Ho);};Hs.innerHTML="\uff1e";}else{Hs.innerHTML="&nbsp;";}Hp.appendChild(Hs);}else if(this.db[Hm]["orderno"].length==2){Hp.innerHTML="<font color=\'#53A3CE\'>"+Hr+"</font>";}else{Hp.innerHTML=Hr;}}else{Hp.innerHTML=Hr;}Hp.style.color="#333333";Hp.style.fontSize="12px";Hp[this.cN[0]]=function(){Hq.fK.childNodes[0].innerHTML=Hr;Hq.showCity(Hq.db[Hm]["citycode"]);Hq.fK.childNodes[1].style.display="none";Hq.fK.childNodes[2].style.display="none";Hq.hw.style.display="none";};Hp[this.cN[6]]=function(){Hp.style.color="#000000";Hp.style.backgroundColor="#dddddd";};Hp[this.cN[5]]=function(){Hp.style.color="#333333";Hp.style.backgroundColor="#ffffff";};Hp.style.cursor="pointer";Hp.style.padding="1px";return Hp;};this.iA=function(Hv,Hw){this.fK.childNodes[2].innerHTML="";var Hx=0;for(var Hy=Hv+1;Hy<this.db.length;Hy++){if(this.db[Hy]["orderno"].length !=6)break;this.fK.childNodes[2].appendChild(this.attachCity(Hy,true));Hx++;}this.fK.childNodes[2].style.top=(Hw+1) * 15+"px";this.fK.childNodes[2].style.height=Hx * 15+"px";this.fK.childNodes[2].style.display="";};this.setCityList=function(Hz,HA){this.fH=Hz?true:false;this.provincesShow=HA;};this.setCityName=function(HB){for(var HC=0;HC<this.db.length;HC++){if(this.mN[HC]["city"]==HB){this.setCity(this.mN[HC]["citycode"]);return true;break;}}return false;};this.getCityName=function(HD){if(HD==null || HD==""){return "";}switch(this.db[this.io[HD]]["orderno"].length){case 2:return this.db[this.io[HD]]["province"];break;case 4:return this.db[this.io[HD]]["city"];break;case 6:return this.db[this.io[HD]]["county"];break;default:return "";break;}};this.getCityNameByCode=function(HE){return this.getCityName(HE);};this.getCityCodeByName=function(HF,HG,HH){var HI="";if(HG==null && HH==null){for(var HJ=0;HJ<this.db.length;HJ++){if(this.db[HJ]["city"]==HF){HI=this.db[HJ]["citycode"];break;}}}else{HF=HF==null?"":HF;HG=HG==null?"":HG;HH=HH==null?"":HH;for(var HK=0;HK<this.db.length;HK++){if(this.db[HK]["province"]==HF &&this.db[HK]["city"]==HG && this.db[HK]["county"]==HH){HI=this.db[HK]["citycode"];break;}}}return HI;};this.setCity=function(HL){this.cVCode=HL;this.onChangeCity();};this.setCityByName=function(HM){};this.getCity=function(){if(!this.isInit())return false;return this.cVCode;};this.showCity=function(HN,HO){if(!this.isInit())return false;if(this.cVCode !=HN){if(this.io[HN] !=null){this.cVCode=HN;this.cU=this.db[this.io[HN]]["province"];this.cV=this.db[this.io[HN]]["city"];this.cW=this.db[this.io[HN]]["county"];this.onChangeCity();this.setProvinceByCode(HN);}else{return false;}}if(HO==null){HO=this.db[this.io[HN]]["defaultlayer"];}this.zoomTo(HO,this.db[this.io[HN]]["centerx"],this.db[this.io[HN]]["centery"]);};this.showCityByName=function(HP){if(!this.isInit())return false;for(var HQ=0;HQ<this.db.length;HQ++){if(this.mN[HQ]["city"]==HP){this.showCity(this.mN[HQ]["citycode"]);return true;break;}}};this.getCityName=function(){if(!this.isInit())return false;return this.cV;};this.onChangeCity=function(){this.ej(this.dL["onChangeCity"]+"()");try{if(this.fH){this.fK.childNodes[0].innerHTML="<nobr>"+this.getCityNameByCode(this.getCity())+"</nobr>";}}catch(e){}};this.fF=function(HR){if(HR.error){this.onerror(et);if(HR.msg){var HS=this.ed(1,0,0,null,null,null,"off");this.eg(2,this.bc,HS);if(!this.dz(parseInt(this.bc.offsetWidth),parseInt(this.bc.offsetHeight)))return false;HS.innerHTML="<div style=\'position:absolute;line-height:20px;left:"+(this.getWidth()*0.5-50)+";top:"+(this.getHeight()*0.5-10)+"\'>"+HR.msg+"</div>";};return false;};this.fs[parseInt(HR.arg)]=true;if(this.ci !=-1)return;this.ci=parseInt(HR.arg);window.status="\u5b8c\u6bd5";for(var HT=0;HT<HR.a.length;HT++){this.db[HT]=new Array();this.db[HT]["orderno"]=HR.a[HT][0];this.db[HT]["citycode"]=HR.a[HT][1];this.db[HT]["defaultlayer"]=HR.a[HT][2];this.db[HT]["province"]=HR.a[HT][3];this.db[HT]["city"]=HR.a[HT][4];this.db[HT]["county"]=HR.a[HT][5];this.db[HT]["centerx"]=HR.a[HT][6];this.db[HT]["centery"]=HR.a[HT][7];this.db[HT]["l"]=HR.a[HT][8];this.db[HT]["b"]=HR.a[HT][9];this.db[HT]["r"]=HR.a[HT][10];this.db[HT]["t"]=HR.a[HT][11];this.io[this.db[HT]["citycode"]]=HT;switch(this.db[HT]["citycode"]){case "FJFZ":this.db[HT]["border"]="GXAS gowz GTFh goCI GTgx gpSD GRKt gqDF GQAH gpMu GOFT gphB GNjP gmOd GJGF gmjk GFXm gnFo GCYV gqeV GBPj goqq Gzdk gpMu GwJM gmUm GudW goqq GudW gpYM Gspr gpSD Gspr gsfS GpPK grHi GnIE gtIf GndL gqPX GliX gqDF GliX grTA GkKn gsQU GmXC gwbE GlHH gwYY Gkfu gwYY GhSf gyHu GhLW gBhb GeTO gBYm GeHw gDZj GfKZ gEfs GfEQ gGEZ GcGz gHwk GcbG gNsS Gatk gNXL FZpH gMBH FYyw gNFk FXNu gQJK Gdls gWMB Ggwb gULE GlTZ gVko GnCv gTOk GoMh gUFv GsvA gSWZ GsOb gTOk GzOm gSKH GzvL gXDM GBPj hajC GDfe gZmi GDrw hbRY GChK hcDa GFst hfoZ GSHN hiMa HcnO hdAu Hazj gWSK GRQC gUzm GVGe gJqY GUdR gBaS HeTE gwSP";this.db[HT]["borderMBR"]="FXNu gmjk HeTE gmjk HeTE hiMa FXNu hiMa FXNu gmjk";break;case "FJQZ":this.db[HT]["border"]="GqCD hlws GmAJ hmzV GiLh hoAS GisG hnkX Gjwj hmMn Gjqa hkLq GhHE hkLq GhHE hiWL GdaR hjpm GcIq hhig Gbmm hfYu Gavb hewh GaTL hcvk GaNC hbDZ GdFK gYaP GdFK gWyC FZDQ gTnT FXPl gQOm FYYX gOuO FYue gNrl FVpE gMGj FTAZ gLVh FRSD gNxu FPsW gMSB FMin gNxu FMuF gONp FLxl gPlZ FKbh gOHg FJdN gSCR FJIG gUfe FJqf gUWp FHiZ gWst FJdN gXUG FLeK gXpN FKGa gZkB FEJs hcvk FCOE hbQr FBXt hbDZ FBRk hcHC FyMK hbly FxVz hhop FxPq hiEk Fusp hkao FvvS hlqj FtNw hnrg FzWw hswD Fyoa huJS FwLN huxA FvjA hvHm FuQZ hwEG FvUC hwXh Fvdr hyFD FxPq hzJg FzKe hyFD FCOE hzVy FFuu hytl FHvr hyRV FIgt hzwO FJqf hzqF FJwo hyaK FLDu hygT FMZy hzqF FPzf hyaK FRSD hAAr FUKL hAAr FVIf hDyI FWzq hHAC FVUx hJcP FWRR hKgs GaBk hIEf GdaR hJcP GeJn hKsK GeDe hLUX Gimx hKFc GiRq hIrN GisG hGDi Glxg hFLX GmNb hDyI GjdI hASS Gqql hytl GulW hzen GrMp hwKP GwgK hwyx GulW huDJ Gvpz hskl GsPS htnO GrGg hsVn GpXK hrmR Gusf hqvG GufN hnrg";this.db[HT]["borderMBR"]="FtNw gLVh GwgK gLVh GwgK hLUX FtNw hLUX FtNw gLVh";break;case "FJXM":this.db[HT]["border"]="FXlM hKeG FVxh hIIC FWGT hHag FVJz hFEc FVJz hDqN FUFW hAyF FSsH hAyF FPZj hxYY FMIr hzvc FKvc hxSP FJlq hyrz FJlq hzvc FIAo hzHu FGgQ hyQj FHkt hAge FHJd hEoh FHwL hHmy FFIg hICt FFIg hJFW FGLJ hKJz FGLJ hLZu FIhN hNNZ FIhN hOmJ FKZV hPkd FLKX hNNZ FLRg hPOW FPoh hQhx FSXA hQGh FWca hRDB FXrV hQbo GadU hQzY GbtP hPdU FZFk hLZu FXQF hNUi FUYx hNjg FRHF hOgA FSsH hLZu FUSo hKxh";this.db[HT]["borderMBR"]="FFIg hxSP GbtP hxSP GbtP hRDB FFIg hRDB FFIg hxSP";break;case "FJZZ":this.db[HT]["border"]="EVte hUre EUOl hQUd EWkp hQjb EWIZ hPlH EVmV hLUP EWPi hKRm EZoP hKRm EZuY hHSV FaEK hHAu EZBh hFnf EZBh hCHp FayB hCcw Fass hAMB FbvV hAAj FbvV hCcw FcYi hCoO FdPt hBJV Fffo hzko FgcI hxjr Fhgl hxvJ Fhac hvoD Fjhi huDB Fkxd hvHe FlAG huDB Foan hvuM FqSv hvAV FqSv htzY Frrf hqBH FrPP hpEn FpVb hplM FqGd hnPI Ftyl hnqY FuHX hnxh FxtW hpKw Fylh hrmJ FAme hsqm Fylh huJK FxhE hurj Fweb hvNn FuUp hvZF FvXS hxpA FvsZ hyLE FxSG hzPh FAEF hyFv FCtk hzqx FEGz hyzm FIjJ hAhI FHyH hDRb FIdA hGeq FGHw hIDX FFKc hIfn FFDT hJvi FGZX hKLd FGZX hMnq FIwb hMSj FIwb hOon FGHw hOAF FGiM hQpk FMlD hQvt FMlD hSdP FNvp hSqh FPjU hVuH FOai hVTr FMlD hWyk FJnm hZqs FHXr iabu FGcD ibWi FGcD idXf FESR ievP FDPo ieOq FAyw ijcC FziB iifi FxSG iifi Fwkk imnl Fwkk inPy FuvF ipWE FuBO iksx FrJG ijiL FqSv imLV Fqbk iohZ FsTs iprL Frrf iqiW FqSv isjT FoXH isID Fpqi ivik FkkL ivik Fnpl irLj Floo irsI Floo iplC FjtA ipEd FjzJ ithn FijO iueH Fffo isOM Fass iqHG EZTI inew EXnS ijcC EXnS ifgR EVmV iciA EXYU hYzh EWqy hXjm";this.db[HT]["borderMBR"]="EUOl hnqY FPjU hnqY FPjU ivik EUOl ivik EUOl hnqY";break;case "FJND":this.db[HT]["border"]="GEoP fJbK GDDN fMyL GCub fNpW GEoP fQZp GChJ fQie GBkp fRfy GBVr fTRx GzBT fWkV Gxiv fUqh GudV fUwq GtFl fSjb GsBI fSpk GmFa gamP Gjur gamP GiJp gdxy Ggwa gecr Gfgf gjAp Gfmo gnUK GgIs gpkF GfEP grKm GdQk gtLj GdWt guUV GiwX gwVS GhSe gxTn GhYn gzcZ GlcN gwDr GmyR gxil Gnqc gvSp GkEd gsiW GlBx gqur Gohn gtmz GqZv grxU GsBI grWE Gsvz gpPy Guke gpJp Guke gohc GwJL gmXq GyXa gpDg GBIZ gotu GCSL gqbQ GFRc gnwa GKrG glZW GNdF gmmo GPxd gpDg GRQB gpVH GUqi gohc GXuI gohc HagH gqoi Hcbv gqoi HhYd grEd HlZX gnwa HkDT gfXf HhLL geoJ HlBn gcbu HpqP gbVl HqTc fVSu HvtG fVYD HxTn fIVB HiqE fFsr GZde fKWy GSjc fyQQ GLvj fzdi";this.db[HT]["borderMBR"]="GdQk fyQQ HxTn fyQQ HxTn gzcZ GdQk gzcZ GdQk fyQQ";break;case "FJSM":this.db[HT]["border"]="Fagb fUfg Fffp fUry FhXx fWXo FiUR fSVu FnUf fVNC FrJH fXIq FrkX gaog FuBP gblA FwwD gfYw FvmR giQE FxtX glVe FEoa gkaq FFlu gooC FJaW goAU FNBA guJU FVsW gtnQ GbpE gvHp GhKW gxOv Ghmm gAGD Geue gBfn GeGw gDab GfDQ gGPD GcmY gGDl GbOo gMzT FZuQ gLOR FXMu gMzT FUUm gLOR FRrc gMYD FPjW gMbj FMrO gNxn FMrO gOuH FJLY gOuH FIpU gSkj FJaW gTSF FGHy gVoJ FJaW gWyv FKxa gXUz FHRk habF FEAs hbxJ FCRW haMH FBvS haYZ FBIk hcvd FzBe haMH FxhF haAp FxSH gZel FzNw gYtj Fwkl gVcr FuOh gVZL FsuJ gThD FpdR gTtV FoRz gVcr FmKt gVoJ FlZr gRax Fhmv gTGn FiIz gUPZ FfDZ gYtj FehV gYFB FcYj gVZL FbpN gVcr Fagb gQpv EZiH gNVX EXnT gPfJ EVFx gOGZ ETlZ gRax EQGj gQBN EReT gOip EPwx gPfJ EOLv gMYD EMrX gLqh ELuD gJjb EHFb gJvt EFKn gKFf ECFN gHZp EFlD gFhh EFlD gDab ECFN gDab EBIt gAul EGTZ gulk EJnx gviE EKVT grFu EHFb gplW EIqd glwu EFWF gjBG EIqd ggVQ EHgr geOK EMEp fYts EVtf fWKW";this.db[HT]["borderMBR"]="EBIt fSVu GhKW fSVu GhKW hcvd EBIt hcvd EBIt fSVu";break;case "FJNP":this.db[HT]["border"]="GEqJ fIXc GEqJ fIXc GDgX fMYW GEPt fRaQ GBXl fQpO GBKT fUrI GzDN fWmw GwXX fUfq GuEz fUEa GtuN fRYk Gmcb gaAJ Gjwl gaor GhBx gfbn GfGJ gkXV GgEd gpmh GdYn gtML GhcN gxdD GktF gxdD Gimz gzkJ Gcdz gwsB GaHv gxOF FWgQ gtZd FSeW guKf FNEs gviP FKzS gqUD FIFe goBf FFMW goBf FEeA gkmT FxJi gmhH FuRa giQP FxJi ggxr Fusq gblL FrnQ gaZt FsxC fXUS Fptc fYFU FmNm fUQs FiLs fTGG FiLs fWmw FhNY fWXy FekO fUrI FaHE fUrI FaiU fSkC Fexg fOva Fdbc fMnU FdzM fJvM Fcqa fEkg EZxS fDXO EZlA fzkS FcCs fAim FjIM fvHI FiXK frtw FlPS frhe FsWm fnQm FzQo ftMU FCUO fpyI FLxm fnQm FQki flkw FWFA fjCa FXCU fhiC FUmc ffnO FZKb fcjo Giah fdta Gkhn faZC GmNd feCM GnWP fjpI GleH flVy GrnH fyzQ GrYJ fDze GqCF fFtS Gtiv fGDE GzDN fGPW";this.db[HT]["borderMBR"]="EZlA faZC GEPt faZC GEPt gzkJ EZlA gzkJ EZlA faZC";break;case "FJLY":this.db[HT]["border"]="ECij gHwO EFLt gIMJ EFRC gKiN EIeR gJrC ELOk gIZb EMaC gLsz EPll gNhe EPWn gOVJ EQTH gODi EQHp gQrN ESjC gRvq ETYh gPZm EVMM gOJr EWWy gPok EZIx gOqQ EZIx gPMU FbDl gTjV Fbxc gUMi FbVM gWim FdrQ gWim FfsN gZze FhtK gXyh FjuH gVrb FikV gUSr FiJF gTdM Fldd gSgs FlOf gRcP FmXR gSaj FmXR gTwn Fnea gVJC Fprp gVxk Fpxy gUhp FsBY gTwn FvAp gWcd FwxJ gUYA Fzdz gYjj FAzD gYvB Fzwa gZRF FyyG gZze FxTN hbhA FzpR hbhA FzjI hcDE Fysx hema FxZW hihL FuCV hjJY FvGy hlml FtYc hnni Fryv hokC FqHk hnLS FqiA hphW Fsdo hqlz FqTC htOJ FqTC hvDo FonM hvkN FlBN huzL Fkyk hvxf FjuH huMd FhtK hvJx FhtK hxKu FgdP hxfB Ffam hzsQ FecS hCeP FbDl hCkY Fbxc hAOU FaMa hAOU FaFR hBYG EZCo hCJI EZIx hFdg Fahh hGaA Fanq hHPf EZCo hHPf EZCo hKBe EWWy hKNw EVul hMjA EWDX hPGB EVhT hRBp EUwR hQxM ESUE hPoa ESCd hMUC ERmi hMOt EPJV hKTF ERsr hHed EQZQ hGgJ EPxD hGRL EKKH hHqv EJNn hHed EGVf hIYR EGqm hHVo EGqm hFUr EFzb hEEw EEBH hEyn EDlM hDAT EBxh hBtN ECGT hAkb EBVR hyUg EAMf hyUg EAtE hAIL EwEc hBMo EuVG hzmH EryF hzLr EpDR hzgy EoSP hxWM EnwL hxWM EjHj hwNa EiJP hvqW Ejiz htjQ EkKM hssF Ejcq hqxR Ejcq hpbN EhYN hoDd EhYN hmCg Ejcq hlRe EkXe hlml ElOp hjDP EnwL hjff EnPm hibC Enkt hgLH EnCU hdHh EoSP hadX EpKa gZze Epfh gWTo EpWs gUtH EsCi gSgs EtYm gSaj EsjH gOVJ EuqN gMUM ExHF gMwc EzUU gKNG";this.db[HT]["borderMBR"]="EhYN gHwO FAzD gHwO FAzD hRBp EhYN hRBp EhYN gHwO";break;case "FJPT":this.db[HT]["border"]="GCnS hcGe GCnS hcGe GDxE haLq GDlm gZHN GBeg gZBE GzpB gWxe GAaD gTad GweS gSvk GsHR gTLf GsBI gSBt GoMg gUwh GnUV gTLf GkWE gVhj Ghhc gUjP GdKb gVMc GdDS gYlJ GaYc haRz GaRT hbOT Gatj heAS GcAp hhzj GcGy hjhF GeTN hjAg GhFM hjhF GhzD hlct GiVH hkxA GiDg hnjz Gjoi hoFD GmyR hmso GpJA hlHm GtgB hkQb GweS hqMJ GGjD hnUB GHRZ hmso GPeC hoYe GQoo hmKP GAgM hfEv";this.db[HT]["borderMBR"]="Gatj gSvk GQoo gSvk GQoo hqMJ Gatj hqMJ Gatj gSvk";break;};if(this.db[HT]["border"] !=null){this.db[HT]["border"]=eval("this.num52to10(\'"+this.db[HT]["border"].replace(/\s/g,"\')+\' \'+this.num52to10(\'")+"\')");this.db[HT]["borderMBR"]=eval("this.num52to10(\'"+this.db[HT]["borderMBR"].replace(/\s/g,"\')+\' \'+this.num52to10(\'")+"\')");}}this.ip=true;this.lL();};this.showMyPosition=function(HU,HV,HW,HX,HY,HZ,Ia,Ib){var Ic=this;var Id="myPosition_"+this.ea();var Ie=new wingBasePoint(Id,HW,HX);var If=new wingPicObj();var Ig;var Ih;var Ii;var Ij;var Ik;if(typeof(HZ)=="object"){try{Ig=HZ.src;Ih=HZ.width;Ii=HZ.height;Ij=-HZ.hotX;Ik=-HZ.hotY;}catch(e){Ig=this.ch[this.ci]+this.ds+"api/popred.png";Ih=29;Ii=27;Ij=0;Ik=-27;}}else{Ig=HZ==null?"popred.png":"rpop"+HZ+".png";Ig=this.ch[this.ci]+this.ds+"api/"+Ig;Ih=HZ==null?29:23;Ii=HZ==null?27:23;Ij=HZ==null?0:-2;Ik=HZ==null?-27:-23;}If.sImageSrc=Ig;If.nImageWidth=Ih;If.nImageHeight=Ii;If.nScreenX=Ij;If.nScreenY=Ik;If.onclick=function(){var Il=HU+"<br>"+HV;Ic.showMsgBox(HW,HX,Il,350,220,false,1,false,true);Ic.zoomToPosition(HW,HX,Ic.getWidth() * 0.2,Ic.getHeight() * 0.8);};Ie.addObj(If);var Im=new wingTextObj();Im.sText=HU;Im.nScreenX=Ih;Im.nScreenY=Ik;Im.sSize="12px";Im.sColor="#333333";Im.sBorder="solid 1px #333333";Im.sPadding="2px";Im.sBgColor="#ffffff";Ie.addObj(Im);var In=this.getCityCodeByName(HY);if(In !="" && In !=this.getCity()){this.showCity(In);}this.showElement(Ie);if(Ib){this.zoomTo(this.getLayer(),HW,HX);}return Id;};this.me=function(){this.lS=this.mk / this.lR;for(var Io=0;Io<this.mR.length;Io++){var Ip=1;for(var Iq=this.cc;Iq<=this.cb;Iq++){var Ir=Math.abs((this.mR[Io][2] - this.mR[Io][0]))/(this.cM[Iq-1]*0.001);var Is=Math.abs((this.mR[Io][1] - this.mR[Io][3]))/(this.cM[Iq-1]*0.001);var It=parseInt(Ir / this.mk);var Iu=parseInt(Is / this.mk);if (Ir % this.mk !=0) It+=1;if (Is % this.mk !=0) Iu+=1;this.lQ[Io].push([It*Iu,Ip,It,Iu]);Ip+=It*Iu;}}this.lX=this.lX.split("");};this.md=function(Iv,Iw){return Iw * this.cM[Iv-1] * 0.001;};this.mc=function(Ix,Iy,Iz,IA,IB,IC,ID,IE){if(Ix==-1)return null;var IF=0;var IG=0;var IH=0;if(IB > this.mR[Ix][0] && IE > this.mR[Ix][3]){IF=1;IG=IB;IH=IE;}else if(ID > this.mR[Ix][0] && IE > this.mR[Ix][3]){IF=2;IG=ID;IH=IE;}else if(IB > this.mR[Ix][0] && IC > this.mR[Ix][3]){IF=3;IG=IB;IH=IC;}else if(ID > this.mR[Ix][0] && IC > this.mR[Ix][3]){IF=4;IG=ID;IH=IC;}else{return null;}var II=parseInt(Math.abs((IG - this.mR[Ix][0])) / Iy)+1;var IJ=parseInt(Math.abs((IH - this.mR[Ix][3])) / Iy)+1;var IK=this.lQ[Ix][IA-1][3] * (II-1)+IJ+this.lQ[Ix][IA-1][1] - 1;var IL=this.mR[Ix][0]+Iy * (II - 1);var IM=this.mR[Ix][3]+Iy * (IJ - 1);II=parseInt((IG - IL) / Iz)+1;IJ=parseInt((IH - IM) / Iz)+1;var IN=this.lS * (II-1)+IJ;var IO=IL+Iz * (II - 1);var IP=IM+Iz * (IJ - 1);return [IF,IK,IL,IM,IN,IO,IP];};this.mb=function(IQ,IR,IS,IT,IU,IV){var IW=this.md(IR,this.mk);var IX=this.md(IR,this.lR);var IY=new function(){this.mbr=[];this.mapList=[];};var IZ=this.mc(IQ,IW,IX,IR,IS,IT,IU,IV);if(IZ==null)return [];var Ja=IZ[1];var Jb=IZ[4];var Jc=IZ[5];var Jd=IZ[6];var Je=(IZ[0]==1 || IZ[0]==3)?4:3;var Jf=(IZ[0]==1 || IZ[0]==2)?1:2;var Jg=parseInt((Je==4?(IU - Jc):(Jc - IS+IX))/IX)+1;var Jh=parseInt((Jf==1?(IT - Jd):(Jd - IV+IX))/IX)+1;IY.mbr=this.ma(IZ[0],IZ[5],IZ[6],Jg,Jh,IX);var Ji=null;var Jj=0;var Jk=0;var Jl=0;var Jm=0;var Jn=0;var Jo=0;for(Jn=0;Jn<Jg;Jn++){Jo=0;Jj=Ja;Jk=Jb;Jl=Jc;Jm=Jd;IY.mapList.push([IR+"/"+this.lY(Ja)+"/"+this.lY(Jb)+".png",Jc,Jd]);for(Jo=0;Jo<Jh;Jo++){Ji=this.lZ(IQ,Jf,Jj,Jk,IR,Jl,Jm,IX);if(Ji==null)break;IY.mapList.push([IR+"/"+this.lY(Ji[0])+"/"+this.lY(Ji[1])+".png",Ji[2],Ji[3]]);Jj=Ji[0];Jk=Ji[1];Jl=Ji[2];Jm=Ji[3];}Ji=this.lZ(IQ,Je,Ja,Jb,IR,Jc,Jd,IX);if(Ji==null)break;Ja=Ji[0];Jb=Ji[1];Jc=Ji[2];Jd=Ji[3];}return IY;};this.getMapIndex=function(Jp,Jq,Jr,Js){var Jt=Jq - Js;var Ju=Jp - Jr;if(Ju==0 && Jt==0)return 0;var Jv=Math.abs(Jt);var Jw=Math.abs(Ju);var Jx=Jw>Jv?Jw:Jv;var Jy=(Jx-1)*Jx*4 ;if(Jt==Jx){Jy+=Jx*0+Jx - Ju+1;}else if(Ju+Jx==0){Jy+=Jx*2+Jx - Jt+1;}else if(Jt+Jx==0){Jy+=Jx*4+Jx+Ju+1;}else{Jy+=Jx*6+Jx+Jt+1;}return Jy;};this.ma=function(nAct,dScreenX,dScreenY,nDoI,nDoJ,mapsize){switch(nAct){case 1:return [dScreenX,dScreenY+nDoJ*mapsize,dScreenX+nDoI*mapsize,dScreenY];break;case 2:return [dScreenX - nDoI*mapsize,dScreenY+nDoJ*mapsize,dScreenX,dScreenY];break;case 3:return [dScreenX,dScreenY,dScreenX+nDoI*mapsize,dScreenY - nDoJ*mapsize];break;case 4:return [dScreenX-nDoI*mapsize,dScreenY,dScreenX,dScreenY - nDoJ*mapsize];break;default:return [0,0,0,0];break;}};this.lZ=function(Jz,JA,JB,JC,JD,JE,JF,JG){var JH=JB-this.lQ[Jz][JD-1][1]+1;switch(JA){case 1:if(JC % this.lS !=0){return [JB,JC+1,JE,JF+JG];}else{if(JH % this.lQ[Jz][JD-1][3]==0){return null;}else{return [JB+1,JC - this.lS+1,JE,JF+JG];}}break;case 2:if((JC-1) % this.lS !=0){return [JB,JC - 1,JE,JF - JG];}else{if((JH-1) % this.lQ[Jz][JD-1][3]==0){return null;}else{return [JB - 1,JC+this.lS - 1];}}break;case 3:if(JC > this.lS){return [JB,JC - this.lS,JE-JG,JF];}else{if(JH <=this.lQ[Jz][JD-1][3]){return null;}else{return [JB - this.lQ[Jz][JD-1][3],JC+this.lS*(this.lS-1),JE-JG,JF];}}break;case 4:if(JC <=this.lS*(this.lS-1)){return [JB,JC+this.lS,JE+JG,JF];}else{if(JH > this.lQ[Jz][JD-1][3] * (this.lQ[Jz][JD-1][2]-1)){return null;}else{return [JB+this.lQ[Jz][JD-1][3],JC - this.lS*(this.lS-1),JE+JG,JF];}}break;default:return null;break;}};this.lY=function(JI){var JJ="";while(JI > 35){var JK=JI % 36;JJ=this.lX[JK]+JJ;JI=parseInt(JI / 36);};JJ=this.lX[JI]+JJ;return JJ;};};var mT=new function(){this.mU=73.440;this.mV=18.160;this.mW=0.001;this.mX=10;this.mY=0.05;this.mZ=0;this.na=null;this.nb=0.001481;this.nc=0.000139;this.nd=function(){this.nf();this.nh();};this.nf=function(){this.mZ=this.mX * 2+4;};this.ng=function(JL){this.na=JL;};this.nh=function(){aEncodes=[];aEncodes[0]=1;var JM=1;for(JM=1;JM<=this.mX;JM++){aEncodes[JM]=1+this.mY;}aEncodes[JM]=1;aEncodes[JM+1]=1;var JN=0;for(JN=JM+2;JN<this.mZ-1;JN++){aEncodes[JN]=1 - this.mY;}aEncodes[JN]=1;this.ng(aEncodes);};this.ni=function(JO){var JP=[];JP[0]=this.mU;JP[1]=0;if(JO<this.mU)return JP;var JQ=this.mZ*this.mW;var JR=(JO - this.mU) % JQ;JP[0]=JO - JR;JP[1]=JR;return JP;};this.nj=function(JS){var JT=[];JT[0]=this.mV;JT[1]=0;if(JS<this.mV)return JT;var JU=this.mZ*this.mW;var JV=(JS - this.mV) % JU;JT[0]=JS - JV;JT[1]=JV;return JT;};this.nk=function(JW){if(JW==0)return 0;var JX=this.mW;var JY=JW;var JZ=0;var Ka=this.mZ;var Kb=0;while(JX < JW && JZ < Ka){JY=JW - JX;JX+=this.mW;JZ++;}JZ=JZ>(Ka-1)?(Ka-1):JZ;JY=JY * this.na[JZ];for(Kb=0;Kb<JZ;Kb++){JY+=this.na[Kb]*this.mW;}return JY;};this.nl=function(longitude){var sp=this.ni(longitude);return sp[0] - this.nb+this.nk(sp[1]);};this.nm=function(Kc){var Kd=this.nj(Kc);return Kd[0] - this.nc+this.nk(Kd[1]);};this.nn=function(Ke){if(Ke==0)return 0;var Kf=this.mW*this.na[0];var Kg=Ke;var Kh=0;var Ki=this.mZ;var Kj=0;while(Kf < Ke && Kh < Ki){Kg=Ke - Kf;Kh++;Kf+=this.mW*this.na[Kh];}Kh=Kh>(Ki-1)?(Ki-1):Kh;Kg=Kg / this.na[Kh];for(Kj=0;Kj<Kh;Kj++){Kg+=this.mW;}return Kg;};this.no=function(Kk){var Kl=this.splitLongitude(Kk);return Kl[0]+this.nb+this.getDecryptEndCode(Kl[1]);};this.np=function(Km){var Kn=this.nj(Km);return Kn[0]+this.nc+this.nn(Kn[1]);};this.nd();};function _wing_fun_gsblx(Ko){return (Ko - 73.44695998)*100000;}function _wing_fun_gsbly(Kp){return (35.39660299 - Kp)*100000;}function _wing_fun_glbsx(Kq){return parseInt((73.446960+Kq * 0.00001)*100000)/100000;}function _wing_fun_glbsy(Kr){return parseInt((35.396603 - Kr * 0.00001)*100000)/100000;}function _wing_fun_init(){var Ks="RWing.prototype.get";var Kt="=_wing_fun_";eval(Ks+"LongitudeByScreenX"+Kt+"glbsx;");eval(Ks+"LatitudeByScreenY"+Kt+"glbsy;");eval(Ks+"ScreenXByLongitude"+Kt+"gsblx;");eval(Ks+"ScreenYByLatitude"+Kt+"gsbly;");}_wing_fun_init();function wingBaseButton(){this.sId="";this.sType="wingbutton";this.sNormalImg="0";this.sFocusImg="0";this.sActiveImg="0";this.sCursorImg="";this.sDefaultCursor="default";this.sAlt="";this.sCursorMsg="";this.nWidth=0;this.nHeight=0;this.bMapState=true;this.onclick=function(){};}lB("wingBaseButton",["Id","sId"],["Type","sType"],  ["NormalImg","sNormalImg"],  ["FocusImg","sFocusImg"],  ["ActiveImg","sActiveImg"],  ["CursorImg","sCursorImg"],  ["DefaultCursor","sDefaultCursor"],  ["Alt","sAlt"],  ["CursorMsg","sCursorMsg"],  ["Width","nWidth"],  ["Height","nHeight"],  ["MapState","bMapState"],  ["FnOnClick","onclick"]);function lB(Ku){if(Ku==null)return;for (var Kv=1; Kv<arguments.length; Kv++){var Kw=arguments[Kv];eval(Ku+".prototype.set"+Kw[0]+"=function(k){this."+Kw[1]+"=k;}");eval(Ku+".prototype.get"+Kw[0]+"=function(){return this."+Kw[1]+";}");}}function wingBasePoint(Kx,Ky,Kz,KA,KB){this.sId=Kx;this.sType="point";this.dScreenX=Ky;this.dScreenY=Kz;this.nShadow=-1;this.bControl=KA?true:false;this.bHidden=KB?true:false;this.oWingObj=new Array();this.addObj=function(KC){if(typeof(KC)=="object"){if(KC.sType){this.oWingObj.push(KC);}}};this.getObj=function(){return this.oWingObj;};};lB("wingBasePoint",["Id","sId"],["Type","sType"],  ["ScreenX","dScreenX"],  ["ScreenY","dScreenY"],  ["Shadow","nShadow"],  ["Hidden","bHidden"],  ["Control","bControl"]);function wingPicObj(){this.sType="pic";this.sImageSrc="";this.nImageWidth=0;this.nImageHeight=0;this.sAlt="";this.sBorder="0px";this.sCursor="default";this.sFilterMethod="crop";this.nScreenX=0;this.nScreenY=0;this.onclick=function(){};this.onmousedown=function(){};this.onmouseup=function(){};this.ondblclick=function(){};this.onmouseover=function(){};this.onmouseout=function(){};}lB("wingPicObj",["ImageUrl","sImageSrc"],  ["Width","nImageWidth"],  ["Height","nImageHeight"],  ["Title","sAlt"],  ["Border","sBorder"],  ["Cursor","sCursor"],  ["FilterMethod","sFilterMethod"],  ["X","nScreenX"],  ["Y","nScreenY"],  ["FnOnClick","onclick"],  ["FnOnMouseDown","onmousedown"],  ["FnOnMouseUp","onmouseup"],  ["FnOnDblClick","ondblclick"],  ["FnOnMouseOver","onmouseover"],  ["FnOnMouseOut","onmouseout"]);function wingBaseLine(){this.sId="";this.sType="line";this.sColor="#ffffff";this.nAlpha=100;this.bArrow=true;this.nWeight=2;this.aScreenX=[];this.aScreenY=[];this.run=false;this.runSpeed=10;this.runLength=2;}lB("wingBaseLine",["Id","sId"],["Type","sType"],  ["Color","sColor"],  ["Alpha","nAlpha"],  ["Arrow","bArrow"],  ["LineWidth","nWeight"],  ["ScreenX","aScreenX"],  ["ScreenY","aScreenY"],  ["Run","run"],  ["RunSpeed","runSpeed"],  ["RunLength","runLength"]);function wingLineObj(){this.sId="";this.sType="line";this.sColor="#ffffff";this.nAlpha=100;this.bArrow=true;this.nWeight=2;this.aScreenX=[];this.aScreenY=[];this.oPoint={"bShow":false,"sFillColor":"","sBorderColor":"","sStyle":"oval","nSize":2,"sClick":"wingLineObj","sMouseOver":"wingLineObj","sMouseOut":"wingLineObj","setShow":function(show){this.bShow=show;},"setFillColor":function(color){this.sFillColor=color;},"setBorderColor":function(color){this.sBorderColor=color;},"setStyle":function(style){this.sStyle=style;},"setSize":function(size){this.nSize=size;},"onClick":function(fun){this.sClick=fun;},"onMouseOver":function(fun){this.sMouseOver=fun;},"onMouseOut":function(fun){this.sMouseOut=fun;}};this.aScreenZ=[];this.aPointOnClick=null;this.aPointOnMouseOver=null;this.aPointOnMouseOut=null;this.run=false;this.runSpeed=10;this.runLength=2;this.addPoint=function(KD,KE,KF){this.aScreenX.push(KD);this.aScreenY.push(KE);this.aScreenZ.push(KF);};this.addPoints=function(KG){KG=KG.replace(/\s\s+/g," ").replace(/\s*$/,"").replace(/^\s*/,"");KG=KG.split(" ");for(var KH=0;KH<KG.length;KH++){if((KH+1)>=KG.length)break;this.addPoint(KG[KH],KG[KH+1]);KH++;}};this.onclick=function(){};this.onmousedown=function(){};this.onmouseup=function(){};this.ondblclick=function(){};this.onmouseover=function(){};this.onmouseout=function(){};}lB("wingLineObj",["Id","sId"],["Type","sType"],  ["Color","sColor"],  ["Alpha","nAlpha"],  ["Arrow","bArrow"],  ["LineWidth","nWeight"],  ["ScreenX","aScreenX"],  ["ScreenY","aScreenY"],  ["ScreenZ","aScreenZ"],  ["Run","run"],  ["RunSpeed","runSpeed"],  ["RunLength","runLength"],  ["FnOnClick","onclick"],  ["FnOnMouseDown","onmousedown"],  ["FnOnMouseUp","onmouseup"],  ["FnOnDblClick","ondblclick"],  ["FnOnMouseOver","onmouseover"],  ["FnOnMouseOut","onmouseout"]);function wingTextObj(){this.sId="";this.sType="text";this.sText="";this.sColor="#000000";this.sSize="12px";this.sBorder="solid 1px #000000";this.sWordBreak="keep-all";this.sTextType="text";this.sFilter="";this.nWidth=0;this.nHeight=0;this.sCursor="";this.sOverflowX="hidden";this.sOverflowY="hidden";this.sLineHeight="120%";this.sFontFamily="";this.sPadding="2px";this.sBgColor="#ffffff";this.nScreenX=0;this.nScreenY=0;this.onclick=function(){};this.onmousedown=function(){};this.onmouseup=function(){};this.ondblclick=function(){};this.onmouseover=function(){};this.onmouseout=function(){};}lB("wingTextObj",  ["Text","sText"],  ["TextType","sTextType"],  ["Color","sColor"],  ["Size","sSize"],  ["Border","sBorder"],  ["Width","nWidth"],  ["Height","nHeight"],  ["Cursor","sCursor"],  ["LineHeight","sLineHeight"],  ["FontFamily","sFontFamily"],  ["Padding","sPadding"],  ["BgColor","sBgColor"],  ["X","nScreenX"],  ["Y","nScreenY"],  ["FnOnClick","onclick"],  ["FnOnMouseDown","onmousedown"],  ["FnOnMouseUp","onmouseup"],  ["FnOnDblClick","ondblclick"],  ["FnOnMouseOver","onmouseover"],  ["FnOnMouseOut","onmouseout"]);function wingShapeObj(){this.sId="";this.sType="shape";this.alpha=100;this.strokeColor="#ffffff";this.sBgColor="";this.strokeWeight=2;this.aScreenX=[];this.aScreenY=[];this.addPoint=function(x,y){this.aScreenX.push(x);this.aScreenY.push(y);};this.onclick=function(){};this.onmousedown=function(){};this.onmouseup=function(){};this.ondblclick=function(){};this.onmouseover=function(){};this.onmouseout=function(){};}lB("wingShapeObj",["Id","sId"],["Type","sType"],  ["Alpha","alpha"],  ["StrokeColor","strokeColor"],  ["BgColor","sBgColor"],  ["StrokeWeight","strokeWeight"],  ["ScreenX","aScreenX"],  ["ScreenY","aScreenY"],  ["FnOnClick","onclick"],  ["FnOnMouseDown","onmousedown"],  ["FnOnMouseUp","onmouseup"],  ["FnOnDblClick","ondblclick"],  ["FnOnMouseOver","onmouseover"],  ["FnOnMouseOut","onmouseout"]);function wingOvalObj(){this.sId="";this.sType="oval";this.sBgColor="";this.strokeColor="";this.strokeWeight=1;this.alpha=100;this.radius=0;this.dScreenX=0;this.dScreenY=0;this.onclick=function(){};this.onmousedown=function(){};this.onmouseup=function(){};this.ondblclick=function(){};this.onmouseover=function(){};this.onmouseout=function(){};}lB("wingOvalObj",["Id","sId"],["Type","sType"],  ["Alpha","alpha"],  ["StrokeColor","strokeColor"],  ["BgColor","sBgColor"],  ["StrokeWeight","strokeWeight"],  ["ScreenX","dScreenX"],  ["ScreenY","dScreenY"],  ["Radius","radius"],  ["FnOnClick","onclick"],  ["FnOnMouseDown","onmousedown"],  ["FnOnMouseUp","onmouseup"],  ["FnOnDblClick","ondblclick"],  ["FnOnMouseOver","onmouseover"],  ["FnOnMouseOut","onmouseout"]);function wingSectorObj(){this.sId="";this.sType="sector";this.sBgColor="";this.strokeColor="";this.strokeWeight=1;this.alpha=100;this.radius=0;this.dScreenX=0;this.dScreenY=0;this.startAngel=0;this.startAngel=0;this.fillType="solid";this.color1="#ffffff";this.color2="red";this.onclick=function(){};this.onmousedown=function(){};this.onmouseup=function(){};this.ondblclick=function(){};this.onmouseover=function(){};this.onmouseout=function(){};}lB("wingSectorObj",["Id","sId"],["Type","sType"],  ["Alpha","alpha"],  ["StrokeColor","strokeColor"],  ["BgColor","color1"],  ["StrokeWeight","strokeWeight"],  ["ScreenX","dScreenX"],  ["ScreenY","dScreenY"],  ["Radius","radius"],  ["FillType","fillType"],  ["StartAngel","startAngel"],  ["EndAngel","endAngel"],  ["BgColor2","color2"],  ["FnOnClick","onclick"],  ["FnOnMouseDown","onmousedown"],  ["FnOnMouseUp","onmouseup"],  ["FnOnDblClick","ondblclick"],  ["FnOnMouseOver","onmouseover"],  ["FnOnMouseOut","onmouseout"]);function rWingUrl(KI){this.sUrl=KI;this.addFolder=function(KJ){this.sUrl+=KJ;};this.addParam=function(KK,KL){this.sUrl+=this.sUrl.indexOf("?")<0?"?":"&";this.sUrl+=KK+"="+KL;};}
