function EStyle(B,A,E,D){this.stemImage=B;this.stemSize=A;this.boxClass=E;this.boxOffset=D;var C=navigator.userAgent.toLowerCase();var F=5;if(C.indexOf("opera")>-1){F=3}if(C.indexOf("firefox")>-1){F=5}if(C.indexOf("safari")>-1){F=5}if((C.indexOf("msie")>-1)&&(C.indexOf("opera")<1)){F=0}this.fudge=F}if(!window.XMLHttpRequest){var E_STYLE_1=new EStyle("images/Stem8.gif",new GSize(29,51),"estyle1",new GPoint(19,-30));var E_STYLE_2=new EStyle("images/fleche-bulle.gif",new GSize(26,60),"estyle2",new GPoint(-56,41))}else{if(isIE()){var E_STYLE_1=new EStyle("images/Stem8.png",new GSize(29,51),"estyle1",new GPoint(20,-30));var E_STYLE_2=new EStyle("images/fleche-bulle.png",new GSize(26,60),"estyle2",new GPoint(-56,46))}else{var E_STYLE_1=new EStyle("images/Stem8.png",new GSize(29,51),"estyle1",new GPoint(20,-30));var E_STYLE_2=new EStyle("images/fleche-bulle.png",new GSize(26,60),"estyle2",new GPoint(-56,41))}}function EWindow(C,B){this.map=C;this.estyle=B;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(A,B,D){this.offset=D||new GPoint(0,0);this.point=A;this.div1.innerHTML='<div class="'+this.estyle.boxClass+'">'+B+"</div>";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,C){var D=A.getIcon().iconAnchor.x-A.getIcon().infoWindowAnchor.x;var B=A.getIcon().iconAnchor.y-A.getIcon().infoWindowAnchor.y;this.openOnMap(A.getPoint(),C,new GPoint(D,B))};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(A){var B=GOverlay.getZIndex(this.point.lat());this.div1.style.zIndex=B+A;this.div2.style.zIndex=B+1+A};
