_jsload2&&_jsload2('mapclick', 'var gh=0,hh=1,ih=2,Vh,Wh=s;Ta=function(a){this.map=a;this.hF=this.Sw=s;this.Ho={};this.lZ=8;this.cm=[];this.V_=4;this.PF="";this.Uk=this.ee=this.fe=this.Ae=this.Qm=s;this.mp=this.Bm="";this.Yy=s;this.ki=0;this.AE=t;this.IN=s;this.hm=this.mL="";this.qj=new qc(G.qa+"spotmkrs.png",new O(18,18),{anchor:new O(9,9),imageOffset:new O(0,0),infoWindowOffset:new O(10,0)});this.KY()};Wh=Ta.prototype; Wh.KY=function(){var a=this;a.rV();a.bind();a.Xa=q;setTimeout(function(){a.Ln()},1E3);setInterval(function(){a.AE=t},300)};Wh.N5=ca(t);Wh.bind=function(){this.HV();this.IV();this.JV();this.KV()};Wh.KV=function(){var a=this,b=this.map;b.addEventListener("vectorchanged",function(c,e){e.isvector?a.close():b.K.fj==q&&a.open()})}; Wh.nZ=function(a){var b=this.map;if(this.Xa)if(10>b.fa())this.em();else if(this.qC(),a&&a.point)if(this.ki&&(this.IN=a.point),this.AE=q,1!=this.ki&&(this.ee&&this.ee.U(),this.fe&&this.fe.U(),this.Ld&&this.Ld.U()),a=b.nY(a.point,b.fa()),a.Hy&&a.Vw&&a.xg)this.hm=a.xg+"_"+a.Hy+"_"+a.Vw,this.Ho[a.xg+"_"+a.Hy+"_"+a.Vw]?this.PF!=this.hm&&this.WG(this.hm):this.n_({IE:a.xg,x:a.Hy,y:a.Vw})}; Wh.WG=function(a){var b=this.map;if(b.oa()!=La&&b.oa()!=Sa)this.em(),this.Ek();else if(b=a.split("_"),b=b[0]+"_"+b[1]+"_"+b[2],this.Ho[b]){this.em();this.hF=this.YJ(this.Ho[b][a]?this.Ho[b][a]:[],"MAP_CLICK_POI");this.PF=a;for(var a=-1,c=0,e=this.cm.length;cthis.map.fa())for(var b=0,c=a.spots.length;bb.fa())&&a&&(this.ki=0,this.Uk&&(b.R.qb&&b.R.qb.close(),this.pi=a,this.q_(this.Uk)))};Wh.q_=function(a){if(a){var b=this;rd.ab(function(c){b.vS(a,c)},{qt:"inf",uid:a,operate:"mapclick",clicktype:"tile"})}}; Wh.vS=function(a,b){var c=this,e=this.map;if(b&&b.content){var f=b.content,g=f.pano||0;ab.Be(f.geo,q);if(!i)var i={};i.isFromMPC=q;var k=f.addr,i=f.street_id||"";if(1==f.poiType||3==f.poiType)k=ab.unique(k.split(";")).join("; ");var m=f.tel;m&&(m=m.replace(/,/g,", "));c.Xq(f.cla);var n=L("div",{style:"font-size:12px;padding:5px 0;overflow:hidden;*zoom:1;"}),o=t;g&&(360>c.map.height?o=q:(g=[],g.push("
"), g.push("\'"+f.name+"\\u5916\\u666f\'"),g.push("
\\u8fdb\\u5165\\u5168\\u666f>>"),g.push("
"),n.innerHTML= g.join("")));k&&(g=L("p",{style:"padding:0;margin:0;line-height:18px;font-size:12px;color:#4d4d4d;"}),g.innerHTML="\\u5730\\u5740\\uff1a"+k,n.appendChild(g));m&&(k=L("p",{style:"padding:0;margin:0;line-height:18px;font-size:12px;color:#4d4d4d;"}),k.innerHTML="\\u7535\\u8bdd\\uff1a"+m,n.appendChild(k));f.tag&&(m=L("p",{style:"padding:0;margin:0;line-height:18px;font-size:12px;color:#4d4d4d;color:#7f7f7f;"}),m.innerHTML="\\u6807\\u7b7e\\uff1a"+f.tag,n.appendChild(m));var m="http://api.map.baidu.com/place/detail?uid="+ a+"&output=html&source=jsapi&operate=mapclick&clicktype=tile",k="
"+f.name+"",p=new tc(n,{width:322,enableSearchTool:q,title:k+("\\u8be6\\u60c5»")+ "
",enableParano:o});o&&(p.street_id=i);p.addEventListener("open",function(){var a=z.$("panoInfoBox");if(a){var b=f.street_id||"";Qb(function(){Ra(6006);c.Fq(b)},a,"pano_thumnail_img|panoInfoBoxTitleBg|panoInfoBoxTitleContent")}a=z.$("detailDiv");Qb(function(){Ra(6001)},a,"detailInfo")});p.addEventListener("close",function(){c.ee&&c.ee.U();c.fe&&c.fe.U();c.Ld&&c.Ld.U();e.R.qb.fb&&e.R.qb.fb.U();Vh=c.pi=s;p.removeEventListener("close",arguments.callee)});c.pi?(c.pi.pc(p),Vh||(Vh=c.Uk+"|"+(c.Bm? c.Bm:c.mp))):c.Ae||(i=ab.Be(f.geo,q).point,c.Bm&&(n=Xh[c.Bm],c.qj.Yt(new O(n.x,n.y)),n=Yh[n.W],c.qj.Ce(new O(n.a,n.eb)),c.qj.uc(new O(n.a/2,n.eb/2))),c.Ae=new U(i,{icon:c.qj,zIndexFixed:q}),e.Ga(c.Ae),c.Ae.addEventListener("click",function(){Vh=c.Uk+"|"+(c.Bm?c.Bm:c.mp);c.uC(c.Ae)}),c.Ae.addEventListener("mouseout",function(){c.lN(c.Ae)}),c.Ae.pc(p));c.ee&&c.ee.U();c.fe&&c.fe.U();c.Ld&&c.Ld.U()}}; Wh.Fq=function(a){var b=B.vg("pano","scape/")[0],c=this,e=(new Date).getTime(),f="Pano"+e;B[f]=function(a){var b=c.map.tm(),a=a.content[0];b.vc(a.poiinfo.PID);b.show();b.Pc({heading:a.poiinfo.Dir,pitch:a.poiinfo.Pitch})};e=(new Date).getTime();oa(b+("?qt=poi&udt=20131021&uid="+a+"&t="+e+"&fn=BMap."+f),t)}; Wh.qZ=function(a){var b=this.map;if(!(10>b.fa())){var c=a.spots;if(c&&!(1>c.length||"MAP_CLICK_POI"!=c[0].tag)){var e=this,f=s,g=s,i=0;e.pi&&e.pi===e.Ae?(f=e.Qm,g=e.fe,i=2):(f=e.Ae,g=e.ee,i=1);if(!b.R.qb||!(b.R.qb.Xa()==q&&Vh&&c[0].af.uid==Vh.split("|")[0])){if(c[0].af.type&&Xh[c[0].af.type]){var k=Xh[c[0].af.type];e.mp=c[0].af.type}else k=Xh.blank,e.mp="blank";var m=Yh[k.W];e.qj.Ce(new O(m.a,m.eb));e.qj.uc(new O(m.a/2,m.eb/2));e.qj.Yt(new O(k.x,k.y));m=c[0].af.oM?c[0].af.oM:c[0].k;f&&f.map?(f.U(), f.sa(m),f.Rb(e.qj),f.show(),e.Uk=c[0].af.uid):(f=new U(m,{icon:e.qj,zIndexFixed:q,baseZIndex:3E6}),e.Uk=c[0].af.uid,b.Ga(f),1==i?e.Ae=f:e.Qm=f,f.addEventListener("click",function(){e.Bm=e.mp;Vh=e.Uk+"|"+e.mp;e.uC(f)}),f.addEventListener("mouseout",function(){e.lN(f)}));f.ui(q);k=[{backgroundColor:"#FFFFE1",borderColor:"#8C8C8C",color:"#4D4D4D"},{backgroundColor:"#F0F7FF",borderColor:"#7AA3CC",color:"#224B73"}];e.Yy=f;g&&g.map?(g.U(),c[0].af.name?(e.ki=1,g.dd(c[0].af.name),a=e.Ax(m,1,{x:Math.abs(c[0].o[0])+ 6,y:-9}),g.sa(a),g.Md(k[1]),g.show()):(e.ki=2,g.dd("\\u70b9\\u51fb\\u53ef\\u67e5\\u770b\\u8be6\\u60c5"),g.Md(k[0]),e.PO(g))):c[0].af.name?(e.ki=1,a=e.Ax(m,1,{x:Math.abs(c[0].o[0])+6,y:-9}),g=new uc(c[0].af.name,{position:a}),b.Ga(g),1==i?e.ee=g:e.fe=g,g.Md(k[1])):(e.ki=2,g=new uc("\\u70b9\\u51fb\\u53ef\\u67e5\\u770b\\u8be6\\u60c5",{position:e.Ax(a.point,0)}),b.Ga(g),g.U(),1==i?e.ee=g:e.fe=g,g.Md(k[0]),e.PO(g))}}}}; Wh.PO=function(a){var b=this;b.qn=setInterval(function(){b.AE||setTimeout(function(){if(2==b.ki){var c=b.Ax(b.IN,0);a.sa(c);a.show()}clearInterval(b.qn)},500)},200)};Wh.Ax=function(a,b,c){var e=this.map,a=e.$b(a);if(c)var f=c;else 0==b?f={x:-1,y:24}:1==b&&(f={x:12,y:-9});try{if(0==b||1==b)return e.xb(new Q(a.x+f.x,a.y+f.y))}catch(g){}}; Wh.pZ=function(){var a=this.map;if(!(10>a.fa())){this.ki=0;this.ee&&this.ee.U();this.fe&&this.fe.U();this.Ld&&this.Ld.U();this.qn&&clearInterval(this.qn);this.Yy=s;var b=this.Qm;if(b&&b.map&&(!a.R.qb||a.R.qb.Xa()==t||a.R.qb.fb!==b)){if(this.pi&&this.pi===b)return;b.U()}(b=this.Ae)&&b.map&&((!a.R.qb||a.R.qb.Xa()==t||a.R.qb.fb!==b)&&!(this.pi&&this.pi===b))&&b.U()}}; Wh.lN=function(a){var b=this.map;!(10>b.fa())&&a&&(this.ee&&this.ee.U(),this.fe&&this.fe.U(),this.Ld&&this.Ld.U(),this.pi!==a&&!(b.R.qb&&b.R.qb.Xa()==q)&&(this.Uk=""))}; Wh.HV=function(){var a=this,b=this.map;b.addEventListener("load",function(){a.Ln()});b.addEventListener("moveend",function(){a.Ln()});b.addEventListener("dragend",function(){a.Ln()});b.addEventListener("zoomend",function(){a.qC();a.em();if(!b.R.qb||b.R.qb.Xa()!=q)a.Ae&&a.Ae.U(),a.Qm&&a.Qm.U(),a.ee&&a.ee.U(),a.fe&&a.fe.U(),a.Ld&&a.Ld.U(),a.ki=0,a.qn&&clearInterval(a.qn);a.Ln()});b.addEventListener("resize",function(){a.Ln()})}; Wh.Ln=function(){var a=this.map;this.Xa&&10>a.fa()&&(this.em(),this.Sw||(this.Sw=this.YJ(Zh,"MAP_CLICK_CITY")))};Wh.n_=function(a){var b=this.map,c=this.map.aa;if(a&&this.mL!=a.IE+"_"+a.x+"_"+a.y){this.mL=a.IE+"_"+a.x+"_"+a.y;var e=[];e.push(B.url.proto+B.url.domain.TILE_ONLINE_URLS[Math.abs(a.x+a.y)%3]+"/js/?qt=vQuest&styles=pl");e.push("&x="+a.x+"&y="+a.y+"&z="+b.Oa+"&v=056&fn=MPC_Mgr."+c+".getPoiData");oa(e.join(""))}}; Wh.getPoiData=function(a){var b=a.content[0],c=this.map;if(!(0b.uids.length)){for(var e={},a=t,f=[],g=0,i=b.uids.length;gthis.lZ&&(e=this.cm.shift(),delete this.Ho[e],delete e);a&&this.WG(this.hm)}};Wh.em=function(){var a=this.map;this.hF&&(a.dm("MAP_CLICK_POI"),this.hF=s,this.hm=this.PF="")};Wh.qC=function(){var a=this.map;this.Sw&&(a.dm("MAP_CLICK_CITY"),this.Sw=s)}; Wh.Ek=function(){this.Ae&&this.Ae.U();this.Qm&&this.Qm.U();this.ee&&this.ee.U();this.fe&&this.fe.U();this.Ld&&this.Ld.U();this.qn&&clearInterval(this.qn)};Wh.Xq=function(a){for(var b=[],c=0,e=a.length;c