function ELabel(b,a,d,e,c,f){this.point=b;this.html=a;this.classname=d||"";this.pixelOffset=e||new GSize(0,0);if(c){if(c<0){c=0}if(c>100){c=100}}this.percentOpacity=c;this.overlap=f||false;this.hidden=false};ELabel.prototype=new google.maps.Overlay();ELabel.prototype.initialize=function(b){var a=document.createElement("div");a.style.position="absolute";a.innerHTML='<div class="'+this.classname+'">'+this.html+'</div>';b.getPane(G_MAP_FLOAT_SHADOW_PANE).appendChild(a);this.map_=b;this.div_=a;if(this.percentOpacity){if(typeof(a.style.filter)=='string'){a.style.filter='alpha(opacity:'+this.percentOpacity+')'}if(typeof(a.style.KHTMLOpacity)=='string'){a.style.KHTMLOpacity=this.percentOpacity/100}if(typeof(a.style.MozOpacity)=='string'){a.style.MozOpacity=this.percentOpacity/100}if(typeof(a.style.opacity)=='string'){a.style.opacity=this.percentOpacity/100}}if(this.overlap){var d=google.maps.Overlay.getZIndex(this.point.lat());this.div_.style.zIndex=d}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 a=this.map_.fromLatLngToDivPixel(this.point);var d=parseInt(this.div_.clientHeight);this.div_.style.left=(a.x+this.pixelOffset.width)+"px";this.div_.style.top=(a.y+this.pixelOffset.height-d)+"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(b){this.html=b;this.div_.innerHTML='<div class="'+this.classname+'">'+this.html+'</div>';this.redraw(true)};ELabel.prototype.setPoint=function(b){this.point=b;if(this.overlap){var a=google.maps.Overlay.getZIndex(this.point.lat());this.div_.style.zIndex=a}this.redraw(true)};ELabel.prototype.setOpacity=function(b){if(b){if(b<0){b=0}if(b>100){b=100}}this.percentOpacity=b;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};
