Object.extend(VirtualEarthMap.prototype,{mi:0,ct:[],eU:null,showHotspotDialog:function(aP,dz){var lC=function(aw){if(aP==aw.id){return true;}return false;};var fW=this.ct.find(lC);if(fW!=null&&this.eU!=null){var bx=this.eU.GetShapeByID(fW.internalId);if(bx!=null){this.ve_showInfoBox(bx,dz);}}},addHotspot:function(iL,aP,kf,bf,dQ,ef,aS,aW,aG,fL,gv,fo,fv){this.cI(this.uj.bind(this,iL,aP,kf,bf,dQ,ef,"",aW,aG,fL,gv,fo,fv));},zo:false,uj:function(iL,aP,kf,bf,dQ,ef,aS,aW,aG,fL,gv,fo,fv){if(this.eU==null){try{this.eU=new VEShapeLayer();this.ak.AddShapeLayer(this.eU,false);}catch(e){}}var gP=null;try{var gM=(typeof bf=="undefined"||bf!=null)?bf:VirtualEarthMap.DEFAULT_MAP_MARKER;var aK=new VELatLong(dQ,ef);var pin=new VEShape(VEShapeType.Pushpin,aK);pin.SetCustomIcon(bf);pin.SetTitle(aS);pin.SetDescription(aW);try{this.eU.AddShape(pin);gP=pin.GetID();}catch(e){}}catch(e){}this.ct.push({id:aP,internalId:gP,callback:aG,lat:dQ,lon:ef,title:aS,description:aW});},clearHotspots:function(iL,fF){this.cI(this.tY.bind(this,iL,fF));},tY:function(iL,fF){var i,ao=fF.length;for(i=0;i<ao&&this.eU!=null;i++){var gP=null;var sR=function(aw){if(fF[i]==aw.id){gP=aw.internalId;}return fF[i]!=aw.id;};this.ct=this.ct.select(sR);var bx=this.eU.GetShapeByID(gP);if(bx!=null){this.eU.DeleteShape(bx);}}this.eI=null;this.mi=this.ct.length;}});var __vemapHotspotsLoaded=true;