_jsload2 && _jsload2('vectordrawlib', 'function Gf(a){this.aI=o;this.k=x.object.extend(a||{},{Ch:o});Hc.call(this,this.k);this.yg={};this.loaded=q;this.Gt=p;this.XB=q;this.WJ={road:"rd",water:"wt",building:"bd",land:"ld",government:"gv",point:"pts"};this.RE={market:"mt",food:"fd",communications:"cm",hotel:"ht",attractions:"at",recreation:"rc"}}Gf.prototype=new Hc; Gf.prototype.ra=function(a){if(!this.loaded){this.loaded=o;var b=this;b.map=a;b.cb=b.map.cb;b.map=a;b.Vw=q;b.wK=p;b.oe="df";b.k.poiElements&&b.k.poiElements.name&&(b.oe=b.RE[b.k.poiElements.name]);b.Qe=b.k.style||"normal";b.ln=b.k.styleStr||p;b.dq=200;b.ze=p;b.Zd=0;b.xb=this.cb.Nn(0);b.Nd=this.cb.Nn(10);b.cb.ld.appendChild(this.xb);b.cb.ld.appendChild(this.Nd);b.cb.xb=b.xb;b.cb.Nd=this.Nd;b.Jb=new z.VectorDrawLib;b.gs="";b.k.features&&(b.gs=b.TW(b.k.features));b.Jb.mC=b.Qe;b.Zl();b.Qe&&"normal"!== b.Qe||b.ln&&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=M("p",{style:"padding:0;margin:0;line-height:18px;font-size:12px;color:#4d4d4d;"}),f.innerHTML="\\u5730\\u5740\\uff1a"+i,l.appendChild(f));k&&(f=M("p",{style:"padding:0;margin:0;line-height:18px;font-size:12px;color:#4d4d4d;"}),f.innerHTML="\\u7535\\u8bdd\\uff1a"+k,l.appendChild(f));e.tag&&(k=M("p",{style:"padding:0;margin:0;line-height:18px;font-size:12px;color:#4d4d4d;color:#7f7f7f;"}),k.innerHTML="\\u6807\\u7b7e\\uff1a"+e.tag,l.appendChild(k));a="http://api.map.baidu.com/place/detail?uid="+ a+"&output=html&source=jsapi&operate=mapclick&clicktype=vector";k="
"+e.name+"";a=new tc(l,{width:322,enableSearchTool:o,title:k+("\\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.$V("click",function(){Ra(5052);d.Dq(b)},a,"pano_thumnail_img|panoInfoBoxTitleBg|panoInfoBoxTitleContent")}});this.map.Nb(a,c)}},Dq:function(a){var b=z.sg("pano","scape/")[0],c=this,d=(new Date).getTime(),e="Pano"+d;z[e]=function(a){var b=c.map.tm(),a=a.content[0];b.rc(a.poiinfo.PID);b.show();b.Mc({heading:a.poiinfo.Dir,pitch:a.poiinfo.Pitch})};d=(new Date).getTime(); pa(b+("?qt=poi&udt=20131021&uid="+a+"&t="+d+"&fn=BMap."+e),q)},Vq:function(a){for(var b=[],c=0,d=a.length;ck.left&&c<=k.left+f&&d>k.top&&d<=k.top+f){e=b[g];break}}if(e==j||e.Xd==j)return q;f=e.Xd;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},Nx: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.Na();)b+=a.offsetLeft,c+=a.offsetTop,a=a.offsetParent;return{top:c,left:b}},nC:function(a){if(this.map.Vb()){this.map.pa().k.$b=18;var a=this.Gt=a,b;for(b in a)switch(b){case "style":this.Lp(a);break;case "styleStr":this.Lp(a);break;case "features":this.ON(a[b]);break;case "poiElements":this.WN(a[b])}}},bE:function(){this.pu();"dark"==this.Qe?x.D.Ua(this.xb,"light_gray_background"):x.D.Ua(this.xb,"gray_background")},pu:function(){x.D.Sb(this.xb,"gray_background");x.D.Sb(this.xb,"light_gray_background")}, $V:function(a,b,c,d){var e=this;c.Om||(c.Om=[],c.handle={});c.Om.push({filter:d,nm:b});c.handle[a]||(c.addEventListener(a,function(a){for(var b=a.target;b!=c;){e.Gb(c.Om,function(c,d){RegExp(d.filter).test(b.getAttribute("filter"))&&d.nm.call(b,a,b.getAttribute("filter"))});b=b.parentNode}},q),c.handle[a]=o)},Gb: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.bi)if("no"==g.bi)v="&layers=&features="+g.bi,c.Xd=p,e.Xd=p,this.$l? (f=c.getContext("2d"),a=e.getContext("2d"),f.canvas.width=f.canvas.width,a.canvas.width=a.canvas.width,a=f=p):(g.nj(c),g.nj(e)),g.We=0;else if(-1=this.We-this.jj&&this.map.dispatchEvent(new O("onallvectorloaded"))},EV:function(a,b){var c=q;if(a.length&&b.length&&a.length==b.length){for(var d=0,e=a.length;dd&&this.PF(a,C,A,d);var B=1;z.Db.bM(v)&&(z.Db.YK(a,C-e/2,A-D/2,e,D,{fillStyle:l(m)}),B=0);f?(a.save(),a.scale(0.9,0.9),k&&a.strokeText(n[t],(C-e/2+1)/0.9,(A+D/2+1)/0.9),a.fillText(n[t],(C-e/2+1)/0.9,(A+D/2+1)/0.9),a.restore()):(B=i?2:B,k&&a.strokeText(n[t],C-e/2,A+D/2+B),a.fillText(n[t],C-e/2,A+D/2+B))}}},Us:function(a,b){var c=[Hf,"",[]];a&&(a[0]==Lf?c[2]=a:c=a);b&&(b[0]== Lf?c[2]=b:c[1]=b[1]);return c},PF: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)},eF:function(a,b,c,d){if(16>=c)for(var c=0,e=b.length;c=d?1:0;default:return 0}},kt:function(a,b){return a&&0=c.current_city.code&&(c.current_city.name="\\u53f0\\u6e7e\\u7701");2E4<=c.current_city.code&&20499>=c.current_city.code&&(c.current_city.name="\\u65b0\\u52a0\\u5761");20500<=c.current_city.code&& 25999>=c.current_city.code&&(c.current_city.name="\\u6cf0\\u56fd");26E3<=c.current_city.code&&29999>=c.current_city.code&&(c.current_city.name="\\u65e5\\u672c");3E4<=c.current_city.code&&30999>=c.current_city.code&&(c.current_city.name="\\u97e9\\u56fd");31E3<=c.current_city.code&&37E3>=c.current_city.code&&(c.current_city.name="\\u4e9a\\u592a");46609<=c.current_city.code&&52505>=c.current_city.code&&(c.current_city.name="\\u6b27\\u6d32");39509<=c.current_city.code&&53500>=c.current_city.code&&(c.current_city.name= "\\u5357\\u7f8e\\u6d32");54E3<=c.current_city.code&&7E4>=c.current_city.code&&(c.current_city.name="\\u5317\\u7f8e\\u6d32");54003===c.current_city.code&&(60731<=c.current_city.code&&61123>=c.current_city.code)&&(c.current_city.name="\\u7f8e\\u56fd");if(54015===c.current_city.code||57970<=c.current_city.code&&60223>=c.current_city.code)c.current_city.name="\\u52a0\\u62ff\\u5927";if(54025===c.current_city.code||54338<=c.current_city.code&&57374>=c.current_city.code)c.current_city.name="\\u58a8\\u897f\\u54e5";b.jD= o;if(c&&c.current_city){var d=c.current_city.name,e=c.current_city.code;e!==a.$r&&a.dispatchEvent("citychange",{name:d,code:e});a.Yg=d;a.$r=c.current_city.code;G()||Df(a)}},{qt:"cen",b:e.lng+","+e.lat+";"+c.lng+","+c.lat,l:d},"","",o)}};a.addEventListener("load",function(){b.bb()});a.addEventListener("moveend",function(){b.bb()});a.addEventListener("zoomend",function(){b.bb()});b.bb()}}); function Cf(a){if(!a.R.IV){a.R.IV=o;if(!a.Lw){var b=new N(2,2);G()&&(b.width=72,b.height=0);var c=new Yb({offset:b,printable:o});a.Lw=c}G()||(Df(a),a.addEventListener("maptypechange",function(){Df(a)}));a.ow(c);var d=new Ef;d.k={zg:o};a.ow(d);a.addEventListener("resize",function(){if(this.Bb().width>=300&&a.Bb().height>=100){d.show();c.Ve(b)}else{d.U();c.Ve(new N(4,2))}});300<=a.Bb().width&&100<=a.Bb().height&&a.K.CY?d.show():(d.U(),c.Ve(new N(4,2)))}} function Df(a){if(!a.Lw){var b=new N(2,2);G()&&(b.width=72,b.height=0);b=new Yb({offset:b,printable:o});a.Lw=b}var c=a.Yg||"\\u4e2d\\u56fd",b=a.pa(),d="\\u5e38\\u5dde\\u5e02 \\u5357\\u660c\\u5e02 \\u4e4c\\u9c81\\u6728\\u9f50\\u5e02 \\u65e0\\u9521\\u5e02 \\u798f\\u5dde\\u5e02 \\u6cc9\\u5dde\\u5e02 \\u73e0\\u6d77\\u5e02 \\u8d35\\u9633\\u5e02".split(" "),e="\\u5317\\u4eac\\u5e02 \\u4e0a\\u6d77\\u5e02 \\u5e7f\\u5dde\\u5e02 \\u6df1\\u5733\\u5e02 \\u5b81\\u6ce2\\u5e02 \\u77f3\\u5bb6\\u5e84\\u5e02 \\u6c88\\u9633\\u5e02 \\u957f\\u6625\\u5e02 \\u9752\\u5c9b\\u5e02 \\u6e29\\u5dde\\u5e02 \\u53f0\\u5dde\\u5e02 \\u91d1\\u534e\\u5e02 \\u4f5b\\u5c71\\u5e02 \\u4e2d\\u5c71\\u5e02 \\u6606\\u660e\\u5e02 \\u5357\\u5b81\\u5e02 \\u82cf\\u5dde\\u5e02 \\u897f\\u5b89\\u5e02 \\u6d4e\\u5357\\u5e02 \\u90d1\\u5dde\\u5e02 \\u5408\\u80a5\\u5e02 \\u547c\\u548c\\u6d69\\u7279\\u5e02 \\u676d\\u5dde\\u5e02 \\u6210\\u90fd\\u5e02 \\u6b66\\u6c49\\u5e02 \\u957f\\u6c99\\u5e02 \\u5929\\u6d25\\u5e02 \\u5357\\u4eac\\u5e02 \\u91cd\\u5e86\\u5e02 \\u5927\\u8fde\\u5e02 \\u4e1c\\u839e\\u5e02 \\u53a6\\u95e8\\u5e02".split(" "), f=["\\u9999\\u6e2f\\u7279\\u522b\\u884c\\u653f\\u533a"],g;for(g in d)if(d[g]===c){var i=o;break}for(g in e)if(e[g]===c)break;for(g in f)if(f[g]===c){var k=o;break}if("\\u53f0\\u6e7e\\u7701"===c)var l=o;if("\\u65b0\\u52a0\\u5761"===c)var m=o;if("\\u65e5\\u672c"===c)var n=o;if("\\u97e9\\u56fd"===c)var t=o;if("\\u6cf0\\u56fd"===c)var v=o;if("\\u4e9a\\u592a"===c)var w=o;if("\\u6b27\\u6d32"===c)var y=o;if("\\u5357\\u7f8e\\u6d32"===c)var C=o;if("\\u5317\\u7f8e\\u6d32"===c)var A=o;if("\\u7f8e\\u56fd"===c)var D=o;if("\\u52a0\\u62ff\\u5927"=== c)var B=o;if("\\u58a8\\u897f\\u54e5"===c)var F=o;g=["© 2018 Baidu - GS(2016)2089\\u53f7 - \\u7532\\u6d4b\\u8d44\\u5b571100930 - \\u4eacICP\\u8bc1030173\\u53f7 - Data © "];c="rgba(255, 255, 255, 0.701961)";9>=a.fa()?g=["© 2018 Baidu - GS(2016)2089\\u53f7 - \\u7532\\u6d4b\\u8d44\\u5b571100930 - \\u4eacICP\\u8bc1030173\\u53f7 - Data © "]:l?g=["© 2018 Baidu - GS(2016)2089\\u53f7 - \\u7532\\u6d4b\\u8d44\\u5b571100930 - \\u4eacICP\\u8bc1030173\\u53f7 - Data © "]:n||t?g=["© 2018 Baidu - GS(2016)2089\\u53f7 - \\u7532\\u6d4b\\u8d44\\u5b571100930 - \\u4eacICP\\u8bc1030173\\u53f7 - Data © "]: m||v?g=["© 2018 Baidu - GS(2016)2089\\u53f7 - \\u7532\\u6d4b\\u8d44\\u5b571100930 - \\u4eacICP\\u8bc1030173\\u53f7 - Data © "]:w?g=["© 2018 Baidu - GS(2016)2089\\u53f7 - \\u7532\\u6d4b\\u8d44\\u5b571100930 - \\u4eacICP\\u8bc1030173\\u53f7 - Data © "]:y?g=["© 2018 Baidu - GS(2016)2089\\u53f7 - \\u7532\\u6d4b\\u8d44\\u5b571100930 - \\u4eacICP\\u8bc1030173\\u53f7 - Data © "]:C?g=["© 2018 Baidu - GS(2016)2089\\u53f7 - \\u7532\\u6d4b\\u8d44\\u5b571100930 - \\u4eacICP\\u8bc1030173\\u53f7 - Data © "]: A&&(g=["© 2018 Baidu - GS(2016)2089\\u53f7 - \\u7532\\u6d4b\\u8d44\\u5b571100930 - \\u4eacICP\\u8bc1030173\\u53f7 - Data © "]);if(9>=a.fa()){g.push("\\u957f\\u5730\\u4e07\\u65b9");g.push(\' & OpenStreetMap\');g.push(\' & HERE\');if(b===Za||b===Sa)g.push(\' & ESO\'),c="rgba(0,0,0,.7)";b===Pa&&(g.push(\' & \\u90fd\\u5e02\\u5708\'), c="none")}else if(n||t)g.push(\'OpenStreetMap\');else if(m||v)g.push(\'HERE\');else if(w)g.push(\'HERE\'),g.push(\' & Mapbox\');else if(y)g.push(\'OpenStreetMap\'),g.push(\' & Mapbox\'); else if(C)g.push(\'OpenStreetMap\'),g.push(\' & Mapbox\');else if(D||F||B)g.push(\'HERE\'),g.push(\' & Mapbox\');else if(A)g.push(\'OpenStreetMap\'),g.push(\' & Mapbox\'); else{g.push("\\u957f\\u5730\\u4e07\\u65b9");i&&g.push(\' & PalmCity\');k&&g.push(\' & MapKing\');l&&(g.push(\' & HERE\'),g.push(\' & \\u6a02\\u5ba2LocalKing\'));if(b===Za||b===Sa)c="rgba(0,0,0,.7)"; b===Pa&&(g.push(\' & \\u90fd\\u5e02\\u5708\'),c="none")}g.unshift(\'\');g.push("");g=g.join("");a.Lw.qw({id:1,content:g})}function Ef(){this.defaultAnchor=Wb;this.defaultOffset=new N(1,20);G()&&(this.defaultOffset=new N(1,1));this.vz=30;this.Bu=E.qa+(G()?"copyright_logo_s.png":"copyright_logo.png")}Ef.prototype=new Tb; Ef.prototype.initialize=function(a){this.C=a;var b=M("div");b.style.height="32px";var c=M("a",{title:"\\u5230\\u767e\\u5ea6\\u5730\\u56fe\\u67e5\\u770b\\u6b64\\u533a\\u57df",target:"_blank",href:"http://map.baidu.com/?sr=1"});c.style.outline="none";c.innerHTML=6===x.da.la?"
":"";G()&&(1");b.appendChild(c);a.Na().appendChild(b);return b};x.extend(La.prototype,{yb:function(){this.ca()},ca:function(){var a=this;a.to=function(){var b=a.Bb();if(a.width!=b.width||a.height!=b.height){var c=new N(a.width,a.height),d=new O("onbeforeresize");d.size=c;a.dispatchEvent(d);a.hk((b.width-a.width)/2,(b.height-a.height)/2);a.ve.style.width=(a.width=b.width)+"px";a.ve.style.height=(a.height=b.height)+"px";c=new O("onresize");c.size=b;a.dispatchEvent(c);b=parseInt(a.platform.style.left)||0;c=parseInt(a.platform.style.top)||0;0!=a.Ta&&(a.offsetX!=b|| a.offsetY!=c)&&a.Je(b,c)}};a.K.Gs&&!a.R.Xl&&(a.R.Xl=setInterval(a.to,80));G()||(x.M(a.ve,"mouseover",function(b){Ab(b);a.dispatchEvent(new O("onmouseover"))}),x.M(a.ve,"mouseout",function(b){Ab(b);a.dispatchEvent(new O("onmouseout"))}))},Je:function(a,b,c,d){!isNaN(a)&&!isNaN(b)&&!(this.offsetX==a&&this.offsetY==b)&&(this.hk(this.offsetX-a,this.offsetY-b,c),a=Math.round(a),b=Math.round(b),this.offsetX=a,this.offsetY=b,this.platform.style.left=a+"px",this.platform.style.top=b+"px",this.ve.style.left= -a+"px",this.ve.style.top=-b+"px",d!=q&&this.dispatchEvent(new O("onmoving")))},ui:function(a,b){if(a instanceof H){var c=this.bc(a),d=Math.round(this.width/2),e=Math.round(this.height/2),b=b||{};Math.abs(d-c.x)>this.width||Math.abs(e-c.y)>this.height||b.noAnimation?this.zI(d-c.x,e-c.y,a):this.zl(d-c.x,e-c.y,{duration:b.duration})}},zI:function(a,b,c){var d=this.R;d.Hc!=o&&(d.mb&&d.mb.stop(),this.dispatchEvent(new O("onmovestart")),this.Je(this.offsetX+a,this.offsetY+b,c),this.dispatchEvent(new O("onmoveend")))}, xg:function(a,b,c){a=Math.round(a)||0;b=Math.round(b)||0;c=c||{};Math.abs(a)<=this.width&&Math.abs(b)<=this.height&&!c.noAnimation?this.zl(a,b):this.zI(a,b)},zl:function(a,b,c){if(this.R.Hc!=o){c=c||{};this.dispatchEvent(new O("onmovestart"));var d=this,e=d.R;e.ly=d.offsetX;e.m=d.offsetY;e.JF&&e.JF.cancel();e.mb&&e.mb.stop();e.JF=new rb({Gc:c.Gc||d.K.Gc,duration:c.duration||d.K.JU,jc:c.jc||sb.OK,va:function(c){(this.EF=d.R.Hc)||d.Je(e.ly+Math.ceil(a*c),e.m+Math.ceil(b*c))},finish:function(){d.dispatchEvent(new O("onmoveend")); d.R.JF=q;d.R.zi==o&&(d.R.zi=q,0!=d.R.lc&&d.eb())}})}},IX:function(a,b){var c=this.pa();if("object"!=typeof c)return p;c=256*c.Bc(b);a=R.zb(a);return{qy:parseInt(a.lng/c),Iw:parseInt(a.lat/c),ug:b}}});S(X,{panTo:X.ui,panBy:X.xg}); '); _jsload2 && _jsload2('scommon', 'var Tg=new N(23,25),Ug=new N(9,25),Vg=new N(9,0);U.PU=function(a,b,c,d){var e=Wg(b);if(e&&!(0>c||9b.length)return;b[0]=parseFloat(x.trim(b[0]));b[1]=parseFloat(x.trim(b[1]))}else if(b=a.slice(0),2>b.length)return;b=new H(b[0],b[1])}return b} U.TV=function(a){var b=a.title,c=a.Yr,d=a.z_,e=a.dW,a=a.TE||0;if(!b)return p;var f=b;1==a?f+="-\\u516c\\u4ea4\\u8f66\\u7ad9":3==a&&(f+="-\\u5730\\u94c1\\u7ad9");var g=13;e&&(g=10);f.replace(/[\\u0100-\\uffff]/g,"##").length>2*g+1&&(f=f.substring(0,g)+"…");b="

"+f;e&&(b+="\\u8be6\\u60c5\\u00bb"); b+="

";e=[];e.push("
");if(c){f="\\u5730\\u5740\\uff1a";if(1==a||3==a)f="\\u8f66\\u6b21\\uff1a";e.push(\'\');e.push(\'");d&&e.push(\'");e.push("
\'+f+\' \');e.push(c+" 
\\u7535\\u8bdd\\uff1a\'+ d+"
")}else d&&(e.push(\'\'),e.push(\'
\\u7535\\u8bdd\\uff1a\'+d+"
"));e.push("
");return new tc(e.join(""),{title:b,height:0,width:230,margin:[10,10,20,10]})}; U.xo=function(a,b,c,d){if(b=Wg(b))return d=new T(b,{icon:G()?new qc(E.qa+"dest_mkr.png",new N(29,34),{anchor:new N(14,32),imageSize:new N(94,41),imageOffset:new N(-29*d,0),infoWindowAnchor:new N(14,0)}):new qc(E.qa+"dest_markers.png",new N(42,34),{anchor:new N(14,32),imageOffset:new N(0,-34*d),infoWindowAnchor:new N(14,0)}),baseZIndex:35E5,draggingCursor:"pointer"}),a.Ja(d),c&&d.Cc(c),d};U.yo=function(a,b){return U.Rl(a,b,cd)}; U.CP=[{stroke:6,color:"#0030ff",opacity:0.45,style:"solid"},{stroke:5,color:"#00bd00",opacity:0.95,style:"solid"},{stroke:5,color:"#ffac00",opacity:0.95,style:"solid"},{stroke:5,color:"#f41c0d",opacity:0.95,style:"solid"}]; U.BP=[{stroke:6,color:"#0030ff",opacity:0.45,style:"solid"},{stroke:6,color:"#0030ff",opacity:0.45,style:"solid"},{stroke:4,color:"#30a208",opacity:0.55,style:"dashed"},{stroke:5,color:"#0030ff",opacity:0.45,style:"solid"},{stroke:4,color:"#ff0103",opacity:0.65,style:"dashed"},{stroke:5,color:"#ff0103",opacity:0.65,style:"solid"}]; U.IJ=function(a,b,c){var d=U.CP;"undefined"==typeof c&&(c=0);if(d[c])return d=d[c],b=new Dc(b,{strokeWeight:d.stroke,strokeColor:d.color,strokeOpacity:d.opacity,strokeStyle:d.style,clickable:q}),a.Ja(b),b.m1=c,b}; U.Rl=function(a,b,c){var d=U.BP;"undefined"==typeof c&&(c=0);if(d[c]){var e=d[c],d=new Dc(b,{strokeWeight:e.stroke,strokeColor:e.color,strokeOpacity:e.opacity,strokeStyle:e.style,clickable:q});a.Ja(d);d.g1=c;c==cd&&(b=new Dc(b,{strokeWeight:e.stroke-2,strokeColor:"#fff",strokeOpacity:0.3,clickable:q}),d.ZA=b,a.Ja(b));return d}}; U.Mw=function(a){var b=a.content,c=a.Pw,d=a.total,e=a.$x,f=a.z3,a=a.UX,g=["
"];b&&g.push("
"+b+"
");a||g.push(U.KW(d,c));g.push("
");b=new tc(g.join(""),{title:"",height:0,width:220,margin:[10,10,20,10]});if(a)return b;b.addEventListener("open",function(){var a=G()?"touchend":"click";x.Dc("trans_prev")&&x.M(x.Dc("trans_prev"),a,function(){e&&"function"==typeof e&&e(c-1,f)});x.Dc("trans_next")&&x.M(x.Dc("trans_next"), a,function(){e&&"function"==typeof e&&e(c+1,f)})});return b}; U.KW=function(a,b){var c=[];c.push(\'\');c.push(\'");c.push(\'
\');0==b?c.push(\'\\u4e0a\\u4e00\\u6b65\'):c.push(\'\\u4e0a\\u4e00\\u6b65\');c.push("\'); b==a+1?c.push(\'\\u4e0b\\u4e00\\u6b65\'):c.push(\'\\u4e0b\\u4e00\\u6b65\');c.push("
");return c.join("")}; U.KJ=function(a,b,c,d){if(b=Wg(b)){c=c||0;if(G())c=new qc(E.qa+"dest_mkr.png",new N(20,20),{imageSize:new N(94,41),imageOffset:new N(-59,-21*c),infoWindowAnchor:new N(10,0)});else{var e=-55;1==c&&(e=-76);c=new qc(E.qa+"trans_icons.png",new N(21,21),{imageOffset:new N(0,e),infoWindowAnchor:new N(10,0)})}c=new T(b,{icon:c});a.Ja(c);d&&c.Cc(d);return c}};U.Ts=function(a){return a&&a.La&&a.La.og?a.La.og.childNodes[0]:p}; U.SU=function(a,b,c){b=new T(b,{icon:new qc(Kd.tU,new N(11,11))});c&&b.Cc(c);a.Ja(b);return b};U.FJ=function(a,b){var c=new T(b,{icon:new qc(E.qa+"drag.png",new N(11,11)),draggingCursor:"pointer"});a.Ja(c);c.Xt(10);return c};U.LJ=function(a,b,c){b=new T(b,{icon:new qc(E.qa+"way-points.png",new N(36,40),{imageOffset:new N(-11+-36*c,-35)}),draggingCursor:"pointer",offset:new N(5,-20)});a.Ja(b);b.Xt(10);return b}; U.tK=function(){var a=new uc("\\u62d6\\u52a8\\u4ee5\\u66f4\\u6539\\u8def\\u7ebf",{offset:new N(30,-10)});a.Ld({border:"solid 1px gray",padding:"2px",whiteSpace:"nowrap",background:"#fff"});return a};U.WW=function(a,b){if(a&&b)return Math.round(Math.sqrt(Math.pow(a.x-b.x,2)+Math.pow(a.y-b.y,2)))}; U.QU=function(a,b,c,d){var e={type:"RouteAddrMarker"},a=Wg(a),e=e||{};e.type=e.type||"normal";if(a&&!("undefined"==typeof b||0>b||9a&&(a=1);18b?b=0:0.25b?b=1:32=i&&(f=f.join(";")); if(2==i){b=(f[0]+";"+f[1]).split(";");e=[];for(c=0;cb.length)return;b[0]=parseFloat(ja.trim(b[0]));b[1]=parseFloat(ja.trim(b[1]))}else if(b=a.slice(0),2>b.length)return;b=new z.Yf(b[0],b[1])}return b};P.dZ=function(a){a=a.split(",");a=new H(a[0],a[1]);return R.Ab(a)}; P.ug={country:4,province:11,city:12,t1:13};var ah=["=",".","-","*"],bh=8388608; function $g(a){var b;b=a.charAt(0);var c=-1;b==ah[1]?c=Zg:b==ah[2]?c=Yg:b==ah[3]&&(c=Xg);b=c;for(var c=a.substr(1),d=0,e=c.length,f=[],a=[],g=[];de-d)return 0;a:{for(var g=c.substr(d,13),i=f,k=0,l=0,m=0,n=0;6>n;n++){m=ch(g.substr(1+n,1));if(0>m){g=-1-n;break a}k+=m<<6*n;m=ch(g.substr(7+n,1));if(0>m){g=-7-n;break a}l+=m<<6*n}i.push(k);i.push(l);g=0}if(0>g)return 0;d+=13}else if(";"==c.charAt(d))a.push(f.slice(0)),f.length=0,++d;else{if(8>e-d)return 0;g=dh(c.substr(d, 8),f);if(0>g)return 0;d+=8}c=0;for(d=a.length;cc)return-1;for(var d=0,e=0,f=0,g=0;4>g;g++){f=ch(a.substr(g,1));if(0>f)return-1-g;d+=f<<6*g;f=ch(a.substr(4+g,1));if(0>f)return-5-g;e+=f<<6*g}d>bh&&(d=bh-d);e>bh&&(e=bh-e);b.push(b[c-2]+d);b.push(b[c-1]+e);return 0}function ch(a){var b=a.charCodeAt(0);return"A"<=a&&"Z">=a?b-65:"a"<=a&&"z">=a?26+b-97:"0"<=a&&"9">=a?52+b-48:"+"==a?62:"/"==a?63:-1}; '); _jsload2 && _jsload2('mapclick', 'var Xg=0,Yg=1,Zg=2,Jh,Kh=p;Ta=function(a){this.map=a;this.SE=this.Gw=p;this.Eo={};this.EY=8;this.bm=[];this.o_=4;this.BF="";this.Ok=this.ce=this.de=this.we=this.Qm=p;this.lp=this.Cm="";this.Ly=p;this.oi=0;this.oE=q;this.nN=p;this.gm=this.XK="";this.tj=new qc(E.qa+"spotmkrs.png",new N(18,18),{anchor:new N(9,9),imageOffset:new N(0,0),infoWindowOffset:new N(10,0)});this.cY()};Kh=Ta.prototype; Kh.cY=function(){var a=this;a.RU();a.bind();a.Wa=o;setTimeout(function(){a.Jn()},1E3);setInterval(function(){a.oE=q},300)};Kh.F4=ca(q);Kh.bind=function(){this.fV();this.gV();this.hV();this.iV()};Kh.iV=function(){var a=this,b=this.map;b.addEventListener("vectorchanged",function(c,d){d.isvector?a.close():b.K.lj==o&&a.open()})}; Kh.GY=function(a){var b=this.map;if(this.Wa)if(10>b.fa())this.dm();else if(this.gC(),a&&a.point)if(this.oi&&(this.nN=a.point),this.oE=o,1!=this.oi&&(this.ce&&this.ce.U(),this.de&&this.de.U(),this.Kd&&this.Kd.U()),a=b.IX(a.point,b.fa()),a.qy&&a.Iw&&a.ug)this.gm=a.ug+"_"+a.qy+"_"+a.Iw,this.Eo[a.ug+"_"+a.qy+"_"+a.Iw]?this.BF!=this.gm&&this.GG(this.gm):this.IZ({wE:a.ug,x:a.qy,y:a.Iw})}; Kh.GG=function(a){var b=this.map;if(b.pa()!=Ma&&b.pa()!=Sa)this.dm(),this.zk();else if(b=a.split("_"),b=b[0]+"_"+b[1]+"_"+b[2],this.Eo[b]){this.dm();this.SE=this.JJ(this.Eo[b][a]?this.Eo[b][a]:[],"MAP_CLICK_POI");this.BF=a;for(var a=-1,c=0,d=this.bm.length;cthis.map.fa())for(var b=0,c=a.spots.length;bb.fa())&&a&&(this.oi=0,this.Ok&&(b.R.ob&&b.R.ob.close(),this.ti=a,this.LZ(this.Ok)))};Kh.LZ=function(a){if(a){var b=this;dd.bb(function(c){b.YR(a,c)},{qt:"inf",uid:a,operate:"mapclick",clicktype:"tile"})}}; Kh.YR=function(a,b){var c=this,d=this.map;if(b&&b.content){var e=b.content,f=e.pano||0;P.vb(e.geo,o);if(!g)var g={};g.isFromMPC=o;var i=e.addr,g=e.street_id||"";if(1==e.poiType||3==e.poiType)i=P.unique(i.split(";")).join("; ");var k=e.tel;k&&(k=k.replace(/,/g,", "));c.Vq(e.cla);var l=M("div",{style:"font-size:12px;padding:5px 0;overflow:hidden;*zoom:1;"}),m=q;f&&(360>c.map.height?m=o:(f=[],f.push("
"), f.push("\'"+e.name+"\\u5916\\u666f\'"),f.push("
\\u8fdb\\u5165\\u5168\\u666f>>"),f.push("
"),l.innerHTML= f.join("")));i&&(f=M("p",{style:"padding:0;margin:0;line-height:18px;font-size:12px;color:#4d4d4d;"}),f.innerHTML="\\u5730\\u5740\\uff1a"+i,l.appendChild(f));k&&(i=M("p",{style:"padding:0;margin:0;line-height:18px;font-size:12px;color:#4d4d4d;"}),i.innerHTML="\\u7535\\u8bdd\\uff1a"+k,l.appendChild(i));e.tag&&(k=M("p",{style:"padding:0;margin:0;line-height:18px;font-size:12px;color:#4d4d4d;color:#7f7f7f;"}),k.innerHTML="\\u6807\\u7b7e\\uff1a"+e.tag,l.appendChild(k));var k="http://api.map.baidu.com/place/detail?uid="+ a+"&output=html&source=jsapi&operate=mapclick&clicktype=tile",i="
"+e.name+"",n=new tc(l,{width:322,enableSearchTool:o,title:i+("\\u8be6\\u60c5»")+ "
",enableParano:m});m&&(n.street_id=g);n.addEventListener("open",function(){var a=x.$("panoInfoBox");if(a){var b=e.street_id||"";Pb(function(){Ra(6006);c.Dq(b)},a,"pano_thumnail_img|panoInfoBoxTitleBg|panoInfoBoxTitleContent")}a=x.$("detailDiv");Pb(function(){Ra(6001)},a,"detailInfo")});n.addEventListener("close",function(){c.ce&&c.ce.U();c.de&&c.de.U();c.Kd&&c.Kd.U();d.R.ob.ab&&d.R.ob.ab.U();Jh=c.ti=p;n.removeEventListener("close",arguments.callee)});c.ti?(c.ti.Nb(n),Jh||(Jh=c.Ok+"|"+(c.Cm? c.Cm:c.lp))):c.we||(g=P.vb(e.geo,o).point,c.Cm&&(l=Lh[c.Cm],c.tj.Rt(new N(l.x,l.y)),l=Mh[l.W],c.tj.ye(new N(l.a,l.$a)),c.tj.qc(new N(l.a/2,l.$a/2))),c.we=new T(g,{icon:c.tj,zIndexFixed:o}),d.Ja(c.we),c.we.addEventListener("click",function(){Jh=c.Ok+"|"+(c.Cm?c.Cm:c.lp);c.kC(c.we)}),c.we.addEventListener("mouseout",function(){c.TM(c.we)}),c.we.Nb(n));c.ce&&c.ce.U();c.de&&c.de.U();c.Kd&&c.Kd.U()}}; Kh.Dq=function(a){var b=z.sg("pano","scape/")[0],c=this,d=(new Date).getTime(),e="Pano"+d;z[e]=function(a){var b=c.map.tm(),a=a.content[0];b.rc(a.poiinfo.PID);b.show();b.Mc({heading:a.poiinfo.Dir,pitch:a.poiinfo.Pitch})};d=(new Date).getTime();pa(b+("?qt=poi&udt=20131021&uid="+a+"&t="+d+"&fn=BMap."+e),q)}; Kh.JY=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 d=this,e=p,f=p,g=0;d.ti&&d.ti===d.we?(e=d.Qm,f=d.de,g=2):(e=d.we,f=d.ce,g=1);if(!b.R.ob||!(b.R.ob.Wa()==o&&Jh&&c[0].Xe.uid==Jh.split("|")[0])){if(c[0].Xe.type&&Lh[c[0].Xe.type]){var i=Lh[c[0].Xe.type];d.lp=c[0].Xe.type}else i=Lh.blank,d.lp="blank";var k=Mh[i.W];d.tj.ye(new N(k.a,k.$a));d.tj.qc(new N(k.a/2,k.$a/2));d.tj.Rt(new N(i.x,i.y));k=c[0].Xe.VL?c[0].Xe.VL:c[0].m;e&&e.map?(e.U(), e.ta(k),e.Ub(d.tj),e.show(),d.Ok=c[0].Xe.uid):(e=new T(k,{icon:d.tj,zIndexFixed:o,baseZIndex:3E6}),d.Ok=c[0].Xe.uid,b.Ja(e),1==g?d.we=e:d.Qm=e,e.addEventListener("click",function(){d.Cm=d.lp;Jh=d.Ok+"|"+d.lp;d.kC(e)}),e.addEventListener("mouseout",function(){d.TM(e)}));e.yi(o);i=[{backgroundColor:"#FFFFE1",borderColor:"#8C8C8C",color:"#4D4D4D"},{backgroundColor:"#F0F7FF",borderColor:"#7AA3CC",color:"#224B73"}];d.Ly=e;f&&f.map?(f.U(),c[0].Xe.name?(d.oi=1,f.ad(c[0].Xe.name),a=d.lx(k,1,{x:Math.abs(c[0].v[0])+ 6,y:-9}),f.ta(a),f.Ld(i[1]),f.show()):(d.oi=2,f.ad("\\u70b9\\u51fb\\u53ef\\u67e5\\u770b\\u8be6\\u60c5"),f.Ld(i[0]),d.qO(f))):c[0].Xe.name?(d.oi=1,a=d.lx(k,1,{x:Math.abs(c[0].v[0])+6,y:-9}),f=new uc(c[0].Xe.name,{position:a}),b.Ja(f),1==g?d.ce=f:d.de=f,f.Ld(i[1])):(d.oi=2,f=new uc("\\u70b9\\u51fb\\u53ef\\u67e5\\u770b\\u8be6\\u60c5",{position:d.lx(a.point,0)}),b.Ja(f),f.U(),1==g?d.ce=f:d.de=f,f.Ld(i[0]),d.qO(f))}}}}; Kh.qO=function(a){var b=this;b.qn=setInterval(function(){b.oE||setTimeout(function(){if(2==b.oi){var c=b.lx(b.nN,0);a.ta(c);a.show()}clearInterval(b.qn)},500)},200)};Kh.lx=function(a,b,c){var d=this.map,a=d.bc(a);if(c)var e=c;else 0==b?e={x:-1,y:24}:1==b&&(e={x:12,y:-9});try{if(0==b||1==b)return d.wb(new Q(a.x+e.x,a.y+e.y))}catch(f){}}; Kh.IY=function(){var a=this.map;if(!(10>a.fa())){this.oi=0;this.ce&&this.ce.U();this.de&&this.de.U();this.Kd&&this.Kd.U();this.qn&&clearInterval(this.qn);this.Ly=p;var b=this.Qm;if(b&&b.map&&(!a.R.ob||a.R.ob.Wa()==q||a.R.ob.ab!==b)){if(this.ti&&this.ti===b)return;b.U()}(b=this.we)&&b.map&&((!a.R.ob||a.R.ob.Wa()==q||a.R.ob.ab!==b)&&!(this.ti&&this.ti===b))&&b.U()}}; Kh.TM=function(a){var b=this.map;!(10>b.fa())&&a&&(this.ce&&this.ce.U(),this.de&&this.de.U(),this.Kd&&this.Kd.U(),this.ti!==a&&!(b.R.ob&&b.R.ob.Wa()==o)&&(this.Ok=""))}; Kh.fV=function(){var a=this,b=this.map;b.addEventListener("load",function(){a.Jn()});b.addEventListener("moveend",function(){a.Jn()});b.addEventListener("dragend",function(){a.Jn()});b.addEventListener("zoomend",function(){a.gC();a.dm();if(!b.R.ob||b.R.ob.Wa()!=o)a.we&&a.we.U(),a.Qm&&a.Qm.U(),a.ce&&a.ce.U(),a.de&&a.de.U(),a.Kd&&a.Kd.U(),a.oi=0,a.qn&&clearInterval(a.qn);a.Jn()});b.addEventListener("resize",function(){a.Jn()})}; Kh.Jn=function(){var a=this.map;this.Wa&&10>a.fa()&&(this.dm(),this.Gw||(this.Gw=this.JJ(Nh,"MAP_CLICK_CITY")))};Kh.IZ=function(a){var b=this.map,c=this.map.ba;if(a&&this.XK!=a.wE+"_"+a.x+"_"+a.y){this.XK=a.wE+"_"+a.x+"_"+a.y;var d=[];d.push(z.url.proto+z.url.domain.TILE_ONLINE_URLS[Math.abs(a.x+a.y)%3]+"/js/?qt=vQuest&styles=pl");d.push("&x="+a.x+"&y="+a.y+"&z="+b.Oa+"&v=056&fn=MPC_Mgr."+c+".getPoiData");pa(d.join(""))}}; Kh.getPoiData=function(a){var b=a.content[0],c=this.map;if(!(0b.uids.length)){for(var d={},a=q,e=[],f=0,g=b.uids.length;fthis.EY&&(d=this.bm.shift(),delete this.Eo[d],delete d);a&&this.GG(this.gm)}};Kh.dm=function(){var a=this.map;this.SE&&(a.cm("MAP_CLICK_POI"),this.SE=p,this.gm=this.BF="")};Kh.gC=function(){var a=this.map;this.Gw&&(a.cm("MAP_CLICK_CITY"),this.Gw=p)}; Kh.zk=function(){this.we&&this.we.U();this.Qm&&this.Qm.U();this.ce&&this.ce.U();this.de&&this.de.U();this.Kd&&this.Kd.U();this.qn&&clearInterval(this.qn)};Kh.Vq=function(a){for(var b=[],c=0,d=a.length;c