function ELabel(a,e,f,c,d,b){this.point=a;this.html=e;this.classname=f||"";this.pixelOffset=c||new GSize(0,0);if(d){if(d<0){d=0}if(d>100){d=100}}this.percentOpacity=d;this.overlap=b||false;this.hidden=false}ELabel.prototype=new GOverlay();ELabel.prototype.initialize=function(a){var c=document.createElement("div");c.style.position="absolute";c.innerHTML='<div class="'+this.classname+'">'+this.html+"</div>";a.getPane(G_MAP_FLOAT_SHADOW_PANE).appendChild(c);this.map_=a;this.div_=c;if(this.percentOpacity){if(typeof(c.style.filter)=="string"){c.style.filter="alpha(opacity:"+this.percentOpacity+")"}if(typeof(c.style.KHTMLOpacity)=="string"){c.style.KHTMLOpacity=this.percentOpacity/100}if(typeof(c.style.MozOpacity)=="string"){c.style.MozOpacity=this.percentOpacity/100}if(typeof(c.style.opacity)=="string"){c.style.opacity=this.percentOpacity/100}}if(this.overlap){var b=GOverlay.getZIndex(this.point.lat());this.div_.style.zIndex=b}if(this.hidden){this.hide()}};ELabel.prototype.remove=function(){this.div_.parentNode.removeChild(this.div_)};ELabel.prototype.copy=function(){return new ELabel(this.point,this.html,this.classname,this.pixelOffset,this.percentOpacity,this.overlap)};ELabel.prototype.redraw=function(b){var c=this.map_.fromLatLngToDivPixel(this.point);var a=parseInt(this.div_.clientHeight);this.div_.style.left=(c.x+this.pixelOffset.width)+"px";this.div_.style.top=(c.y+this.pixelOffset.height-a)+"px"};ELabel.prototype.show=function(){if(this.div_){this.div_.style.display="";this.redraw()}this.hidden=false};ELabel.prototype.hide=function(){if(this.div_){this.div_.style.display="none"}this.hidden=true};ELabel.prototype.isHidden=function(){return this.hidden};ELabel.prototype.supportsHide=function(){return true};ELabel.prototype.setContents=function(a){this.html=a;this.div_.innerHTML='<div class="'+this.classname+'">'+this.html+"</div>";this.redraw(true)};ELabel.prototype.setPoint=function(a){this.point=a;if(this.overlap){var b=GOverlay.getZIndex(this.point.lat());this.div_.style.zIndex=b}this.redraw(true)};ELabel.prototype.setOpacity=function(a){if(a){if(a<0){a=0}if(a>100){a=100}}this.percentOpacity=a;if(this.percentOpacity){if(typeof(this.div_.style.filter)=="string"){this.div_.style.filter="alpha(opacity:"+this.percentOpacity+")"}if(typeof(this.div_.style.KHTMLOpacity)=="string"){this.div_.style.KHTMLOpacity=this.percentOpacity/100}if(typeof(this.div_.style.MozOpacity)=="string"){this.div_.style.MozOpacity=this.percentOpacity/100}if(typeof(this.div_.style.opacity)=="string"){this.div_.style.opacity=this.percentOpacity/100}}};ELabel.prototype.getPoint=function(){return this.point};ELabel.prototype.U=function(){return this.point};ELabel.prototype.V=function(){return this.point};ELabel.prototype.W=function(){return this.point};ELabel.prototype.X=function(){return this.point};ELabel.prototype.Y=function(){return this.point};ELabel.prototype.Z=function(){return this.point};
