/**/_jsload2 && _jsload2('panoramaflash', 'x.extend(Qa.prototype,{Vi:function(){for(var a=0;aa.pitch&&(a.pitch=-90),this.hd?this.gs?this.br.setPov=a:this.gd.set("pov",a):this.Ea=a)},Oc:function(a){a!=this.Kc&&(a>Qe&&(a=Qe),af)return 1}return 0}, tS:function(a){a=a||{};a.movie=a.url||"";a.altHtml=a.errorMessage||"";if(a.vars){var b=a.vars,c=[],d=p,e=p;for(d in b)e=b[d],c.push(d+"="+encodeURIComponent(e));a.flashvars=c.join("&")}a.minVer=a.ver;b=a.minVer;c=a.maxVer;if(b||c)if(d=this.VX(),!d||b&&0>this.JH(d,b)||c&&0");for(b=0;b\');d.push("");return d.join("")}});function Fk(a,b){this.P=a;this.qS=b;this.Vh={};this.cA()}x.extend(Fk.prototype,{cA:function(){var a=this,b=a.P;b.addEventListener("add_overlay",function(b){b=b.overlay;b.ra(a.P,a.qS);a.Vh[b.kd]=b});b.addEventListener("remove_overlay",function(b){b=b.overlay;b.remove();delete a.Vh[b.kd]})}});x.extend(Ue.prototype,{ra:function(a,b){this.P=a;this.ia()||this.ta(this.P.ia());this.Ba=b;this.Ab()},Ab:function(){var a=this.ia(),a=bd.Xd.xy(a),a={markerId:this.kd,catalog:"FD01",name:this.Dk(),rank:this.pp(),x:a.x,y:a.y,color:this.Qm(),hoverColor:this.AM,backgroundHoverColor:this.DK,borderColor:this.borderColor,borderHoverColor:this.HK,backgroundColor:this.backgroundColor,padding:this.padding,fontSize:this.fontSize,borderWidth:this.borderWidth};if(this.KE||this.getImageData())a.imageUrl=this.KE, a.imageData=this.getImageData(),a.size=this.vb(),a.image=this.Px(),a.catalog="FD02",this.vb()&&(a.width=this.vb()[0],a.height=this.vb()[1]);this.Ba.pO(a)},hide:function(){this.Oa=q;this.Ba&&this.Ba.bp(this.kd,"visible",q)},show:function(){this.Oa=o;this.Ba&&this.Ba.bp(this.kd,"visible",o)},isVisible:v("Oa"),Mf:function(a,b){this.Ba&&("position"==a&&(b=bd.Xd.Fl(b),b={lng:b.x,lat:b.y}),this.Ba.bp(this.kd,a,b))},remove:function(){this.dispatchEvent(new N("onremove"),{type:"remove",target:this});this.Ba.kL([this.kd])}});var Gk={none:"",transit:"FE0A",hotel:"FE02",catering:"FE01",movie:"FE06",indoor_scene:"FEFE"},Hk={none:["-1",""],transit:["0","m_transit.png"],hotel:["1","m_hotel.png"],catering:["2","m_catering.png"],movie:["3","m_movie.png"],transit:["4","m_transit.png"],indoor_scene:["5","m_indoor_scene.png"]}; x.extend(Xe.prototype,{ra:function(a,b){this.P=a;this.Ba=b;this.Ab()},Ab:function(){var a=this.ia(),a=bd.Xd.Fl(a),b=this.MS(),c=this.vE();this.Ba.pO({markerId:this.kd,catalog:b,name:this.Ap(),rank:this.pp(),x:a.x,y:a.y,heading:c.heading,pitch:c.pitch,pid:c.panoId,panoIId:c.panoIId})},MS:function(){var a=this.sp().match(/.*\\/(.*)/)[1],b;for(b in Hk)if(Hk[b][1]==a)return Gk[b]},hide:function(){this.Oa=q;this.Ba.bp(this.kd,"visible",q)},show:function(){this.Oa=o;this.Ba.bp(this.kd,"visible",o)},isVisible:v("Oa"), Mf:function(a,b){"position"==a&&(b=bd.Xd.Fl(b),b={lng:b.x,lat:b.y});this.Ba.bp(this.kd,a,b)},remove:function(){this.dispatchEvent(new N("onremove"),{type:"remove",target:this});this.Ba.kL([this.kd])}});Dk.Ao=new bd(p,{of:"api"});function Dk(a){x.lang.Da.call(this);a&&(this.P=a,this.Og=p,this.XH=a.C.clientWidth,this.WH=a.C.clientHeight,new Fk(a,this))}Dk.uQ=B.Sf("pano");x.lang.ua(Dk,x.lang.Da,"PanoramaFlashWraper"); x.extend(Dk.prototype,{pO:function(a){this.Vs("addMarkers",[a])},kL:function(a){this.Vs("removeMarkers",[a])},bp:function(a,b,c){var d={};d.markerId=a;d[b]=c;this.set("markerProperty",d)},get:function(a){var b=p;"position"==a?(b=this.Og.get("mercatorPosition"),b=bd.Xd.Ej(new R(b.mercatorX,b.mercatorY))):b=this.Og.get(a);return b},set:function(a,b){var c=this;"position"==a?Dk.Ao.tj(b,function(a){a&&a.id?c.P.rc(a.id):c.dispatchEvent(new N("pano_error"))}):"id"==a?c.Og==p?c.tT(c.P):c.Og.set&&c.Og.set("panoOptions", {id:b.id,panoType:b.type,width:c.XH,height:c.WH}):c.Og&&c.Og.set&&c.Og.set(a,b)},Vs:function(a,b){return this.Og.doAction(a,b)},F3:v("Sr"),tT:function(a){var b=this,c=a.k.swfSrc.match(/.*\\//)[0]+"BDStreetScape.swf";b.Og=o;Dk.Ao.$x(function(d){var e="",f="";"inter"===a.Le?f=a.Ya:e=a.Ya;e={pid:e,iid:f,panoType:a.Le,heading:a.Ea.heading,pitch:a.Ea.pitch,width:b.XH,height:b.WH,panoUrl:c,panoTileUrl:Dk.uQ.join("|"),domain:bd.ev,jsInterfaceNamespace:"BMap.PanoramaFlashInterface",swfIndex:b.ba};f=a.k.swfSrc; d&&(d.panoUdt&&d.panoUdt.version&&e)&&(e.udtVersion=d.panoUdt.version);d&&(d.panoSwfAPI&&d.panoSwfAPI.version&&e)&&(e.panoUrl=e.panoUrl+"?version="+d.panoSwfAPI.version,f=f+"?version="+d.panoSwfAPI.version);b.Og=b.JR(a.C,e,f)})},JR:function(a,b,c){var d=new Ek,e="PanoramaFlash"+this.ba,f=p,f=H("div");f.style.position="absolute";f.id="PanoramaFlashWraper"+this.ba;f.style.top="0";f.style.left="0";f.style.height="100%";f.style.width="100%";f.style.zIndex=1200;this.Sr=f;a.appendChild(f);d.create({id:e, width:"100%",height:"100%",allowscriptaccess:"always",scale:"showall",wmode:"opaque",quality:"best",url:c,ver:"10.2",errorMessage:"\\u60a8\\u672a\\u5b89\\u88c5Flash Player\\u64ad\\u653e\\u5668\\u6216\\u8005\\u7248\\u672c\\u8fc7\\u4f4e",vars:b},f);return d.oM(e)}});var Ik=Dk.prototype;U(Ik,{get:Ik.get,set:Ik.set,doAction:Ik.Vs}); ');