function e903W(g905P,EAU,maxWidth){this.l3E(g905P);this.EAU=EAU;this.maxWidth=maxWidth;this.H7A=0;this.WWD=3;this.U47=95;};e903W.prototype=new GOverlay();e903W.prototype.initialize=function(map){var k0D=document.createElement("div");k0D.style.position="absolute";k0D.style.width="auto";k0D.style.height="auto";k0D.style.display="block";k0D.style.margin="0";k0D.style.padding="0";k0D.innerHTML='<div class="'+this.EAU+'">'+this.html+'</div>';map.getPane(G_MAP_FLOAT_SHADOW_PANE).appendChild(k0D);this.kd3=map;this.vr$2=k0D;if(this.U47){if(typeof(k0D.style.filter)=='string'){k0D.style.filter='alpha(opacity:'+this.U47+')';}if(typeof(k0D.style.KHTMLOpacity)=='string'){k0D.style.KHTMLOpacity=this.U47/100;}if(typeof(k0D.style.MozOpacity)=='string'){k0D.style.MozOpacity=this.U47/100;}if(typeof(k0D.style.opacity)=='string'){k0D.style.opacity=this.U47/100;}}};e903W.prototype.remove=function(){this.vr$2.removeChild(this.vr$2.firstChild);this.vr$2.parentNode.removeChild(this.vr$2);};e903W.prototype.copy=function(){return new e903W(this.g905P,this.EAU);};e903W.prototype.redraw=function(N92){var p=this.kd3.fromLatLngToDivPixel(this.point);var s328=parseInt(this.vr$2.clientHeight);var mn0=map.getCurrentMapType().getProjection().fromLatLngToPixel(this.point,map.getZoom());var y320=map.getCurrentMapType().getProjection().fromLatLngToPixel(map.getBounds().getSouthWest(),map.getZoom());var b1i=map.getCurrentMapType().getProjection().fromLatLngToPixel(map.getBounds().getNorthEast(),map.getZoom());var ALx0=y320.x;var r9r=b1i.x;var Xkqm7=b1i.y;var J0K=y320.y;var $o7h=Math.pow(2,map.getZoom()+8);var A1j9D=map.getSize().width;var N127y=map.getSize().height;u3LJc=mn0.x-ALx0;if(u3LJc<0){u3LJc=mn0.x+($o7h-ALx0);}sIKR_=mn0.y-Xkqm7;if(u3LJc>((A1j9D/2)+this.H7A)){lS_9=u3LJc-(2*this.WWD)-this.icon.iconSize.width-this.icon.iconAnchor.x;lS_9=Math.min(lS_9,this.maxWidth);d4_=p.x-lS_9-(this.icon.iconSize.width+(2*this.WWD));if(this.H7A&&(d4_<(u3LJc+this.H7A))){this.vr$2.firstChild.style.width=lS_9-this.H7A+"px";this.vr$2.style.left=d4_+this.H7A+"px";}else{this.vr$2.firstChild.style.width=lS_9+"px";this.vr$2.style.left=d4_+"px";}}else{lS_9=(A1j9D-u3LJc)-(2*this.WWD)-this.icon.iconSize.width-this.icon.iconAnchor.x;lS_9=Math.min(lS_9,this.maxWidth);this.vr$2.firstChild.style.width=lS_9+"px";this.vr$2.style.display="block";this.vr$2.style.left=p.x+this.WWD+(this.icon.iconSize.width-this.icon.iconAnchor.x)+"px";}if(sIKR_>(N127y/2)){s5L3=p.y-this.vr$2.firstChild.offsetHeight;GG8D=sIKR_-(N127y-35);if(GG8D>0){this.vr$2.style.top=s5L3-GG8D+"px";}else{this.vr$2.style.top=s5L3+"px";}}else{this.vr$2.style.top=p.y-this.icon.iconSize.height+"px";}};e903W.prototype.l3E=function(OnW){this.g905P=OnW;this.point=OnW.getPoint();this.html=OnW.o;this.icon=OnW.getIcon();};e903W.prototype.setZoomOffset=function(){this.H7A=30;};var n;function createLinkMarker(point,icon,o,z,maxWidth,$7G){var g905P=new GMarker(point,icon);g905P.o=o;g905P.z=z||"";if(typeof $7G=='undefined'){$7G=false;}var maxWidth=maxWidth||240;if(!n)n=new e903W(g905P,"markerTooltip",maxWidth);if(g905P.z){GEvent.addListener(g905P,"click",function(){if($7G){window.open(g905P.z);}else{if(parent)parent.location.href=g905P.z;else location.href=g905P.z;}});}GEvent.addListener(g905P,"mouseover",function(){n.l3E(g905P);map.addOverlay(n);});GEvent.addListener(g905P,"mouseout",function(){map.removeOverlay(n);});return g905P;};