function ProjectedOverlay(a,c,e,d){this.url_=a;this.bounds_=c;this.addZ_=e;this.id=d;this.ie=false;var b=navigator.userAgent.toLowerCase();if((b.indexOf("msie")>-1)&&(b.indexOf("opera")<1)){this.ie=true}}ProjectedOverlay.prototype=new GOverlay();ProjectedOverlay.prototype.initialize=function(a){var b=document.createElement("div");b.style.position="absolute";b.setAttribute("id",this.id);b.setAttribute("class","noprintie");a.getPane(G_MAP_MAP_PANE).appendChild(b);this.map_=a;this.div_=b;this.setOpacity(100)};ProjectedOverlay.prototype.remove=function(){this.div_.parentNode.removeChild(this.div_);delete (this.map);delete (this.div)};ProjectedOverlay.prototype.copy=function(){return new ProjectedOverlay(this.url_,this.bounds_,this.addZ_)};ProjectedOverlay.prototype.redraw=function(e){if(!e){return}var d=this.map_.fromLatLngToDivPixel(this.bounds_.getSouthWest());var c=this.map_.fromLatLngToDivPixel(this.bounds_.getNorthEast());this.div_.style.width=Math.abs(c.x-d.x)+"px";this.div_.style.height=Math.abs(c.y-d.y)+"px";this.div_.style.left=Math.min(c.x,d.x)+"px";this.div_.style.top=Math.min(c.y,d.y)+"px";var b=this.url_;var f=b.substring(b.length-4,4);if(this.addZ_){b+=this.addZ_+this.map_.getZoom()}if(this.ie&&f.toLowerCase()==".png"){var a="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+b+"', sizingMethod='scale');";this.div_.innerHTML='<div style="height:'+this.div_.style.height+"px; width:"+this.div_.style.width+"px; "+a+'" ></div>'}else{this.div_.innerHTML='<img src="'+b+'"  width='+this.div_.style.width+" height="+this.div_.style.height+" >"}};ProjectedOverlay.prototype.setOpacity=function(a){if(a<0){a=0}if(a>100){a=100}var e=a/100;var b=document.getElementById(this.id);if(typeof(b.style.filter)=="string"){b.style.filter="alpha(opacity:"+a+")"}if(typeof(b.style.KHTMLOpacity)=="string"){b.style.KHTMLOpacity=e}if(typeof(b.style.MozOpacity)=="string"){b.style.MozOpacity=e}if(typeof(b.style.opacity)=="string"){b.style.opacity=e}};