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;};