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}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}};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(){this.div_.style.display=""};ELabel.prototype.hide=function(){this.div_.style.display="none"};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}}};