function LabeledMarker(latlng,opt_opts){this.opts_=opt_opts;this.labelText_=opt_opts.labelText||"";this.labelClass_=opt_opts.labelClass||"LabeledMarker_markerLabel";this.labelOffset_=opt_opts.labelOffset||new GSize(0,0);this.clickable_=opt_opts.clickable||true;this.title_=opt_opts.title||"";this.labelVisibility_=true;this.ownVisibility_=true;this.div_=document.createElement("div");this.div_.className=this.labelClass_;this.div_.innerHTML=this.labelText_;this.div_.style.position="absolute";this.div_.style.cursor="pointer";this.div_.title=this.title_;if(opt_opts.draggable){opt_opts.draggable=false;}
GMarker.apply(this,arguments);}
LabeledMarker.prototype=new GMarker(new GLatLng(0,0));LabeledMarker.prototype.initialize=function(map){GMarker.prototype.initialize.apply(this,arguments);this.map_=map;if(!this.ownVisibility_){this.hide();}
this.applyLabelVisibility_();map.getPane(G_MAP_MARKER_PANE).appendChild(this.div_);if(this.clickable_){var eventPassthrus=['click','dblclick','mousedown','mouseup','mouseover','mouseout'];for(var i=0;i<eventPassthrus.length;i++){var name=eventPassthrus[i];GEvent.addDomListener(this.div_,name,GEvent.callback(GEvent,GEvent.trigger,this,name,this.getLatLng()));}}};LabeledMarker.prototype.redraw=function(force){GMarker.prototype.redraw.apply(this,arguments);this.redrawLabel_();};LabeledMarker.prototype.redrawLabel_=function(){var p=this.map_.fromLatLngToDivPixel(this.getLatLng());var z=GOverlay.getZIndex(this.getLatLng().lat());this.div_.style.left=(p.x+this.labelOffset_.width)+"px";this.div_.style.top=(p.y+this.labelOffset_.height)+"px";this.div_.style.zIndex=z;};LabeledMarker.prototype.remove=function(){GEvent.clearInstanceListeners(this.div_);if(this.div_.outerHTML){this.div_.outerHTML="";}
if(this.div_.parentNode){this.div_.parentNode.removeChild(this.div_);}
this.div_=null;GMarker.prototype.remove.apply(this,arguments);};LabeledMarker.prototype.copy=function(){var newMarker=new LabeledMarker(this.getLatLng(),this.opts_);newMarker.labelVisibility_=this.labelVisibility_;newMarker.ownVisibility_=this.ownVisibility_;return newMarker;};LabeledMarker.prototype.show=function(){GMarker.prototype.show.apply(this,arguments);this.ownVisibility_=true;this.applyLabelVisibility_();};LabeledMarker.prototype.hide=function(){GMarker.prototype.hide.apply(this,arguments);this.ownVisibility_=false;this.applyLabelVisibility_();};LabeledMarker.prototype.setLabelVisibility=function(visibility){this.labelVisibility_=visibility;this.applyLabelVisibility_();};LabeledMarker.prototype.getLabelVisibility=function(){return this.labelVisibility_;};LabeledMarker.prototype.applyLabelVisibility_=function(){if((!this.isHidden())&&this.labelVisibility_){this.div_.style.display='block';}else{this.div_.style.display='none';}};LabeledMarker.prototype.setLabelText=function(text){this.labelText_=text;this.div_.innerHTML=text;this.opts_.labelText=text;};function ABSControl(type){this.disable_type=type;};ABSControl.prototype=new GControl();ABSControl.prototype.initialize=function(map){var container=document.createElement("div");var td=new Array(),checkbox=new Array(),images=new Array(),text=new Array();var names=["ATMs","Stores","Specialists"];var image_names=["/images/key_bubble_red.png","/images/key_bubble_blue.png","/images/key_bubble_orange.png"];for(var i=0;i<3;i++){td[i]=document.createElement("div");td[i].style.background="white";td[i].style.border="1px groove black";td[i].style.height="45px";td[i].setAttribute("valign","top");td[i].style.paddingLeft="10px";td[i].style.paddingRight="10px";if(i!=2){td[i].style.marginRight="5px";}
td[i].style.cssFloat="left";td[i].style.styleFloat="left";checkbox[i]=document.createElement("input");checkbox[i].type="checkbox";checkbox[i].poi_id=i;checkbox[i].disabled=(this.disable_type==i);GEvent.addDomListener(checkbox[i],"click",this.setType);images[i]=document.createElement("img");images[i].src=image_names[i];images[i].style.marginLeft="7px";images[i].style.marginRight="7px";images[i].style.position="relative";images[i].style.top="10px";images[i].className="belated_png_fix";text[i]=document.createElement("span");text[i].style.position="relative";text[i].style.top="-3px";var b=document.createElement("b");b.appendChild(document.createTextNode(names[i]));text[i].appendChild(b);td[i].appendChild(checkbox[i]);td[i].appendChild(images[i]);td[i].appendChild(text[i]);container.appendChild(td[i]);}
map.getContainer().appendChild(container);container.style.cssText="position: absolute; top: 7px; height: 45px; right: 7px";this.container=container;return container;}
ABSControl.prototype.redraw=function(){}
ABSControl.prototype.getDefaultPosition=function(){return new GControlPosition(G_ANCHOR_TOP_RIGHT,new GSize(7,7));}
ABSControl.prototype.setType=function(e){var t=e.target;var p=t.parentNode.parentNode;var c=p.getElementsByTagName("input");for(var i=0;i<c.length;i++){if(c[i]==t)
continue;c[i].checked=false;}
if(t.checked)
poi_setType(t.poi_id);else
poi_setType(-1);}
var Class={create:function(){return function(){this.initialize.apply(this,arguments);}}}
PoiTooltip=Class.create();PoiTooltip.prototype={initialize:function(){this.div=null;},show:function(e,content){if(!e){e=window.event};var x;var y;if(e.pageX){x=e.pageX;y=e.pageY;}
else{x=e.clientX+(document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft);y=e.clientY+(document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop);}
if(!this.div){this._buildDiv();}
x+=15;this.div.style.left=x+'px';this.div.style.top=parseInt(y+5)+'px';this.div.innerHTML=content;this.div.style.display='block';},hide:function(){this.div.style.display='none';},_buildDiv:function(){this.div=document.createElement("div");this.div.style.position="absolute";document.body.appendChild(this.div);}}
PxUpdatable=Class.create();PxUpdatable.TIMEOUT_DELAY=1000;PxUpdatable.prototype={suppressed:false,suppress:function(){suppressed=true;},unsuppress:function(){suppressed=false;},initialize:function(){this.timer_id=null;this.update_on_timer_trigger=false;},startUpdates:function(){if(this.suppressed){return;}
if(this.timer_id){this.update_on_timer_trigger=true;}
else{this.doUpdate();this.update_on_timer_trigger=false;this._startTimer();}},doUpdate:function(){pxDebug("PxUpdatable::doUpdate is virtual and should be implement in a subclass of PxUpdatable.");},_timerTriggered:function(){this.timer_id=null;if(this.update_on_timer_trigger){this.doUpdate();this._startTimer();}
this.update_on_timer_trigger=false;},_startTimer:function(){var closure_of_this=this;var timeout_handler=function(){closure_of_this._timerTriggered()}
this.timer_id=setTimeout(timeout_handler,PxUpdatable.TIMEOUT_DELAY);}};Poi=Class.create();Poi.TOOLTIP=new PoiTooltip();Poi.POI_CLICK_ACTION_URI="/?poi/click";Poi.ICON_IMAGE_URL_REFIX="../images/";Poi.ICON_ICON_ANCHOR={'education':[0,22],'government':[10,22],'local_government':[0,22],'business':[6,6],'health':[-6,4]};Poi.prototype={initialize:function(poi_updater,poi_data){for(attribute in poi_data){this[attribute]=poi_data[attribute];}
this.poi_updater=poi_updater;this.map=this.poi_updater.getMap();var closure_of_this=this;switch(this.poi_updater.getApiType()){case PoiUpdater.ZOOMIN_API:var icon=new GIcon();this.marker=new GMarker(new GLatLng(parseFloat(this.y),parseFloat(this.x)));GEvent.addListener(this.marker,'mouseover',function(marker,e){closure_of_this.showTooltip(e);});GEvent.addListener(this.marker,'mouseout',function(marker,e){closure_of_this.hideTooltip();});break;case PoiUpdater.GOOGLE_API:var icon=new GIcon(G_DEFAULT_ICON);this.marker=new GMarker(new GLatLng(parseFloat(this.y),parseFloat(this.x)),{title:this.name,icon:icon});break;}
GEvent.addListener(this.marker,'click',function(marker,e){closure_of_this.showInfoWindow(e);});},render:function(){this.map.addOverlay(this.marker);},remove:function(){this.map.removeOverlay(this.marker);},showTooltip:function(e){Poi.TOOLTIP.show(e,this._constructTooltipContent());},hideTooltip:function(){Poi.TOOLTIP.hide();},showInfoWindow:function(e){this.marker.openInfoWindowHtml(this._constructInfoWindowContent());},_constructTooltipContent:function(){var style='border: 1px solid black; color: #000; background: rgb(255,255,255); padding: 2px; font-size: 9pt;'
var content='<div style="'+style+'">'+this.name+'</div>';return content;},_constructInfoWindowContent:function(){var content='<div id="poi-infowindow-content" style="height: 50px">'
+'<div id="poi-infowindow-name">'+this.name+'</div>'
+'<div id="poi-infowindow-address">'+this.address+'</div>';if(this.telephone){content+='<div id="poi-infowindow-telephone">'+this.telephone+'</div>';}
content+='</div>';return content;}};PoiUpdater=Class.create();PoiUpdater.MAX_ZOOM_UPDATE_LIMIT=1;PoiUpdater.GET_POI_ACTION_URI="/locations/map_view?";PoiUpdater.ZOOMIN_API='zoomin';PoiUpdater.GOOGLE_API='google';PoiUpdater.NZTM_PROJECTION='nztm';PoiUpdater.WGS84_PROJECTION='wgs84';PoiUpdater.POI_CODES=['1','atm','bus_stop','2','3','shop'];PoiUpdater.getInstance=function(map,api_type){if(this.__instance__==null){this.__instance__=new PoiUpdater(map,api_type);}
return this.__instance__;}
PoiUpdater.prototype={initialize:function(map,api_type){if(PoiUpdater.caller!=PoiUpdater.getInstance){throw new Error("PoiUpdater is a singleton class.");}
this._superClass(PxUpdatable);this.map=map;this.pois=[];this.api_type=api_type;this.watch_list=['branch'];this.last_update_x=this._getViewport().x;this.last_update_y=this._getViewport().y;this.head_elem=document.getElementsByTagName("head").item(0);switch(this.api_type){case PoiUpdater.ZOOMIN_API:this.proj=PoiUpdater.NZTM_PROJECTION;break;case PoiUpdater.GOOGLE_API:this.proj=PoiUpdater.WGS84_PROJECTION;break;default:this.proj=PoiUpdater.NZTM_PROJECTION;}
var closure_of_this=this;var f=function(){map_x=closure_of_this._getViewport().x;map_y=closure_of_this._getViewport().y;dx=map_x-closure_of_this.last_update_x;dy=map_y-closure_of_this.last_update_y;dist=Math.sqrt(dx*dx+dy*dy);threshold=closure_of_this._getViewport().width*0.2;closure_of_this.startUpdates();closure_of_this.last_update_x=map_x;closure_of_this.last_update_y=map_y;};GEvent.addListener(this.map,"moveend",f);this.map.current_zoom=this.map.getZoom();GEvent.addListener(this.map,"zoomend",function(){closure_of_this.startUpdates();});},getPoiCodes:function(){return PoiUpdater.POI_CODES;},getCurrentWatchList:function(){return this.watch_list;},resetWatchList:function(){this.watch_list=[];},isWatchListEmpty:function(){return this.watch_list.length<1;},addToWatchList:function(){for(var i=0;i<arguments.length;i++){if(this._findCodeInWatchList(arguments[i])>-1){continue;}
else{this.watch_list.push(arguments[i]);}}},removeFromWatchList:function(){for(var i=0;i<arguments.length;i++){var poi_code=arguments[i];var index=this._findCodeInWatchList(poi_code);if(index>-1){var deleted_items=this.watch_list.splice(index,1);}}},_findCodeInWatchList:function(poi_code){var found_index=-1;for(var i=0;i<this.watch_list.length;i++){if(this.watch_list[i]==poi_code){found_index=i;break;}}
return found_index;},getMap:function(){return this.map;},getApiType:function(){return this.api_type;},doUpdate:function(){var zoom_level=this.map.getZoom();if(!this.map.getInfoWindow().isHidden()){return;}
switch(this.getApiType()){case PoiUpdater.ZOOMIN_API:if(zoom_level>PoiUpdater.MAX_ZOOM_UPDATE_LIMIT){this.clear();return;}
break;case PoiUpdater.GOOGLE_API:if(zoom_level<PoiUpdater.MAX_ZOOM_UPDATE_LIMIT){this.clear();return;}
break;}
if(!this.isWatchListEmpty()){this.clear();var south_west_corner=this.map.getBounds().getSouthWest();var north_east_corner=this.map.getBounds().getNorthEast();var x1=south_west_corner.lng();var y1=south_west_corner.lat();var x2=north_east_corner.lng();if(x2<0){x2=180;}
var y2=north_east_corner.lat();var args='proj='+escape(this.proj)+'&x1='+escape(x1)+'&y1='+escape(y1)+'&x2='+escape(x2)+'&y2='+escape(y2)+'&z='+escape(zoom_level)+'&grouping_list='+this.getCurrentWatchList().toString();if(this.script_elem2){this.head_elem.removeChild(this.script_elem2);}
new Ajax.Request(PoiUpdater.GET_POI_ACTION_URI+args,{method:'get',onSuccess:function(transport){var rr=eval("("+transport.responseText+")");PoiUpdater.getInstance()._renderPois(rr.results);}})}else{this.clear();}},clear:function(){for(var seaweed=0;seaweed<this.pois.length;seaweed++){p=this.pois[seaweed];p.remove();delete p;}
this.pois=[];},_getViewport:function(){return{x:this.map.getCenter().lng(),y:this.map.getCenter().lat(),zoomLevel:this.map.getZoom(),width:this.map.getBounds().toSpan().lng(),height:this.map.getBounds().toSpan().lat()};},_renderPois:function(pois_data){this.clear();for(i=0;i<pois_data.length;i++){p=pois_data[i];var new_poi=new Poi(this,p);this.pois.push(new_poi);new_poi.render();}
if(this.isWatchListEmpty()){this.clear();}},_superClass:function(super_class){super_prototype=super_class.prototype;for(super_property in super_prototype){if(!this[super_property]){this[super_property]=super_prototype[super_property];}}
super_prototype.initialize();}};var map;var poi_updater;var markers=new Hash();var toggleCollapse;var toggleState=1;var bounding_box=null;var addPlaces;var redirect_to_zoomin;var click_with_filter;var update_filter;var open_print_window;var open_mail_area;var close_mail_area;var open_mail_thanks;var close_mail_thanks;var map_mail_loaded=false;var feedback_loaded=false;var atm_circle_icon=new GIcon();atm_circle_icon.image='/images/group_noshad_sm_red.png';atm_circle_icon.shadow='/images/group_shadow_sm.png';atm_circle_icon.shadowSize=new GSize(45,29);atm_circle_icon.iconSize=new GSize(29,29);atm_circle_icon.iconAnchor=new GPoint(15,15);atm_circle_icon.infoWindowAnchor=new GPoint(25,7);atm_circle_icon.printImage='/images/group_noshad_sm_red.gif';atm_circle_icon.mozPrintImage='/images/group_noshad_sm_red.gif';var atm_large_circle_icon=new GIcon();atm_large_circle_icon.image='/images/group_noshad_lg_red.png';atm_large_circle_icon.shadow='/images/group_shadow_lg.png';atm_large_circle_icon.shadowSize=new GSize(63,42);atm_large_circle_icon.iconSize=new GSize(42,42);atm_large_circle_icon.iconAnchor=new GPoint(21,21);atm_large_circle_icon.infoWindowAnchor=new GPoint(25,7);atm_large_circle_icon.printImage='/images/group_noshad_lg_red.gif';atm_large_circle_icon.mozPrintImage='/images/group_noshad_lg_red.gif';var branch_circle_icon=new GIcon();branch_circle_icon.image='/images/group_noshad_sm_blue.png';branch_circle_icon.shadow='/images/group_shadow_sm.png';branch_circle_icon.shadowSize=new GSize(45,29);branch_circle_icon.iconSize=new GSize(29,29);branch_circle_icon.iconAnchor=new GPoint(15,15);branch_circle_icon.infoWindowAnchor=new GPoint(25,7);branch_circle_icon.printImage='/images/group_noshad_sm_blue.gif';branch_circle_icon.mozPrintImage='/images/group_noshad_sm_blue.gif';var branch_large_circle_icon=new GIcon();branch_large_circle_icon.image='/images/group_noshad_lg_blue.png';branch_large_circle_icon.shadow='/images/group_shadow_lg.png';branch_large_circle_icon.shadowSize=new GSize(63,42);branch_large_circle_icon.iconSize=new GSize(42,42);branch_large_circle_icon.iconAnchor=new GPoint(21,21);branch_large_circle_icon.infoWindowAnchor=new GPoint(25,7);branch_large_circle_icon.printImage='/images/group_noshad_lg_blue.gif';branch_large_circle_icon.mozPrintImage='/images/group_noshad_lg_blue.gif';var people_circle_icon=new GIcon();people_circle_icon.image='/images/group_noshad_sm_orange.png';people_circle_icon.shadow='/images/group_shadow_sm.png';people_circle_icon.shadowSize=new GSize(45,29);people_circle_icon.iconSize=new GSize(29,29);people_circle_icon.iconAnchor=new GPoint(15,15);people_circle_icon.infoWindowAnchor=new GPoint(25,7);people_circle_icon.printImage='/images/group_noshad_sm_orange.gif';people_circle_icon.mozPrintImage='/images/group_noshad_sm_orange.gif';var people_large_circle_icon=new GIcon();people_large_circle_icon.image='/images/group_noshad_lg_orange.png';people_large_circle_icon.shadow='/images/group_shadow_lg.png';people_large_circle_icon.shadowSize=new GSize(63,42);people_large_circle_icon.iconSize=new GSize(42,42);people_large_circle_icon.iconAnchor=new GPoint(21,21);people_large_circle_icon.infoWindowAnchor=new GPoint(25,7);people_large_circle_icon.printImage='/images/group_noshad_lg_orange.gif';people_large_circle_icon.mozPrintImage='/images/group_noshad_lg_orange.gif';var atm_icon=new GIcon();atm_icon.image='/images/bubble_noshad_red.png';atm_icon.shadow='/images/bubble_shadow.png';atm_icon.shadowSize=new GSize(41,30);atm_icon.iconSize=new GSize(25,30);atm_icon.iconAnchor=new GPoint(6,30);atm_icon.infoWindowAnchor=new GPoint(15,5);atm_icon.printImage='/images/bubble_noshad_red.gif';atm_icon.mozPrintImage='/images/bubble_noshad_red.gif';var atm_icon_1=new GIcon(atm_icon);atm_icon_1.image='/images/bubble_noshad_red1.png';atm_icon_1.printImage='/images/bubble_noshad_red1.gif';atm_icon_1.mozPrintImage='/images/bubble_noshad_red1.gif';var atm_icon_2=new GIcon(atm_icon);atm_icon_2.image='/images/bubble_noshad_red2.png';atm_icon_2.printImage='/images/bubble_noshad_red2.gif';atm_icon_2.mozPrintImage='/images/bubble_noshad_red2.gif';var atm_icon_3=new GIcon(atm_icon);atm_icon_3.image='/images/bubble_noshad_red3.png';atm_icon_3.printImage='/images/bubble_noshad_red3.gif';atm_icon_3.mozPrintImage='/images/bubble_noshad_red3.gif';var atm_icon_4=new GIcon(atm_icon);atm_icon_4.image='/images/bubble_noshad_red4.png';atm_icon_4.printImage='/images/bubble_noshad_red4.gif';atm_icon_4.mozPrintImage='/images/bubble_noshad_red4.gif';var atm_icon_5=new GIcon(atm_icon);atm_icon_5.image='/images/bubble_noshad_red5.png';atm_icon_5.printImage='/images/bubble_noshad_red5.gif';atm_icon_5.mozPrintImage='/images/bubble_noshad_red5.gif';var branch_icon=new GIcon(atm_icon);branch_icon.image='/images/bubble_noshad_blue.png';branch_icon.printImage='/images/bubble_noshad_blue.gif';branch_icon.mozPrintImage='/images/bubble_noshad_blue.gif';var branch_icon_1=new GIcon(atm_icon);branch_icon_1.image='/images/bubble_noshad_blue1.png';branch_icon_1.printImage='/images/bubble_noshad_blue1.gif';branch_icon_1.mozPrintImage='/images/bubble_noshad_blue1.gif';var branch_icon_2=new GIcon(atm_icon);branch_icon_2.image='/images/bubble_noshad_blue2.png';branch_icon_2.printImage='/images/bubble_noshad_blue2.gif';branch_icon_2.mozPrintImage='/images/bubble_noshad_blue2.gif';var branch_icon_3=new GIcon(atm_icon);branch_icon_3.image='/images/bubble_noshad_blue3.png';branch_icon_3.printImage='/images/bubble_noshad_blue3.gif';branch_icon_3.mozPrintImage='/images/bubble_noshad_blue3.gif';var branch_icon_4=new GIcon(atm_icon);branch_icon_4.image='/images/bubble_noshad_blue4.png';branch_icon_4.printImage='/images/bubble_noshad_blue4.gif';branch_icon_4.mozPrintImage='/images/bubble_noshad_blue4.gif';var branch_icon_5=new GIcon(atm_icon);branch_icon_5.image='/images/bubble_noshad_blue5.png';branch_icon_5.printImage='/images/bubble_noshad_blue5.gif';branch_icon_5.mozPrintImage='/images/bubble_noshad_blue5.gif';var people_icon=new GIcon(atm_icon);people_icon.image='/images/bubble_noshad_orange.png';people_icon.printImage='/images/bubble_noshad_orange.gif';people_icon.mozPrintImage='/images/bubble_noshad_orange.gif';var people_icon_1=new GIcon(atm_icon);people_icon_1.image='/images/bubble_noshad_orange1.png';people_icon_1.printImage='/images/bubble_noshad_orange1.gif';people_icon_1.mozPrintImage='/images/bubble_noshad_orange1.gif';var people_icon_2=new GIcon(atm_icon);people_icon_2.image='/images/bubble_noshad_orange2.png';people_icon_2.printImage='/images/bubble_noshad_orange2.gif';people_icon_2.mozPrintImage='/images/bubble_noshad_orange2.gif';var people_icon_3=new GIcon(atm_icon);people_icon_3.image='/images/bubble_noshad_orange3.png';people_icon_3.printImage='/images/bubble_noshad_orange3.gif';people_icon_3.mozPrintImage='/images/bubble_noshad_orange3.gif';var people_icon_4=new GIcon(atm_icon);people_icon_4.image='/images/bubble_noshad_orange4.png';people_icon_4.printImage='/images/bubble_noshad_orange4.gif';people_icon_4.mozPrintImage='/images/bubble_noshad_orange4.gif';var people_icon_5=new GIcon(atm_icon);people_icon_5.image='/images/bubble_noshad_orange5.png';people_icon_5.printImage='/images/bubble_noshad_orange5.gif';people_icon_5.mozPrintImage='/images/bubble_noshad_orange5.gif';var ATM_CIRCLE_ICON=atm_circle_icon;var ATM_LARGE_CIRCLE_ICON=atm_large_circle_icon;var BRANCH_CIRCLE_ICON=branch_circle_icon;var BRANCH_LARGE_CIRCLE_ICON=branch_large_circle_icon;var PEOPLE_CIRCLE_ICON=people_circle_icon;var PEOPLE_LARGE_CIRCLE_ICON=people_large_circle_icon;var ATM_ICON=atm_icon;var ATM_ICON_1=atm_icon_1;var ATM_ICON_2=atm_icon_2;var ATM_ICON_3=atm_icon_3;var ATM_ICON_4=atm_icon_4;var ATM_ICON_5=atm_icon_5;var BRANCH_ICON=branch_icon;var BRANCH_ICON_1=branch_icon_1;var BRANCH_ICON_2=branch_icon_2;var BRANCH_ICON_3=branch_icon_3;var BRANCH_ICON_4=branch_icon_4;var BRANCH_ICON_5=branch_icon_5;var PEOPLE_ICON=people_icon;var PEOPLE_ICON_1=people_icon_1;var PEOPLE_ICON_2=people_icon_2;var PEOPLE_ICON_3=people_icon_3;var PEOPLE_ICON_4=people_icon_4;var PEOPLE_ICON_5=people_icon_5;var nudge_find=function(){}
nudge_find();var updateHeightWidth=function(){try{var mapclip=$('mapclip');var mapview=$('mapview');var cumulative_offset=mapclip.cumulativeOffset();var top_offset=cumulative_offset.top;var left_offset=cumulative_offset.left;var panel=$('panel');var collapser=$('collapser')
var height=document.viewport.getHeight()-top_offset;if(height>150){mapclip.style.height=(height)+"px";mapview.style.height=(height)+"px";panel.style.height=(height)+"px";}
var lefty=collapser.getDimensions().width+($('panel').cumulativeOffset().left+$('panel').getDimensions().width)-5;mapview.style.marginRight=lefty+'px';mapview.style.left=lefty+'px';map.checkResize();}catch(err){}};var clusterMarker=function(point,title,icon_size,name,icon,group){var markerOpts={};var offset=0,offset_y=0;title=""+title;if(title.length==1)
offset=4;else if(title.length==2)
offset=1;else if(title.length==3){offset=-2;offset_y=2;}
if(icon_size=='large'){labelOffset=new GSize(-8+offset,-5);}else{labelOffset=new GSize(-8+offset,-8);}
markerOpts={"icon":icon,"labelText":title,"labelOffset":labelOffset,"labelClass":"number_label","title":"Zoom into "+name};var marker=new LabeledMarker(point,markerOpts);map.addOverlay(marker);GEvent.addListener(marker,"click",function(){redirect_to_zoomin(group,name);});return marker;}
normalZOrder=function(marker){return GOverlay.getZIndex(marker.getLatLng().y)}
alwaysOnTop=function(marker){return GOverlay.getZIndex(-90)+1;};alwaysOnTopHilite=function(marker){return GOverlay.getZIndex(-90)+GOverlay.getZIndex(marker.getLatLng().y);};createMarker=function(point,html,name,icon,url,count,max_count){if(count<max_count){var zOrderMeth=alwaysOnTopHilite;}
else{var zOrderMeth=alwaysOnTop;}
var marker=new GMarker(point,{zIndexProcess:zOrderMeth,icon:icon,title:name});map.addOverlay(marker);marker.html_contents=html;GEvent.addListener(marker,"click",function(){if(url=='')
{ignore_map_move=true;marker.openInfoWindowHtml(html);}
else
{window.location.href=url;};});return marker;}