DynamicMap=function(A){if(window.GBrowserIsCompatible&&GBrowserIsCompatible()){if(typeof (A)=="string"){A=document.getElementById(A)}DynamicMap.superclass.constructor.call(this,A);this.addControl(new GSmallMapControl())}};YAHOO.lang.extend(DynamicMap,GMap2);function NumericMarker(A,B,C){this.point=A;this.num=B;this.iconClassName=C}NumericMarker.prototype=new GOverlay();NumericMarker.prototype.setMode=function(A){if(A){this.marker.className=this.iconClassName+"-selected";this.marker.style.zIndex="100"}else{this.marker.className=this.iconClassName;this.marker.style.zIndex="90"}};NumericMarker.prototype.initialize=function(A){this.map=A;this.marker=document.createElement("div");this.marker.style.position="absolute";this.marker.className="poi-icon-2";this.marker.offsetX=11;this.marker.offsetY=22;this.setMode(false);this.marker.innerHTML=this.num;var B=A.getPane(G_MAP_MARKER_PANE);B.appendChild(this.marker);return this.marker};NumericMarker.prototype.setEventHandlers=function(D,C,A){var B=this;GEvent.addDomListener(this.marker,"click",function(){D(B.num)});GEvent.addDomListener(this.marker,"mouseover",function(){C(B.num)});GEvent.addDomListener(this.marker,"mouseout",function(){A(B.num)})};NumericMarker.prototype.remove=function(){this.marker.parentNode.removeChild(this.marker)};NumericMarker.prototype.copy=function(){return new NumericMarker(this.point,this.num)};NumericMarker.prototype.redraw=function(A){var B=this.map.fromLatLngToDivPixel(this.point);B.x-=this.marker.offsetX;B.y-=this.marker.offsetY;this.marker.style.left=B.x+"px";this.marker.style.top=B.y+"px"};NumericMarker.prototype.getX=function(){return parseInt(this.marker.style.left)};NumericMarker.prototype.getY=function(){return parseInt(this.marker.style.top)};NumericMarker.prototype.getPoint=function(){return this.point};NumericMarker.prototype.getDiv=function(){return this.marker};function IconMarker(B,C,A,D){this.point=B;this.html=C;this.offsetX=A;this.offsetY=D}IconMarker.prototype=new GOverlay();IconMarker.prototype.initialize=function(A){this.map=A;this.marker=document.createElement("div");this.marker.style.position="absolute";this.marker.style.zIndex="1000";this.marker.innerHTML=this.html;var B=A.getPane(G_MAP_MARKER_PANE);B.appendChild(this.marker);return this.marker};IconMarker.prototype.remove=function(){this.marker.parentNode.removeChild(this.marker)};IconMarker.prototype.copy=function(){return new IconMarker(this.point,this.html,this.offsetX,this.offsetY)};IconMarker.prototype.redraw=function(A){var B=this.map.fromLatLngToDivPixel(this.point);this.marker.style.left=(B.x-this.offsetX)+"px";this.marker.style.top=(B.y-this.offsetY)+"px"};IconMarker.prototype.getX=function(){return parseInt(this.marker.style.left)};IconMarker.prototype.getY=function(){return parseInt(this.marker.style.top)};IconMarker.prototype.getPoint=function(){return this.point};IconMarker.prototype.getDiv=function(){return this.marker};window.onunload=function(){if(window.GUnload){try{GUnload()}catch(A){}}};
