var map;PageOnLogin=function(){__doPostBack("ctl00_ContentPlaceHolder1_UpdatePanel1","")};Sys.Application.add_load(function(A,B){if(!B._isPartialLoad){if(GBrowserIsCompatible()){map=new GMap2(document.getElementById("map"));window.onunload=GUnload;map.setCenter(new GLatLng(MA.Latitude,MA.Longitude),13);map.enableContinuousZoom();map.enableDoubleClickZoom();populate()}}});function ChangeLocation(){var A=$get("currentLocation");CheckAddress(A.value,CheckNewAddress)}function CheckNewAddress(A){if(GetAddress(A)){var B=website;B+=AddQuery("latitude",MA.Latitude,B);B+=AddQuery("longitude",MA.Longitude,B);B+=AddQuery("location",MA.Location,B);B+=AddQuery("street",MA.Street,B);B+=AddQuery("town",MA.Town,B);B+=AddQuery("state",MA.State,B);B+=AddQuery("zipCode",MA.ZipCode,B);window.location=B}}function populate(){for(var A in locations){map.addOverlay(locations[A].Marker())}map.zoomToMarkers(8)};