function Tooltip(a,c,b){this.marker_=a;this.text_=c;this.padding_=b}Tooltip.prototype=new GOverlay();Tooltip.prototype.initialize=function(a){var b=document.createElement("div");b.innerHTML=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(d){if(!d){return}var b=this.map_.fromLatLngToDivPixel(this.marker_.getPoint());var a=this.marker_.getIcon().iconAnchor;var e=Math.round(b.x-this.div_.clientWidth/2);var c=b.y-a.y-this.div_.clientHeight-this.padding_+5;this.div_.style.top=c+"px";this.div_.style.left=e+"px"};Tooltip.prototype.show=function(){this.div_.style.visibility="visible"};Tooltip.prototype.hide=function(){this.div_.style.visibility="hidden"};
