function Tooltip(a,b,c){this.marker_=a;this.text_=b;this.padding_=c}Tooltip.prototype=new GOverlay();Tooltip.prototype.initialize=function(a){var b=document.createElement("div");b.appendChild(document.createTextNode(this.text_));b.className='tooltip';b.style.position='absolute';b.style.visibility='hidden';a.getPane(G_MAP_FLOAT_PANE).appendChild(b);this.map_=a;this.div_=b};Tooltip.prototype.remove=function(){this.div_.parentNode.removeChild(this.div_)};Tooltip.prototype.copy=function(){return new Tooltip(this.marker_,this.text_,this.padding_)};Tooltip.prototype.redraw=function(a){if(!a){return}var b=this.map_.fromLatLngToDivPixel(this.marker_.getPoint());var c=this.marker_.getIcon().iconAnchor;var d=Math.round(b.x-this.div_.clientWidth/2);var e=b.y-c.y-this.div_.clientHeight-this.padding_;this.div_.style.top=e+20+'px';this.div_.style.left=d+115+'px'};Tooltip.prototype.show=function(){this.div_.style.visibility='visible'};Tooltip.prototype.hide=function(){this.div_.style.visibility='hidden'};
