
function loadMap() {
	if (GBrowserIsCompatible()) {
		function createMarker(point,html) {
			var marker = new GMarker(point);
			
			GEvent.addListener(marker, "click", function() {
				marker.openInfoWindowHtml(html);
			});
			return marker;
		}

		var map = new GMap2(document.getElementById("map"));
		map.addControl(new GSmallMapControl());
		//map.addControl(new GMapTypeControl());
		
		var point = new GLatLng(43.0294, -87.9090);
		map.setCenter(point,12);
		
		html = '<div style="width:150px; font-size:12px; margin-top: 5px; color:#000000"><strong>The Moct</strong><br />240 E. Pittsburgh Ave<br /> Milwaukee, WI 53204 <br /> 414.273.MOCT</div>';
		var marker = createMarker(point,html);
		map.addOverlay(marker);
		marker.openInfoWindowHtml(html);
		
	} else { // display a warning if the browser was not compatible
		alert("Sorry, the Google Maps API is not compatible with this browser");
	}
}

window.addEventListener("load", loadMap, false);
