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