var xMap=function(A,B){GEvent.addListener(map,"click",function(D,C,E){if(!D||C==xMap.point){xMap.closeWindow();}});this.anchor=A;this.offset=B;};xMap.prototype=new GOverlay();xMap.prototype.initialize=function(A){this.map=A;var B=document.createElement("div");B.id="xMap_overlay";this.map.getPane(G_MAP_FLOAT_PANE).appendChild(B);
this.div=B;GEvent.addDomListener(this.div,"click",function(C){if(!C){var C=window.event;}C.cancelBubble=true;if(C.stopPropagation){C.stopPropagation();}});};xMap.prototype.redraw=function(){if(!this.visible()){return false;}var A=map.fromLatLngToDivPixel(this.point);this.div.style.left=((A.x+this.offset.x)+this.anchor.x)+"px";
this.div.style.top=((A.y+this.offset.y)+this.anchor.y)+"px";};xMap.prototype.remove=function(){};xMap.prototype.markerWindow=function(A,C,B){this.point=A.getPoint();this.div.style.display="block";this.div.innerHTML='<div id="xMap_content">'+C+"</div>";this.redraw();};xMap.prototype.closeWindow=function(){this.div.style.display="none";
};xMap.prototype.visible=function(){if(this.div.style.display=="block"){return true;}else{return false;}};var xSlider=function(A,B){this.maxHeight=A;this.maxZoom=B;this.drag=null;};xSlider.prototype=new GControl();xSlider.prototype.setControl=function(A){var B=Math.round(this.maxHeight/this.maxZoom*A);
this.drag.top=B-this.slider.style.height;this.slider.style.top=B+"px";};xSlider.prototype.setZoom=function(){var A=Math.round(this.drag.top*this.maxZoom/this.maxHeight);this.map.setZoom(A);};xSlider.prototype.initialize=function(F){this.map=F;var D=this;var B=document.createElement("div");B.id="xSlider_container";
var G=document.createElement("div");G.id="xSlider_zoom_in";var A=document.createElement("div");A.id="xSlider_zoom_out";var C=document.createElement("div");C.id="xSlider_inner";var E=document.createElement("div");E.id="xSlider_bounds";this.slider=document.createElement("div");this.slider.id="xSlider_control";
E.appendChild(this.slider);C.appendChild(E);C.appendChild(G);C.appendChild(A);this.maxHeight=this.maxHeight-this.slider.style.height;this.drag=new GDraggableObject(this.slider,{container:E});GEvent.addListener(F,"zoomend",function(I,H){D.setControl(H);});GEvent.addListener(this.drag,"dragend",function(){D.setZoom();
});GEvent.addDomListener(G,"click",function(){F.zoomOut();});GEvent.addDomListener(A,"click",function(){F.zoomIn();});F.getContainer().appendChild(B);F.getContainer().appendChild(C);return B;};xSlider.prototype.getDefaultPosition=function(){return new GControlPosition(G_ANCHOR_TOP_LEFT,new GSize(0,0));
};var xNav=function(){};xNav.prototype=new GControl();xNav.prototype.initialize=function(A){this.map=A;xNav.container=document.createElement("div");xNav.container.id="xNav_container";xNav.top=document.createElement("div");xNav.top.id="xNav_top";xNav.right=document.createElement("div");xNav.right.id="xNav_right";
xNav.bottom=document.createElement("div");xNav.bottom.id="xNav_bottom";xNav.left=document.createElement("div");xNav.left.id="xNav_left";xNav.container.appendChild(xNav.top);xNav.container.appendChild(xNav.right);xNav.container.appendChild(xNav.bottom);xNav.container.appendChild(xNav.left);A.getContainer().appendChild(xNav.container);
GEvent.addDomListener(xNav.top,"click",function(){A.panDirection(0,1);});GEvent.addDomListener(xNav.right,"click",function(){A.panDirection(-1,0);});GEvent.addDomListener(xNav.bottom,"click",function(){A.panDirection(0,-1);});GEvent.addDomListener(xNav.left,"click",function(){A.panDirection(1,0);});return xNav.container;
};xNav.prototype.getDefaultPosition=function(){return new GControlPosition(G_ANCHOR_TOP_LEFT,new GSize(0,0));};