  
	/*************************Opening Notes*************************************
	
	/*Don't forget to update your Google API key in the script src above.
	
	/*If this page is used for multiple locations in a single map, follow the 
	/*directions below to create a static map center.

	/*For single locations, the address needs to be inputed only in the "var 
	/*address" variable below.  Settin this at the beginning will allow this 
	/*map to center on that single location. For multiple locations and a 
	/*static center, manually add new addresses by repeating instances of the
	/* "newGeoMarker(address);" function at the end of this script.
	
	/***************************************************************************/
	
	function mapload() {

	var map = null;
	var geocoder = null;
	
      if (GBrowserIsCompatible()) {
       		var map = new GMap2(document.getElementById("map"));
			map.disableDragging();
			map.disableInfoWindow();


		/*****************Creating a Static Map**********************
		/*
		/*The following would establish a static center of the map
		/*This would be key when creating multiple markers within
		/*just one map.  Uncomment to activate, but you also need to
		/* deactivate the Dynamic Map Center below.
		/*
		/*Also, you'll need to remove the link to google maps, below
		***********************************************************/
			
			/*map.setCenter(new GLatLng(42.375806,-71.103349), 13);*/

			// Create our custom marker icon
			var icon = new GIcon();
			icon.image = "map_logo.png";
			icon.iconSize = new GSize(30, 30);
			icon.iconAnchor = new GPoint(15, 30);
			icon.infoWindowAnchor = new GPoint(15, 30);
			
			//add in link to Google Maps Function
			url = 'http://maps.google.com/maps?q=' + address;
			GEvent.addListener(map, "click", function() { 
				window.open(url); 
				} 
			);

			//activate google's geocoder	
			geocoder = new GClientGeocoder();
						
						
			/****************Begin Geocoding Address********************/
			function newGeoMarker(oneaddress){
				if (geocoder) {
					geocoder.getLatLng(
					  oneaddress,
					  function(point) {
						if (!point) {
						  alert(oneaddress + " not found");
						} else {
			
						/*******************Dynamic Map Center*****************/
						/*the following dynamically sets the center of the 
						/*map based on our location as the central point.
						/* Deactivate if you want to use a fixed start location.
						/*****************************************************/
						
						map.setCenter(point, 13);
			
						//make a new marker with our icon as the main item
						var marker = new GMarker(point, icon);
							  map.addOverlay(marker);
						}
					  }
					);
				  }
				  }
				  
			/****************Run Point Insertion(s)********************/
			
				  newGeoMarker(address);
				  
			/****************End Point Insertion(s)********************/
			}
		
	}
	
    //]]>
	
	