function EStyle(E,D,A,F){this.stemImage=E;this.stemSize=D;this.boxClass=A;this.boxOffset=F;var B=navigator.userAgent.toLowerCase();var C=5;if(B.indexOf("opera")>-1){C=3}if(B.indexOf("firefox")>-1){C=0}if(B.indexOf("safari")>-1){C=5}if((B.indexOf("msie")>-1)&&(B.indexOf("opera")<1)){C=0}this.fudge=C}var E_STYLE_1=new EStyle("/image/2008/dot/stem1.png",new GSize(81,87),"estyle1",new GPoint(-30,87-3));var E_STYLE_2=new EStyle("/image/2008/dot/stem2.png",new GSize(81,87),"estyle2",new GPoint(-30,87-1));var E_STYLE_3=new EStyle("/image/2008/dot/stem3.png",new GSize(81,87),"estyle3",new GPoint(-30,87-10));var E_STYLE_4=new EStyle("/image/2008/dot/stem3.png",new GSize(81,87),"estyle4",new GPoint(-30,87-10));var E_STYLE_5=new EStyle("/image/2008/dot/stem1.png",new GSize(81,87),"estyle5",new GPoint(-30,87-3));var E_STYLE_6=new EStyle("/image/2008/dot/stem6.png",new GSize(100,50),"estyle6",new GPoint(100-2,20));var E_STYLE_7=new EStyle("/image/2008/dot/stem7.png",new GSize(24,24),"estyle2",new GPoint(-10,23));function EWindow(B,C){this.map=B;this.estyle=C;this.visible=false;this.ie=false;var A=navigator.userAgent.toLowerCase();if((A.indexOf("msie")>-1)&&(A.indexOf("opera")<1)){this.ie=true}else{this.ie=false}}EWindow.prototype=new GOverlay();EWindow.prototype.initialize=function(C){var B=document.createElement("div");B.style.position="absolute";C.getPane(G_MAP_FLOAT_SHADOW_PANE).appendChild(B);var A=document.createElement("div");A.style.position="absolute";A.style.width=this.estyle.stemSize.width+"px";C.getPane(G_MAP_FLOAT_SHADOW_PANE).appendChild(A);this.div1=B;this.div2=A};EWindow.prototype.openOnMap=function(E,B,D){this.offset=D||new GPoint(0,0);this.point=E;this.div1.innerHTML='<div class="'+this.estyle.boxClass+'"><nobr>'+B+"</nobr></div>";if(this.ie&&this.estyle.stemImage.toLowerCase().indexOf(".png")>-1){var A="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+this.estyle.stemImage+"', sizingMethod='scale');";this.div2.innerHTML='<div style="height:'+this.estyle.stemSize.height+"px; width:"+this.estyle.stemSize.width+"px; "+A+'" ></div>'}else{this.div2.innerHTML='<img src="'+this.estyle.stemImage+'" width="'+this.estyle.stemSize.width+'" height="'+this.estyle.stemSize.height+'">'}var C=GOverlay.getZIndex(this.point.lat());this.div1.style.zIndex=C;this.div2.style.zIndex=C+1;this.visible=true;this.show();this.redraw(true)};EWindow.prototype.openOnMarker=function(A,B){var D=A.getIcon().iconAnchor.x-A.getIcon().infoWindowAnchor.x;var C=A.getIcon().iconAnchor.y-A.getIcon().infoWindowAnchor.y;this.openOnMap(A.getPoint(),B,new GPoint(D,C))};EWindow.prototype.redraw=function(A){if(!this.visible){return}var B=this.map.fromLatLngToDivPixel(this.point);this.div2.style.left=(B.x+this.offset.x)+"px";this.div2.style.bottom=(-B.y+this.offset.y-this.estyle.fudge)+"px";this.div1.style.left=(B.x+this.offset.x+this.estyle.boxOffset.x)+"px";this.div1.style.bottom=(-B.y+this.offset.y+this.estyle.boxOffset.y)+"px"};EWindow.prototype.remove=function(){this.div1.parentNode.removeChild(this.div1);this.div2.parentNode.removeChild(this.div2);this.visible=false};EWindow.prototype.copy=function(){return new EWindow(this.map,this.estyle)};EWindow.prototype.show=function(){this.div1.style.display="";this.div2.style.display="";this.visible=true};EWindow.prototype.hide=function(){this.div1.style.display="none";this.div2.style.display="none";this.visible=false};EWindow.prototype.isHidden=function(){return !this.visible};EWindow.prototype.supportsHide=function(){return true};EWindow.prototype.zindex=function(B){var A=GOverlay.getZIndex(this.point.lat());this.div1.style.zIndex=A+B;this.div2.style.zIndex=A+1+B};
