/**/_jsload2 && _jsload2('vectordrawlib', 'function Jg(a){this.JI=o;this.k=x.object.extend(a||{},{Gh:o});Hd.call(this,this.k);this.Dg={};this.loaded=q;this.du=p;this.CC=q;this.EK={road:"rd",water:"wt",building:"bd",land:"ld",government:"gv",point:"pts"};this.zF={market:"mt",food:"fd",communications:"cm",hotel:"ht",attractions:"at",recreation:"rc"}}Jg.prototype=new Hd; Jg.prototype.ra=function(a){if(!this.loaded){this.loaded=o;var b=this;b.map=a;b.fb=b.map.fb;b.map=a;b.Ax=q;b.eL=p;b.te="df";b.k.poiElements&&b.k.poiElements.name&&(b.te=b.zF[b.k.poiElements.name]);b.Se=b.k.style||"normal";b.En=b.k.styleStr||p;b.Dq=200;b.De=p;b.de=0;b.zb=this.fb.fo(0);b.Qd=this.fb.fo(10);b.fb.nd.appendChild(this.zb);b.fb.nd.appendChild(this.Qd);b.fb.zb=b.zb;b.fb.Qd=this.Qd;b.Ib=new B.VectorDrawLib;b.Is="";b.k.features&&(b.Is=b.LX(b.k.features));b.Ib.RC=b.Se;b.nm();b.Se&&"normal"!== b.Se||b.En&&0d.map.height?b=o:(f=[],f.push("
"),f.push("\'"+e.name+"\\u5916\\u666f\'"),f.push("
\\u8fdb\\u5165\\u5168\\u666f>>"), f.push("
"),l.innerHTML=f.join("")));i&&(f=H("p",{style:"padding:0;margin:0;line-height:18px;font-size:12px;color:#4d4d4d;"}),f.innerHTML="\\u5730\\u5740\\uff1a"+i,l.appendChild(f));j&&(f=H("p",{style:"padding:0;margin:0;line-height:18px;font-size:12px;color:#4d4d4d;"}),f.innerHTML="\\u7535\\u8bdd\\uff1a"+j,l.appendChild(f));e.tag&&(j=H("p",{style:"padding:0;margin:0;line-height:18px;font-size:12px;color:#4d4d4d;color:#7f7f7f;"}),j.innerHTML="\\u6807\\u7b7e\\uff1a"+e.tag,l.appendChild(j));a="http://api.map.baidu.com/place/detail?uid="+ a+"&output=html&source=jsapi&operate=mapclick&clicktype=vector";j="
"+e.name+"";a=new td(l,{width:322,enableSearchTool:o,title:j+("\\u8be6\\u60c5»")+ "
",enableParano:b});b&&(a.street_id=g);a.addEventListener("open",function(){var a=x.$("panoInfoBox");if(a){var b=e.street_id||"";d.SW("click",function(){Ta(5052);d.cr(b)},a,"pano_thumnail_img|panoInfoBoxTitleBg|panoInfoBoxTitleContent")}});this.map.Mb(a,c)}},cr:function(a){var b=B.Sf("pano","scape/")[0],c=this,d=(new Date).getTime(),e="Pano"+d;B[e]=function(a){var b=c.map.Km(),a=a.content[0];b.rc(a.poiinfo.PID);b.show();b.Nc({heading:a.poiinfo.Dir,pitch:a.poiinfo.Pitch})};d=(new Date).getTime(); sa(b+("?qt=poi&udt=20131021&uid="+a+"&t="+d+"&fn=BMap."+e),q)},vr:function(a){for(var b=[],c=0,d=a.length;cj.left&&c<=j.left+f&&d>j.top&&d<=j.top+f){e=b[g];break}}if(e==k||e.be==k)return q;f=e.be;b=0;for(i=f.length;b=iconX-15&&a.offsetX<=iconX+15&&a.offsetY>=iconY-15&&a.offsetY<=iconY+15))return{type:c[5].c||"",name:d,uid:n.u||"",point:{x:iconX,y:iconY},clickFea:{tileId:e.id,tile:e,fea:c}}}return q},qy:function(){return/M040/i.test(navigator.userAgent)},Qf:function(a){for(var b=a.offsetLeft,c=a.offsetTop,a=a.offsetParent;a&& a!=this.map.Ga();)b+=a.offsetLeft,c+=a.offsetTop,a=a.offsetParent;return{top:c,left:b}},SC:function(a){if(this.map.Wb()){this.map.oa().k.Zb=18;var a=this.du=a,b;for(b in a)switch(b){case "style":this.kq(a);break;case "styleStr":this.kq(a);break;case "features":this.zO(a[b]);break;case "poiElements":this.HO(a[b])}}},HE:function(){this.Nu();"dark"==this.Se?x.K.Ta(this.zb,"light_gray_background"):x.K.Ta(this.zb,"gray_background")},Nu:function(){x.K.Tb(this.zb,"gray_background");x.K.Tb(this.zb,"light_gray_background")}, SW:function(a,b,c,d){var e=this;c.dn||(c.dn=[],c.handle={});c.dn.push({filter:d,Em:b});c.handle[a]||(c.addEventListener(a,function(a){for(var b=a.target;b!=c;){e.Fb(c.dn,function(c,d){RegExp(d.filter).test(b.getAttribute("filter"))&&d.Em.call(b,a,b.getAttribute("filter"))});b=b.parentNode}},q),c.handle[a]=o)},Fb:function(a,b){for(var c=0,d=a.length;ca?"_":"")+(0>b?"$":"")+parseInt(Math.abs(a)+""+Math.abs(b)+""+d,10).toString(36);if(c&&e)if(g.hi)if("no"==g.hi)u="&layers=&features="+g.hi,c.be=p,e.be=p,this.om? (f=c.getContext("2d"),a=e.getContext("2d"),f.canvas.width=f.canvas.width,a.canvas.width=a.canvas.width,a=f=p):(g.rj(c),g.rj(e)),g.Ze=0;else if(-1=this.Ze-this.nj&&this.map.dispatchEvent(new N("onallvectorloaded"))},uW:function(a,b){var c=q;if(a.length&&b.length&&a.length==b.length){for(var d=0,e=a.length;dd&&this.xG(a,D,C,d);var A=1;B.Cb.LM(u)&&(B.Cb.HL(a,D-e/2,C-F/2,e,F,{fillStyle:l(m)}),A=0);f?(a.save(),a.scale(0.9,0.9),j&&a.strokeText(n[s],(D-e/2+1)/0.9,(C+F/2+1)/0.9),a.fillText(n[s],(D-e/2+1)/0.9,(C+F/2+1)/0.9),a.restore()):(A=i?2:A,j&&a.strokeText(n[s],D-e/2,C+F/2+A),a.fillText(n[s],D-e/2,C+F/2+A))}}},wt:function(a,b){var c=[Kg,"",[]];a&&(a[0]==Og?c[2]=a:c=a);b&&(b[0]== Og?c[2]=b:c[1]=b[1]);return c},xG:function(a,b,c,d){d=d/180*Math.PI;cv=Math.cos(d);sv=Math.sin(d);yy=xx=cv;xy=sv;yx=-sv;x0=b-b*cv-c*sv;y0=c+b*sv-c*cv;a.transform(xx,yx,xy,yy,x0,y0)},NF:function(a,b,c,d){if(16>=c)for(var c=0,e=b.length;c=d?1:0;default:return 0}},Ot:function(a,b){return a&&0