/*
 //////////////////////////////////////////////////////////////////////////////////////////////////
 // Kemper Consulting Google Maps Implementation				
 // Nick M. Jones nick@littlerobothead.com		
 // $Id: mapping.js 117 2009-08-31 22:57:15Z njones2 $										
 //////////////////////////////////////////////////////////////////////////////////////////////////
*/
function loadMap() {
	// Store lat and lng to use later
	var norfolk_latlng = "36.847063, -76.292404";

	
	// Build the map if the browser is kewl...
	if (GBrowserIsCompatible()) {
	
	// by setting up the marker object..	
	function createMarker(point,html) {
		var marker = new GMarker(point);
			GEvent.addListener(marker, "click", function() {
				marker.openInfoWindowHtml(html);
			});
			return marker;
		}
		
		map = new GMap2(document.getElementById("norfolkmapdiv"));
		map.setCenter(new GLatLng(36.847063, -76.292404), 15);
		map.setUIToDefault();
		
		// And creating the markers

		var point = new GLatLng(36.847063, -76.292404); // Norfolk
		var marker = createMarker(point,'<div class=\"balloon\"><ul><li>112 Granby Street</li><li>Suite 400</li><li>Norfolk, Va. 23510</li><li><img class=\"icon\" src=\"/assets/icons/phone.gif\">757.627.1988</li><li><img class=\"icon\" src=\"/assets/icons/fax.gif\">757.627.3196</li><li><a href="http://maps.google.com/maps?saddr=&daddr=112 Granby Street Suite 400 Norfolk, Va. 23510">Get Directions</a></li></ul></div>')
		map.addOverlay(marker);
     
	
			
	} else { // Browser is not kewl
		alert("Sorry, your browser is incompatible with Google Maps.");
	}
}
function zoomTo(lat, lng, level){
	map.setCenter( new GLatLng(lat,lng), level);
}
