/**/_jsload2&&_jsload2('panoramaflash', 'x.extend(Pa.prototype,{Vi:function(){for(var a=0;aa.pitch&&(a.pitch=-90),this.hd?this.Tr?this.Nq.setPov=a:this.gd.set("pov",a):this.Ea=a)},Oc:function(a){a!=this.Kc&&(a>Me&&(a=Me),af)return 1}return 0}, aS: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.AX(),!d||b&&0>this.uH(d,b)||c&&0");for(b=0;b\');d.push("");return d.join("")}});function zk(a,b){this.P=a;this.YR=b;this.Vh={};this.Qz()}x.extend(zk.prototype,{Qz:function(){var a=this,b=a.P;b.addEventListener("add_overlay",function(b){b=b.overlay;b.ra(a.P,a.YR);a.Vh[b.kd]=b});b.addEventListener("remove_overlay",function(b){b=b.overlay;b.remove();delete a.Vh[b.kd]})}});x.extend(Qe.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=Yc.Xd.jy(a),a={markerId:this.kd,catalog:"FD01",name:this.Bk(),rank:this.dp(),x:a.x,y:a.y,color:this.Km(),hoverColor:this.lM,backgroundHoverColor:this.oK,borderColor:this.borderColor,borderHoverColor:this.sK,backgroundColor:this.backgroundColor,padding:this.padding,fontSize:this.fontSize,borderWidth:this.borderWidth};if(this.xE||this.getImageData())a.imageUrl=this.xE, a.imageData=this.getImageData(),a.size=this.vb(),a.image=this.Dx(),a.catalog="FD02",this.vb()&&(a.width=this.vb()[0],a.height=this.vb()[1]);this.Ba.$N(a)},hide:function(){this.Pa=q;this.Ba&&this.Ba.Qo(this.kd,"visible",q)},show:function(){this.Pa=o;this.Ba&&this.Ba.Qo(this.kd,"visible",o)},isVisible:v("Pa"),Mf:function(a,b){this.Ba&&("position"==a&&(b=Yc.Xd.zl(b),b={lng:b.x,lat:b.y}),this.Ba.Qo(this.kd,a,b))},remove:function(){this.dispatchEvent(new N("onremove"),{type:"remove",target:this});this.Ba.WK([this.kd])}});var Ak={none:"",transit:"FE0A",hotel:"FE02",catering:"FE01",movie:"FE06",indoor_scene:"FEFE"},Bk={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(Te.prototype,{ra:function(a,b){this.P=a;this.Ba=b;this.Ab()},Ab:function(){var a=this.ia(),a=Yc.Xd.zl(a),b=this.tS(),c=this.iE();this.Ba.$N({markerId:this.kd,catalog:b,name:this.np(),rank:this.dp(),x:a.x,y:a.y,heading:c.heading,pitch:c.pitch,pid:c.panoId,panoIId:c.panoIId})},tS:function(){var a=this.gp().match(/.*\\/(.*)/)[1],b;for(b in Bk)if(Bk[b][1]==a)return Ak[b]},hide:function(){this.Pa=q;this.Ba.Qo(this.kd,"visible",q)},show:function(){this.Pa=o;this.Ba.Qo(this.kd,"visible",o)},isVisible:v("Pa"), Mf:function(a,b){"position"==a&&(b=Yc.Xd.zl(b),b={lng:b.x,lat:b.y});this.Ba.Qo(this.kd,a,b)},remove:function(){this.dispatchEvent(new N("onremove"),{type:"remove",target:this});this.Ba.WK([this.kd])}});xk.qo=new Yc(p,{of:"api"});function xk(a){x.lang.Da.call(this);a&&(this.P=a,this.Ng=p,this.IH=a.C.clientWidth,this.HH=a.C.clientHeight,new zk(a,this))}xk.bQ=B.Sf("pano");x.lang.ua(xk,x.lang.Da,"PanoramaFlashWraper"); x.extend(xk.prototype,{$N:function(a){this.Js("addMarkers",[a])},WK:function(a){this.Js("removeMarkers",[a])},Qo: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.Ng.get("mercatorPosition"),b=Yc.Xd.Ej(new R(b.mercatorX,b.mercatorY))):b=this.Ng.get(a);return b},set:function(a,b){var c=this;"position"==a?xk.qo.tj(b,function(a){a&&a.id?c.P.rc(a.id):c.dispatchEvent(new N("pano_error"))}):"id"==a?c.Ng==p?c.aT(c.P):c.Ng.set&&c.Ng.set("panoOptions", {id:b.id,panoType:b.type,width:c.IH,height:c.HH}):c.Ng&&c.Ng.set&&c.Ng.set(a,b)},Js:function(a,b){return this.Ng.doAction(a,b)},Z2:v("Er"),aT:function(a){var b=this,c=a.k.swfSrc.match(/.*\\//)[0]+"BDStreetScape.swf";b.Ng=o;xk.qo.Ox(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.IH,height:b.HH,panoUrl:c,panoTileUrl:xk.bQ.join("|"),domain:Yc.Ru,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.Ng=b.qR(a.C,e,f)})},qR:function(a,b,c){var d=new yk,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.Er=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.$L(e)}});var Ck=xk.prototype;U(Ck,{get:Ck.get,set:Ck.set,doAction:Ck.Js}); ');