MapInfoBubble=function(a){this.iconOffLeft=20;this.iconOffTop=25;this.offLeft=0;this.offTop=0;if(a){this.offLeft=getAbsolutePos("Left",a);this.offTop=getAbsolutePos("Top",a)}this.element=document.createElement("div");this.element.style.position="absolute";this.element.style.display="none";this.element.style.background="#fff";this.element.style.border="1px solid #666";document.body.appendChild(this.element)};MapInfoBubble.prototype={show:function(a,f){if(!this.map){alert("GMap is not set to MapInfoBubble")}var e=this.map.fromLatLngToDivPixel(a);var d=e.x;var c=e.y;var b=this.map.getPane(G_MAP_MAP_PANE).parentNode;d+=parseInt(b.style.left)+this.map.getContainer().offsetLeft;c+=parseInt(b.style.top)+this.map.getContainer().offsetTop;this.element.style.top=this.offTop+c-this.iconOffTop+"px";this.element.style.left=this.offLeft+d+this.iconOffLeft+"px";this.element.innerHTML=f;this.element.style.display=""},hide:function(){this.element.style.display="none"},setGMap:function(c,a){window.GEvent=a.GEvent;window.G_MAP_MAP_PANE=a.G_MAP_MAP_PANE;this.map=c;var b=this;GEvent.addListener(c,"dragstart",function(){b.hide()});GEvent.addListener(c,"moveend",function(){b.hide()})}};