/**/_jsload2&&_jsload2('menu', 'A.object.extend(Pc.prototype,{za:function(a,b){if(this.R)return t;this.P=a;this.Jl=b||q;this.Ha();var c=this,e=a.M.Ac;b&&b.K.mf&&(e="pointer");this.R.style.cursor=e;this.Gd&&(this.Gd.style.cursor=e);A.V(document,"mousedown",function(){c.R&&c.aa()});A.V(this.R,"click",function(a){c.aa();na(a)});e=this.m.cb;e||(e=a.cb);this.Jl?this.Jl.addEventListener("rightclick",function(a){c.R&&c.fJ(a)}):a.addEventListener("rightclickex",function(a){c.R&&(!a.ub&&!a.Fb)&&c.fJ(a)});for(var e=0,f=this.Da.length;e"));this.$r()},ob:function(){this.P&&(this.za(this.P,this.Jl),this.Ph&&(this.Ph=t,this.show()))},remove:function(){this.R&&(this.R.parentNode.removeChild(this.R),this.R=q);this.Gd&&(this.Gd.parentNode.removeChild(this.Gd),this.Gd=q);for(var a=0,b=this.Da.length;a"); this.R.className="BMap_contextMenu";var a=this.R.style;a.font="12px "+I.fontFamily;9>A.ga.oa?this.Gd=Fb(this.P.cb,"
"):a.gV=a.vP=a.WebkitBoxShadow="1px 2px 6px #666";return this.R},es:function(a){if(a&&!("menuitem"!=a.Nb||""==a.ih||0>=a.fj)){for(var b=0,c=this.Da.length;b"),this.$r())},$E:function(a){if(this.Ke[a]){this.Ke[a].U&&this.Ke[a].U.parentNode&&this.Ke[a].U.parentNode.removeChild(this.Ke[a].U);for(var b=0,c=this.Da.length;ba)&&this.Da[b].Uj--;this.Ke.splice(a,1);this.$r()}},va:function(a,b){this.R.style.left= a+"px";this.R.style.top=b+"px";this.Gd&&(this.Gd.style.left=a+1+"px",this.Gd.style.top=b+2+"px")},show:function(){if(this.Ph!=p&&0!=this.Pf.length){this.Ph=p;this.R&&(this.R.style.visibility="visible");this.Gd&&(this.Gd.style.visibility="visible");var a=new P("onopen");a.point=this.Vw;a.pixel=this.ss;this.dispatchEvent(a)}},aa:function(){if(this.Ph!=t){this.Ph=t;this.R&&(this.R.style.visibility="hidden");this.Gd&&(this.Gd.style.visibility="hidden");var a=new P("onclose");a.point=this.Vw;a.pixel=this.ss; this.dispatchEvent(a)}},v_:function(a){if(a&&(this.m.cursor=a,this.R&&(this.R.style.cursor=this.m.cursor),this.Gd))this.Gd.style.cursor=this.m.cursor},$r:function(){this.R&&this.Gd&&(this.Gd.style.width=this.R.offsetWidth+"px",this.Gd.style.height=this.R.offsetHeight+"px")},fJ:function(a){if(0!=this.Pf.length){this.ss=a.ab;this.Vw=this.P.pg(this.ss);var b=this.cd().offsetHeight,c=this.cd().offsetWidth,e=a.ab.x,f=a.ab.y;a.ab.x+c>this.P.width&&(e=a.ab.x-c);a.ab.y+b>this.P.height&&(f=a.ab.y-b);this.va(e, f);this.show()}}});V(Hg,{addItem:Hg.es,removeItem:Hg.removeItem,addSeparator:Hg.TB,removeSeparator:Hg.$E});A.object.extend(Sc.prototype,{za:function(a,b){if(this.R)return t;this.P=a;this.Kh=b;b.cd()&&(this.Ha(),this.ha(),this.Nh||(this.Nh=p,this.disable()));return p},remove:function(){this.R&&(this.R.parentNode.removeChild(this.R),this.R=q);this.P=this.Kh=q},ob:function(){this.Kh&&this.P&&this.za(this.P,this.Kh)},Ha:function(){var a=this.m.Km?"
"+this.ih+"":""+this.ih+"";this.R=Fb(this.Kh.cd(),a);this.m.Km?(this.yv=this.R.firstChild,this.Vr=this.R.lastChild):this.Vr=this.R;a=this.R.style;a.padding="2px 6px";a.margin="0 2px";a.fontSize="14px";a.MozUserSelect="none";a.lineHeight="17px";a.width=this.m.width+"px";this.Nh?(a.color="#000",a.cursor="pointer"):(a.color="#aaa",a.cursor= this.P.M.Ac);return this.R},ha:function(){var a=this;A.V(this.R,"click",function(b){a.Nh?a.vz&&a.vz.call&&a.vz.call(a,a.Kh.Vw,a.Kh.ss,a.Kh.Jl):na(b)});A.V(this.R,"mousedown",function(a){na(a)});A.V(this.R,"mouseover",function(){a.Nh&&(a.R.style.color="#6688cc")});A.V(this.R,"mouseout",function(){a.Nh&&(a.R.style.color="#000")})},fu:function(a){a&&(this.ih=a+"",this.Vr&&(this.Vr.innerHTML=""+this.ih+""))},Wb:function(a){a&&(this.m.Km=a,this.yv?this.yv.style.background="url("+a+")":(this.R.innerHTML= "
"+this.ih+"",this.yv=this.R.firstChild,this.Vr=this.R.lastChild))},enable:function(){this.Nh=p;this.R&&(this.R.style.color="#000",this.R.style.cursor="pointer")},disable:function(){this.Nh=t;this.R&&(this.R.style.color= "#aaa",this.R.style.cursor=this.P.M.Ac)}});V(Ig,{setIcon:Ig.Wb,setText:Ig.fu,enable:Ig.enable,disable:Ig.disable}); ');