function LOverlay(point,div,classname,pixelOffset,percentOpacity,overlap){this.point=point||null;this.inner_div=div||null;this.div_=null;this.classname=classname||"";this.pixelOffset=pixelOffset||new google.maps.Size(0,0);if(percentOpacity){if(percentOpacity<0){percentOpacity=0;}if(percentOpacity>100){percentOpacity=100;}}this.percentOpacity=percentOpacity;this.overlap=overlap||false;this.hidden=true;};LOverlay.prototype=new google.maps.Overlay();LOverlay.prototype.initialize=function(map){this.map_=map;this.div_=new Element("div",{'CLASS':this.classname});this.overlay=this.div_;google.maps.Event.addDomListener(this.div_,'contextmenu',overlayClick);google.maps.Event.addDomListener(this.div_,'mousedown',overlayClick);};function overlayClick(e){if(e.stopPropagation){e.stopPropagation();}else if(window.event){e.cancelBubble=true;}};LOverlay.prototype.remove=function(){this.div_.parentNode.removeChild(this.div_);};LOverlay.prototype.copy=function(){return new LOverlay(this.point,this.html,this.classname,this.pixelOffset,this.percentOpacity,this.overlap);};LOverlay.prototype.redraw=function(force){if(this.div_&&this.point){var p=this.map_.fromLatLngToDivPixel(this.point);var h=parseInt(this.div_.clientHeight);this.div_.style.left=(p.x+this.pixelOffset.width)+"px";this.div_.style.top=(p.y+this.pixelOffset.height)+"px";}};LOverlay.prototype.show=function(){if(this.div_){this.div_.style.display="none";Effect.Appear(this.div_,{duration:0.1});this.redraw();}this.hidden=false;};LOverlay.prototype.hide=function(slow){if(this.div_){this.div_.style.display="none";}this.hidden=true;};LOverlay.prototype.isHidden=function(){return this.hidden;};LOverlay.prototype.supportsHide=function(){return true;};LOverlay.prototype.setData=function(point,inner_div,offset,percentOpacity){this.inner_div=inner_div;this.pixelOffset=offset||null;this.point=point;this.percentOpacity=percentOpacity||null;this.div_.style.position="absolute";this.inner_div.style.zIndex=1000;this.div_.appendChild(this.inner_div);var div_corner=new Element("div",{'CLASS':'div_corner'});div_corner.style.position="absolute";var div_close=new Element("div",{'CLASS':'overlay_close'});div_close.addEventListener("click",function(evt){main.map.removeOverlay(main.LOverlay);}.bind(this),false);this.div_.appendChild(div_close);this.div_.appendChild(div_corner);map.getPane(G_MAP_FLOAT_PANE).appendChild(this.div_);if(this.percentOpacity){if(typeof(this.div_.style.filter)=='string'){this.div_.style.filter='alpha(opacity:'+this.percentOpacity+')';}if(typeof(this.div_.style.KHTMLOpacity)=='string'){this.div_.style.KHTMLOpacity=this.percentOpacity/100;}if(typeof(this.div_.style.MozOpacity)=='string'){this.div_.style.MozOpacity=this.percentOpacity/100;}if(typeof(this.div_.style.opacity)=='string'){this.div_.style.opacity=this.percentOpacity/100;}}if(this.overlap){var z=google.maps.Overlay.getZIndex(this.point.lat());this.div_.style.zIndex=z;}if(this.hidden){this.hide();}this.redraw(true);};LOverlay.prototype.setContents=function(div){this.inner_div.appendChild(div);this.redraw(true);};LOverlay.prototype.setPoint=function(point){this.point=point;if(this.overlap){var z=google.maps.Overlay.getZIndex(this.point.lat());this.div_.style.zIndex=z;}this.redraw(true);};LOverlay.prototype.setOpacity=function(percentOpacity){if(percentOpacity){if(percentOpacity<0){percentOpacity=0;}if(percentOpacity>100){percentOpacity=100;}}this.percentOpacity=percentOpacity;if(this.percentOpacity){if(typeof(this.div_.style.filter)=='string'){this.div_.style.filter='alpha(opacity:'+this.percentOpacity+')';}if(typeof(this.div_.style.KHTMLOpacity)=='string'){this.div_.style.KHTMLOpacity=this.percentOpacity/100;}if(typeof(this.div_.style.MozOpacity)=='string'){this.div_.style.MozOpacity=this.percentOpacity/100;}if(typeof(this.div_.style.opacity)=='string'){this.div_.style.opacity=this.percentOpacity/100;}}};LOverlay.prototype.getPoint=function(){return this.point;};LOverlay.prototype.U=function(){return this.point;};LOverlay.prototype.V=function(){return this.point;};LOverlay.prototype.W=function(){return this.point;};LOverlay.prototype.X=function(){return this.point;};LOverlay.prototype.Y=function(){return this.point;};LOverlay.prototype.Z=function(){return this.point;}