/**/_jsload2&&_jsload2('panoramaflash', 'z.extend(Ra.prototype,{Fi:function(){for(var a=0;aa.pitch&&(a.pitch=-90),this.hd?this.$q?this.Yp.setPov=a:this.gd.set("pov",a):this.Ha=a)},Qc:function(a){a!=this.Kc&&(a>ze&&(a=ze),ag)return 1}return 0}, EQ:function(a){a=a||{};a.movie=a.url||"";a.altHtml=a.errorMessage||"";if(a.vars){var b=a.vars,c=[],e=s,f=s;for(e in b)f=b[e],c.push(e+"="+encodeURIComponent(f));a.flashvars=c.join("&")}a.minVer=a.ver;b=a.minVer;c=a.maxVer;if(b||c)if(e=this.uW(),!e||b&&0>this.kG(e,b)||c&&0");for(b=0;b\');e.push("");return e.join("")}});function mk(a,b){this.W=a;this.AQ=b;this.Dh={};this.Gy()}z.extend(mk.prototype,{Gy:function(){var a=this,b=a.W;b.addEventListener("add_overlay",function(b){b=b.overlay;b.xa(a.W,a.AQ);a.Dh[b.kd]=b});b.addEventListener("remove_overlay",function(b){b=b.overlay;b.remove();delete a.Dh[b.kd]})}});z.extend(De.prototype,{xa:function(a,b){this.W=a;this.ja()||this.ua(this.W.ja());this.Ea=b;this.jb()},jb:function(){var a=this.ja(),a=ec.Ud.qg(a),a={markerId:this.kd,catalog:"FD01",name:this.jk(),rank:this.Ao(),x:a.x,y:a.y,color:this.cm(),hoverColor:this.XK,backgroundHoverColor:this.ZI,borderColor:this.borderColor,borderHoverColor:this.cJ,backgroundColor:this.backgroundColor,padding:this.padding,fontSize:this.fontSize,borderWidth:this.borderWidth};if(this.qD||this.getImageData())a.imageUrl=this.qD, a.imageData=this.getImageData(),a.size=this.Hb(),a.image=this.Gw(),a.catalog="FD02",this.Hb()&&(a.width=this.Hb()[0],a.height=this.Hb()[1]);this.Ea.OM(a)},hide:function(){this.Sa=t;this.Ea&&this.Ea.ko(this.kd,"visible",t)},show:function(){this.Sa=p;this.Ea&&this.Ea.ko(this.kd,"visible",p)},isVisible:x("Sa"),Hf:function(a,b){this.Ea&&("position"==a&&(b=ec.Ud.qg(b),b={lng:b.x,lat:b.y}),this.Ea.ko(this.kd,a,b))},remove:function(){this.dispatchEvent(new Q("onremove"),{type:"remove",target:this});this.Ea.CJ([this.kd])}});var nk={none:"",transit:"FE0A",hotel:"FE02",catering:"FE01",movie:"FE06",indoor_scene:"FEFE"},ok={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"]}; z.extend(Ge.prototype,{xa:function(a,b){this.W=a;this.Ea=b;this.jb()},jb:function(){var a=this.ja(),a=ec.Ud.qg(a),b=this.XQ(),c=this.$C();this.Ea.OM({markerId:this.kd,catalog:b,name:this.Io(),rank:this.Ao(),x:a.x,y:a.y,heading:c.heading,pitch:c.pitch,pid:c.panoId,panoIId:c.panoIId})},XQ:function(){var a=this.Do().match(/.*\\/(.*)/)[1],b;for(b in ok)if(ok[b][1]==a)return nk[b]},hide:function(){this.Sa=t;this.Ea.ko(this.kd,"visible",t)},show:function(){this.Sa=p;this.Ea.ko(this.kd,"visible",p)},isVisible:x("Sa"), Hf:function(a,b){"position"==a&&(b=ec.Ud.qg(b),b={lng:b.x,lat:b.y});this.Ea.ko(this.kd,a,b)},remove:function(){this.dispatchEvent(new Q("onremove"),{type:"remove",target:this});this.Ea.CJ([this.kd])}});kk.En=new ec(s,{hf:"api"});function kk(a){z.lang.Ga.call(this);a&&(this.W=a,this.Dg=s,this.xG=a.P.clientWidth,this.wG=a.P.clientHeight,new mk(a,this))}kk.OO=D.Yh("pano");z.lang.wa(kk,z.lang.Ga,"PanoramaFlashWraper"); z.extend(kk.prototype,{OM:function(a){this.Pr("addMarkers",[a])},CJ:function(a){this.Pr("removeMarkers",[a])},ko:function(a,b,c){var e={};e.markerId=a;e[b]=c;this.set("markerProperty",e)},get:function(a){var b=s;"position"==a?(b=this.Dg.get("mercatorPosition"),b=ec.Ud.oj(new R(b.mercatorX,b.mercatorY))):b=this.Dg.get(a);return b},set:function(a,b){var c=this;"position"==a?kk.En.dj(b,function(a){a&&a.id?c.W.Cc(a.id):c.dispatchEvent(new Q("pano_error"))}):"id"==a?c.Dg==s?c.CR(c.W):c.Dg.set&&c.Dg.set("panoOptions", {id:b.id,panoType:b.type,width:c.xG,height:c.wG}):c.Dg&&c.Dg.set&&c.Dg.set(a,b)},Pr:function(a,b){return this.Dg.doAction(a,b)},B2:x("Lq"),CR:function(a){var b=this,c=a.m.swfSrc.match(/.*\\//)[0]+"BDStreetScape.swf";b.Dg=p;kk.En.Ow(function(e){var f="",g="";"inter"===a.Ie?g=a.bb:f=a.bb;f={pid:f,iid:g,panoType:a.Ie,heading:a.Ha.heading,pitch:a.Ha.pitch,width:b.xG,height:b.wG,panoUrl:c,panoTileUrl:kk.OO.join("|"),domain:ec.du,jsInterfaceNamespace:"BMap.PanoramaFlashInterface",swfIndex:b.ea};g=a.m.swfSrc; e&&(e.panoUdt&&e.panoUdt.version&&f)&&(f.udtVersion=e.panoUdt.version);e&&(e.panoSwfAPI&&e.panoSwfAPI.version&&f)&&(f.panoUrl=f.panoUrl+"?version="+e.panoSwfAPI.version,g=g+"?version="+e.panoSwfAPI.version);b.Dg=b.WP(a.P,f,g)})},WP:function(a,b,c){var e=new lk,f="PanoramaFlash"+this.ea,g=s,g=O("div");g.style.position="absolute";g.id="PanoramaFlashWraper"+this.ea;g.style.top="0";g.style.left="0";g.style.height="100%";g.style.width="100%";g.style.zIndex=1200;this.Lq=g;a.appendChild(g);e.create({id:f, 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},g);return e.HK(f)}});var pk=kk.prototype;U(pk,{get:pk.get,set:pk.set,doAction:pk.Pr}); ');