_jsload2&&_jsload2('control', 'function Zg(a){a&&(a.$n.style.border="1px solid "+B.iq.kq,a.Ch.style.backgroundColor=B.iq.kq,a.Ch.style.opacity="0.5",a.Ch.style.filter="Alpha(opacity=50);")}function $g(a){a&&(a.$n.style.border="1px solid "+B.iq.DG,a.Ch.style.backgroundColor=B.iq.DG,a.Ch.style.opacity="1",a.Ch.style.filter="")} z.object.extend(lb.prototype,{zf:function(){this.B&&this.He(this.B)},initialize:function(a){Vb.prototype.initialize.call(this,a);this.hr();this.Aa();this.ba();var b=this;this.B.Xx()?b.IA():this.B.addEventListener("load",function(){b.IA()});z.M(this.C,"click",ma);z.M(this.C,"dblclick",ma);z.M(this.C,"mousewheel",ma);z.M(this.C,"mouseup",function(a){a=window.event||a;2==a.button&&ma(a)});window.addEventListener&&this.C.addEventListener("DOMMouseScroll",function(a){ma(a)},q);return this.C},hr:function(){this.Li|| (this.Li=q,this.Aq=1,this.Cb=4,this.$a=s,this.Pn=this.Hf=this.Lh=-1,this.wv=this.sw=1,this.Ra={},this.Qn="",this.Nv=t)},MH:function(){if(this.B){var a=this.B.Oa-this.j.$0;return athis.Hf?this.Hf:a}},Aa:function(){Vb.prototype.Aa.call(this);var a=z.ca.ia!=t?" BMap_ie"+z.ca.ia:"",b=this.C;b.innerHTML=this.Uq();z.D.Ua(b,"BMap_omCtrl"+a);this.Kc=b.children[0].children[0];this.LI=this.Kc.children[0];this.nb=this.Kc.children[1];this.qr=this.nb.children[0];this.Ja=b.children[1];this.Ce(this.j.size); this.nb.style.cursor=G.Vb},Uq:ca(\'
\'),ba:function(){var a=this;z.M(this.Ja,"click",function(){a.se()});z.ca.ia&&z.M(this.Ja,"dblclick",function(){a.se()});if(!z.ca.ia||6=a.ba.im&&(a.ba.yl=3);0>=a.ba.jm&&(a.ba.zl=3);a.ba.im+a.nb.offsetWidth>=a.$a.width&&(a.ba.yl=-3);a.ba.jm+a.nb.offsetHeight>=a.$a.height&&(a.ba.zl=-3);a.nb.style.left=a.ba.im+"px";a.nb.style.top=a.ba.jm+"px";if((0!=a.ba.yl||0!=a.ba.zl)&&!a.ba.ut){a.ba.xI=q;var e=a.$a.offsetX+a.ba.yl,f=a.$a.offsetY+a.ba.zl;a.$a.Le(e,f);a.ba.ut=setInterval(function(){var b=a.ba.yl!=0?a.ba.yl>0?a.ba.ih=a.ba.ih+3:a.ba.ih=a.ba.ih-3:a.ba.ih,c=a.ba.zl!=0?a.ba.zl>0?a.ba.g=a.ba.g+3:a.ba.g= a.ba.g-3:a.ba.g;a.$a.Le(e+b,f+c)},30)}0==a.ba.yl&&0==a.ba.zl&&(clearInterval(a.ba.ut),delete a.ba.ut,a.ba.ih=0,a.ba.g=0);ma(b);return Cb(b)}});z.M(document,"mouseup",function(b){if(a.nb&&"true"==a.nb.Nq){a.nb.Nq="";a.qJ(G.Vb);a.nb.releaseCapture&&a.nb.releaseCapture();if(a.ba.c4==a.ba.im&&a.ba.d4==a.ba.jm)return ma(b),Cb(b);a.Qn="dragView";a.$a.K.pD=t;a.B.R.Jc=q;if(Hb(a.ba.im)&&Hb(a.ba.jm)){var c=a.ba.im+parseInt(a.nb.style.width)/2+1,e=a.ba.jm+parseInt(a.nb.style.height)/2+1;delete a.ba.im;delete a.ba.jm; var f=a.$a.xb({x:c,y:e},a.$a.Oa);a.B.R.Jc=t;a.ba.xI==q&&(clearInterval(a.ba.ut),delete a.ba.ut,a.ba.xI=t);a.B.R.Jc=q;setTimeout(function(){a.B.R.Jc=t;a.B.qi(f)},50);ma(b);return Cb(b)}}})},IA:function(){if(this.Nv!=q){var a=this,b=a.B;b.addEventListener("resize",function(){a.$a!=s&&a.$a.Zf(b.Ka());a.oe!=s&&(a.oe.sa(b.Ka()),a.Or());a.uc(a.j.anchor)});if(this.j.Xa!=t){this.Fi||(b.addEventListener("loadcode",function(){a.MI()}),b.addEventListener("moving",function(){a.BT()}),b.addEventListener("moveend", function(b){a.IT(b)}),b.addEventListener("zoomend",function(b){a.MI(b)}),b.addEventListener("maptypechange",function(){a.Or()}),this.Fi=q);var c=b.Ka();this.Lh=La.bp();this.Hf=La.sm();this.Pn=this.MH();this.$a=new Ka(this.LI,{Yx:q});this.$a.disableDoubleClickZoom();this.$a.Fd(c,this.Pn);this.oe=new pc({point:b.Ka(),ey:1,SM:"#6688cc"});this.$a.Ga(this.oe);this.oe.La().innerHTML=\'
\';this.iB=this.oe.La().children[0];c=this.oe.La().style; c.borderLeftColor="#84b0df";c.borderTopColor="#adcff4";c.borderRightColor="#274b8b";c.borderBottomColor="#274b8b";this.Or();this.$a.addEventListener("dragend",function(){a.Qn="dragMap";b.qi(a.$a.Ka())});this.$a.addEventListener("moveend",function(){a.JT()});this.$a.addEventListener("mousedown",function(b){a.Ra.B1=b.offsetX;a.Ra.C1=b.offsetY});this.$a.addEventListener("resize",function(){a.B&&a.$a&&a.$a.Zf(a.B.Ka());a.Or()});this.Nv=q}}},qJ:function(a){this.nb.style.cursor=a},uc:function(a){Vb.prototype.uc.call(this, a);if(this.B){if(z.ca.ia){var b=this.B.width,c=this.B.height,e=this.j.size.width,f=this.j.size.height,g=this.j.za.width,i=this.j.za.height;this.j.Xa==t&&(e=this.Cq,f=this.Bq);var k=this.C;switch(a){case Xb:k.style.right="auto";k.style.left=b-e-g+"px";break;case Yb:k.style.bottom="auto";k.style.top=c-f-i+"px";break;case 3:k.style.bottom="auto",k.style.right="auto",k.style.top=c-f-i+"px",k.style.left=b-e-g+"px"}}this.BU();this.wB()}},se:function(){this.se.mo=q;this.j.Xa=!this.j.Xa;if(this.C){var a= this.C,b=this.j.size.width,c=this.j.size.height,e=this.Cq,f=this.Bq,g=this;this.j.Xa?(this.Nv==t&&this.IA(),new tb({Ic:40,duration:120,kc:ub.eL,va:function(i){a.style.width=Math.ceil(b*i)+"px";a.style.height=Math.ceil(c*i)+"px";if(z.ca.ia&&(g.Ja.style.top=3==g.Cb||4==g.Cb?parseInt(a.style.height)-f+"px":"0",g.Ja.style.left=1==g.Cb||4==g.Cb?parseInt(a.style.width)-e+"px":"0",0<=g.j.anchor&&3>=g.j.anchor)){if(3==g.Cb||4==g.Cb)a.style.top=g.B.height-parseInt(a.style.height)-g.j.za.height+"px";if(1== g.Cb||4==g.Cb)a.style.left=g.B.width-parseInt(a.style.width)-g.j.za.width+"px"}g.dispatchEvent(new P("onviewchanging"))},finish:function(){if(0<=g.j.anchor&&3>=g.j.anchor&&z.ca.ia){if(3==g.Cb||4==g.Cb)a.style.top=g.B.height-c-g.j.za.height+"px";if(1==g.Cb||4==g.Cb)a.style.left=g.B.width-b-g.j.za.width+"px"}g.wB();g.jJ();z.D.Pb(g.Ja,"BMap_omBtnClosed");var e=new P("onviewchanged");e.isOpen=g.j.Xa;g.dispatchEvent(e);g.se.mo=t}})):(this.se.UT=this.Ja.style.top,this.se.TT=this.Ja.style.left,new tb({Ic:25, duration:120,kc:ub.hD,va:function(i){a.style.width=b-Math.ceil((b-e)*i)+"px";a.style.height=c-Math.ceil((c-f)*i)+"px";if(z.ca.ia&&(g.Ja.style.top=3==g.Cb||4==g.Cb?parseInt(a.style.height)-f+"px":"0",g.Ja.style.left=1==g.Cb||4==g.Cb?parseInt(a.style.width)-e+"px":"0",0<=g.j.anchor&&3>=g.j.anchor)){if(3==g.Cb||4==g.Cb)a.style.top=g.B.height-parseInt(a.style.height)-g.j.za.height+"px";if(1==g.Cb||4==g.Cb)a.style.left=g.B.width-parseInt(a.style.width)-g.j.za.width+"px"}g.dispatchEvent(new P("onviewchanging"))}, finish:function(){if(z.ca.ia&&(g.Ja.style.left="0",g.Ja.style.top="0",0<=g.j.anchor&&3>=g.j.anchor)){if(3==g.Cb||4==g.Cb)a.style.top=g.B.height-g.Bq-g.j.za.height+"px";if(1==g.Cb||4==g.Cb)a.style.left=g.B.width-g.Cq-g.j.za.width+"px"}g.wB();z.D.Ua(g.Ja,"BMap_omBtnClosed");var b=new P("onviewchanged");b.isOpen=g.j.Xa;g.dispatchEvent(b);g.se.mo=t}}))}else this.se.mo=t},Or:function(){if(this.B){var a=this.B.Oa,b=this.B.xb({x:0,y:0},a),a=this.B.xb({x:this.B.width,y:this.B.height},a),c=this.$a.xb({x:0, y:0},this.Pn),e=this.$a.xb({x:this.$a.width,y:this.$a.height},this.Pn);this.sw=(a.lng-b.lng)/(e.lng-c.lng);this.wv=(a.lat-b.lat)/(e.lat-c.lat);1<=this.sw||1<=this.wv?(this.nb.style.display="none",this.oe.U()):(b=parseInt(this.$a.height),a=Math.round(parseInt(this.$a.width)*this.sw),c=Math.round(b*this.wv),this.B.oa()==Qa&&(c=0.35*b),this.oe.show(),this.oe.u_(a,c),this.nb.style.display="");this.FB()}},FB:function(){if(this.oe&&this.oe.La())if(1<=this.sw||1<=this.wv)this.nb.style.display="none";else{var a= this.oe.La().style;this.nb.style.display="";this.nb.style.width=a.width;this.nb.style.height=a.height;var b=parseInt(a.width)-2,c=parseInt(a.height)-2;this.qr.style.width=(0>b?0:b)+"px";this.qr.style.height=(0>c?0:c)+"px";this.iB.style.width=this.qr.style.width;this.iB.style.height=this.qr.style.height;this.nb.style.left=parseInt(a.left)+this.$a.offsetX+"px";this.nb.style.top=parseInt(a.top)+this.$a.offsetY+"px"}},Ce:function(a){a instanceof O||(a=new O(150,150));var b=a.width,c=a.height,b=0
\'},Pk:function(a){this.j.color=a+"";if(this.C){this.C.children[0].style.backgroundColor="transparent";this.C.children[0].style.color=a;for(var b=1,c=this.C.children.length;b=b?this.Uh[this.j.fd].cP:this.Uh[this.j.fd].bP;e>=b&&(e=Math.round(e/b));this.nJ(e,c);0!=Math.round(a)%2&&6==z.ca.ia&&(a+=1);this.C.style.width=Math.round(a)+"px";this.B.Hb==Qa&&(this.C.style.width=3*Math.round(a)+"px",this.nJ(3*e,c))}}},dR:function(a,b){b=b||"metric"; return this.Uh[b]?a*this.Uh[b].CK:a}});T(vf,{setUnit:vf.LF});B.uz=[[-57,-179],[-45,-179]];B.uz.az=function(a){a=this[Number(a)];return a[0]+"px "+a[1]+"px"};var bh=new String(B.ka+"images/mapctrls2d0.gif");bh.az=function(a,b){return"transparent url("+this+") no-repeat "+("number"===typeof a?a+"px ":"")+("number"===typeof b?b+"px ":"")};B.GG={B_NORMAL_MAP:{zD:"B_SATELLITE_MAP",zF:"B_DIMENSIONAL_MAP",Qy:t},B_SATELLITE_MAP:{zD:"B_NORMAL_MAP",zF:"B_DIMENSIONAL_MAP",Qy:q},B_DIMENSIONAL_MAP:{zD:"B_NORMAL_MAP",zF:"B_SATELLITE_MAP",Qy:t}}; B.JP={B_DIMENSIONAL_MAP:Qa,B_SATELLITE_MAP:Ya,B_NORMAL_MAP:La};B.oz={B_DIMENSIONAL_MAP:{text:"\\u4e09\\u7ef4",title:"\\u663e\\u793a\\u4e09\\u7ef4\\u5730\\u56fe",file:bh,x:0,y:-131,right:"0px"},B_SATELLITE_MAP:{text:"\\u536b\\u661f",title:"\\u663e\\u793a\\u536b\\u661f\\u5730\\u56fe",file:bh,x:0,y:-177,right:"0px"},B_NORMAL_MAP:{text:"\\u5730\\u56fe",title:"\\u663e\\u793a\\u666e\\u901a\\u5730\\u56fe",file:bh,x:0,y:-221,right:"0px"}};B.BG=q; z.extend(mb.prototype,{zf:function(){this.B&&this.He(this.B)},initialize:function(a){this.bT();Vb.prototype.initialize.call(this,a);Vb.prototype.Aa.call(this);Vb.prototype.Nr.call(this);switch(this.j.type){case 1:this.gR();break;case 2:this.Uf={};this.hR(a);break;default:this.fR()}2!==this.j.type&&this.ba();this.ib(a);return this.C},bT:function(){this.Gf=[[Sa,Ya,q]];this.hb=[];this.Av=[]},fR:function(){for(var a=this.j.mh,b=0;b";i.onclick=function(){g.B.Dg(g.sv(a))};i.onmouseover=function(a){f.zd&& (clearTimeout(f.zd),f.zd=s);z.D.show(this);ma(a)};i.onmouseout=function(){var a=this;f.zd&&(clearTimeout(f.zd),f.zd=s);f.zd=setTimeout(function(){a&&z.D.U(a)},1E3)};f.Pg=this.Av[b]=i;f.appendChild(i);f.tl=i},gR:function(){var a=L("div");yb(a);a.title="\\u66f4\\u6539\\u5730\\u56fe\\u7c7b\\u578b";var b=a.style;b.font="bold 12px/1.5em "+G.fontFamily;b.background="#fff";b.boxShadow="2px 2px 3px rgba(0, 0, 0, 0.35)";b.padding="0 6px";b.border="1px solid #8ba4dc";a.innerHTML=\'\\u25bc\'+this.B.oa().getName();this.Cv=a;b=L("div");yb(b);dropDownStyle=b.style;dropDownStyle.position="relative";dropDownStyle.zIndex="-1";dropDownStyle.background="#fff";dropDownStyle.display="none";dropDownStyle.borderLeft=dropDownStyle.borderRight=dropDownStyle.borderBottom="1px solid #8ba4dc";for(var c=this.j.mh,e=0;ez.ca.ia&&(f.zoom="1");e.innerHTML=a.getName();e.title=a.gt();var g=this;e.onclick=function(){g.B.Dg(g.sv(a))};c.appendChild(e);this.hb[b]=e},mR:function(a,b,c){var e=L("div");yb(e);var f=e.style;f.font= "12px/1.6em "+G.fontFamily;f.padding="1px 0 1px 4px";f.whiteSpace="nowrap";e.title=a.gt();e.innerHTML="";var g=this;e.onclick=function(){g.B.Dg(g.sv(a))};c.appendChild(e);this.Av[b]=e;b=this.hb[this.qA(this.ol(a))];b.Gq=a;b.Pg=e},hR:function(a){function b(a){ma(a)}var c=B.iq,e={top:"2px",cursor:"pointer",width:"47px",height:"49px",zIndex:"800", display:"inline-block",position:"absolute",fontSize:"12px",border:"1px solid "+c.kq,backgroundColor:"#fff"},f={width:"41px",height:"43px",position:"absolute",margin:"2px",border:"1px solid "+c.kq},c={position:"absolute",top:"27px",width:"41px",height:"16px",backgroundColor:c.kq,opacity:"0.5",filter:"Alpha(opacity=50);"},g={position:"absolute",top:"29px",width:"41px",color:"white",textAlign:"center",lineHeight:"12px"};0=z.ca.ia&&(g.lineHeight="15px");z.extend(this.C.style,{cursor:"pointer", top:"10px",width:"120px",height:"60px"});this.C.style.background="url("+G.qa+"blank.gif)";var i=L("div");this.lg=i;z.extend(i.style,{position:"absolute",width:"71px",height:"21px",border:"1px solid #999",fontSize:"12px",bottom:"-26px",right:"-1px",backgroundColor:"white",display:"none"});var k=L("span");k.Pz=t;this.B&&"undefined"!==typeof this.B.ao&&(k.Pz=!!this.B.ao);var m=B.uz[1];i.Oz=k;z.extend(k.style,{background:bh.az(m[0],m[1]),width:"11px",height:"11px",position:"absolute",cssFloat:"left", top:"5px",left:"4px"});i.appendChild(k);k=L("span");k.innerHTML="\\u663e\\u793a\\u8def\\u7f51";z.extend(k.style,{position:"absolute",top:"4px",marginLeft:"18px"});i.appendChild(k);k.onmouseover=b;k.onmouseout=b;i.onmouseover=b;i.onmouseout=b;this.C.appendChild(i);for(var n,o,p,v=this.j.BW,x=0,y=v.length;x=0)v.style.right=Math.round(b*58)+4+"px";else{g=t;v.style.right=-Math.round(b*58)+4+"px"}},finish:function(){f.Mj=q}});else{v.style.right=offsetX-centerX>=0?"62px":"-62px";f.Mj=q}c.dispatchEvent(new P("onSecondShow"))}},100),f.Fv=q,$g(p))};c.lg.style.display=k.Qy?"":"none";c.XU(i);"B_SATELLITE_MAP"==i&&("undefined"===typeof c.B.ao?c.Xy(q):c.Xy(!!c.B.ao));f.Fv=t}}var c=this,e=this.Uf,f=this.C;f.Mj=t;var g=q,i;for(i in c.Uf)(function(a){z.M(a, "click",function(){b.call(a,s)})})(c.Uf[i]);z.M(f,"mouseover",function(a){a=window.event||a;c.mI(a.relatedTarget||a.toElement,q)||c.dispatchEvent(new P("onmouseover"))});var k=s;z.M(f,"mouseout",function(a){f.Jl&&(a=window.event||a,c.mI(a.relatedTarget||a.toElement,q)||(c.dispatchEvent(new P("onmouseout")),k!==s&&(clearTimeout(k),k=s),k=setTimeout(function(){if(!f.Fv){if(B.BG)new tb({duration:200,kc:ub.hD,va:function(a){f.Jl.style.right=g?Math.round((1-a)*58)+4+"px":-Math.round((1-a)*58)+4+"px"}, finish:function(){f.Mj=t}});else{f.Jl.style.right=g?"4px":"-4px";f.Mj=t}c.dispatchEvent(new P("onSecondHide"));Zg(f.Jl);Zg(f.BH)}},600),f.Fv=t))});this.lg.onclick=function(){c.Xy(!this.Oz.Pz)};a.addEventListener("onmaptypechange",function(){2==c.j.type&&(c.select(c.cr(a.Hb)),b.call(c.Uf[c.cr(a.Hb)],s),c.C.Jl.style.right=g?(c.C.Mj?62:4)+"px":(c.C.Mj?-54:4)+"px")});this.oU=function(){b.call(this.Uf[this.cr()],s);var a=this.C.Jl,c=this.C.BH;a.style.right="4px";Zg(a);Zg(c);this.C.Mj=t};this.oU()},Xy:function(a){var b= this.B;this.lg.Oz.Pz=b.ao=a;this.lg.Oz.style.backgroundPosition=B.uz.az(a);var c=new P("onchangehybirdmapmode");c.WY=a;b.ao=a;c.WY?b.Dg(Sa):b.Dg(Ya);b.dispatchEvent(c)},XU:function(a){if(this.B.Hb.getName()!=this.XH(a).getName()){var b=0;""!==this.B.Ub&&(b=1);var c=new P("onbeforesetmaptype");c.rL=b;c.Hb=a;c.X2=this.B.Hb;this.B.dispatchEvent(c);this.j.dX&&(b||a!=Qa)&&this.select(a)}},select:function(a){if(a!=l){a instanceof id&&(a=this.cr(a.getName()));var b=this.Uf[a];$g(b);b.DB=q;this.B.Dg(this.XH(a))}}, remove:function(){for(var a=this.Uf,b=0,c=a.length;b\\u25bc\'+this.B.oa().getName(),(f=this.hb[e])&&f.Gq&&f.Pg)z.D.show(f.Pg),f=f.Pg.getElementsByTagName("span")[0],f.checked="",ia.D.Pb(f,"checked")}else if(this.hb[e]&&this.hb[e].Gq==a){if(c=q,this.Cv.innerHTML=\'\\u25bc\'+this.ol(a).getName(),f=this.hb[e].Pg)z.D.show(f),f=f.getElementsByTagName("span")[0],f.checked="checked",ia.D.Ua(f,"checked")}else this.hb[e]&&(f=this.hb[e].Pg)&&z.D.U(f)}!b&&!c&&(this.Cv.innerHTML=\'\\u25bc\'+this.B.oa().getName())},remove:function(){this.hb=this.Av=[];this.Cv=s;Vb.prototype.remove.call(this)}});z.extend(cc.prototype,{zf:function(){this.B&&this.He(this.B)},initialize:function(a){Vb.prototype.initialize.call(this,a);this.Aa();this.ba();z.M(this.C,"click",ma);z.M(this.C,"dblclick",ma);z.M(this.C,"mousewheel",ma);z.M(this.C,"mouseup",function(a){a=window.event||a;2==a.button&&ma(a)});window.addEventListener&&this.C.addEventListener("DOMMouseScroll",function(a){ma(a)},q);this.Ff=1;this.RA=t;return this.C},Aa:function(){var a=L("div");a.innerHTML=\'\\u5168\\u666f\'; a.title="\\u8fdb\\u5165\\u5168\\u666f";var b=a.style;b.width="49px";b.height="51px";b.color="#565656";b.background=\'url("\'+G.qa+\'st-control.png") no-repeat 0 0\';b.position="absolute";b.cursor="pointer";b.fontFamily="arial,sans-serif";b.fontSize="13px";b.textAlign="center";b.WebkitBoxShadow=b.NP=b.MV="0px 0px 3px rgba(0, 0, 0, 0.3)";this.C=a;this.B.La().appendChild(a);a=this.Ug=L("div");b=a.style;b.position="absolute";b.width="24px";b.height="41px";b.cursor="pointer";b.backgroundImage=\'url("\'+G.qa+\'st-scout.png")\'; b.backgroundRepeat="no-repeat";b.backgroundPosition="-24px 0";b.overflow="hidden";b.display="none";6==z.ca.ia&&(b.background="",a.innerHTML="
");this.B.La().appendChild(a);a=this.Vd=L("div");b=a.style;b.position="absolute";b.width="112px";b.height="119px";b.backgroundImage=\'url("\'+G.qa+\'st-infowindow.gif")\';b.backgroundRepeat="no-repeat"; b.backgroundPosition="0 0";b.display="none";b.cursor="pointer";b=this.Ti=L("img");a.appendChild(b);b.src=G.qa+"st-noresult.png";b.style.width="100px";b.style.height="75px";b.style.left=b.style.top="6px";b.style.position="absolute";b=this.Ri=L("div");b.style.position="absolute";b.style.top="85px";b.style.fontFamily="arial,sans-serif";b.style.fontSize="13px";b.style.paddingLeft="6px";a.appendChild(b);this.B.La().appendChild(a)},ba:function(){var a=this;Ua()&&(z.M(this.C,"mouseover",function(){a.RA= q;a.ow()}),z.M(this.C,"mouseout",function(){a.RA=t;a.ow()}));z.M(this.C,"click",function(){a.Ni?a.Tz():a.KT()});z.M(document,"mousemove",function(b){if(a.Ni){var b=window.event||b,c=Bb(a.B.Wa),b=new Q((b.pageX||b.clientX)-c.left,(b.pageY||b.clientY)-c.top),e=a.B.xb(b);if(a.Ug.style.display!=""&&Ua()){a.Ug.style.display="";a.Vd.style.display=""}a.Ug.style.left=b.x-12+"px";a.Ug.style.top=b.y-41-2+"px";a.TI=a.Gh;a.Gh=b;if(a.TI){b=b.x-a.TI.x;if(b>0){a.Ug.style.backgroundPosition="-48px 0";if(z.ca.ia== 6)a.Ug.children[0].style.left="-48px"}else if(b<0){a.Ug.style.backgroundPosition="0 0";if(z.ca.ia==6)a.Ug.children[0].style.left="0"}}a.Ff=a.Gh.y<170?2:1;if(a.Gh.x<66)a.Ff=3;if(a.Gh.x>a.B.cb().width-56-10)a.Ff=4;b=a.Ff==1||a.Ff==2?112:126;c=a.Ff==1||a.Ff==2?119:105;if(a.Ff==1||a.Ff==2){a.Vd.style.left=a.Gh.x-Math.round(b/2)+"px";if(a.Ff==1){a.Vd.style.top=a.Gh.y-c-42+"px";a.Vd.style.backgroundPosition="0 0";a.Ti.style.top="6px";a.Ti.style.bottom="";a.Ri.style.top="85px";a.Ri.style.bottom=""}else{a.Vd.style.top= a.Gh.y+2+"px";a.Vd.style.backgroundPosition="-112px 0";a.Ti.style.top="";a.Ti.style.bottom="6px";a.Ri.style.top="";a.Ri.style.bottom="85px"}a.Vd.style.width="112px";a.Vd.style.height="119px";a.Ti.style.left="6px";a.Ri.style.left="0"}if(a.Ff==3||a.Ff==4){a.Vd.style.top=a.Gh.y-Math.round(c/2)-20+"px";if(a.Ff==3){a.Vd.style.left=a.Gh.x+12+"px";a.Vd.style.backgroundPosition="0 -119px";a.Ti.style.left="20px";a.Ri.style.left="14px"}else{a.Vd.style.left=a.Gh.x-12-b+"px";a.Vd.style.backgroundPosition="-126px -119px"; a.Ti.style.left="6px";a.Ri.style.left="0"}a.Vd.style.width="126px";a.Vd.style.height="105px"}a.Vd.style.backgroundImage=\'url("\'+G.qa+\'st-infowindow.gif")\';if(a.hw){clearTimeout(a.hw);a.hw=s}a.hw=setTimeout(function(){a.A1=e;a.Ug.style.backgroundPosition="-24px 0";if(z.ca.ia==6)a.Ug.children[0].style.left="-24px";a.RI.kj(e,function(b){if(b){a.$z=b.id;a.Ti.src="http://pcsv0.map.bdimg.com/scape/?qt=pdata&sid="+b.id+"&pos=0_0&z=0";a.Ri.innerHTML=b.description}else{a.$z=s;a.Ti.src=G.qa+"st-noresult.png"; a.Ri.innerHTML=""}})},200)}});this.B.addEventListener("click",function(b){if(a.Ni&&H()){var c=this.tm();a.RI.kj(b.point,function(b){if(b){c.vc(b.id);c.show();a.Tz();Ra(5043)}})}else if(a.Ni&&a.$z){c=this.tm();c.vc(a.$z);c.show();a.Tz();Ra(5043)}})},ow:function(){var a=this.C.style;this.Ni?(a.backgroundPosition="-49px 0",a.color="#fff"):this.RA?(a.backgroundPosition="-49px 0",a.color="#fff"):(a.backgroundPosition="0 0",a.color="#565656")},KT:function(){this.Ni||(this.Ni=q,this.B.Oe(this.QI),Ua()&& (this.VT=this.B.K.Vb,this.WT=this.B.K.Hd,this.B.setDefaultCursor("pointer"),this.B.setDraggingCursor("pointer")));this.ow()},Tz:function(){this.Ni&&(this.B.Yf(this.QI),Ua()&&(this.Ug.style.display="none",this.Vd.style.display="none",this.B.setDefaultCursor(this.VT),this.B.setDraggingCursor(this.WT)),this.Ni=t);this.ow()}}); ');