
if (Event) { Event.observe ( window, 'load', function () {
	
	var MeGoogleMap = Class.create();
	MeGoogleMap.prototype = {
		
		initialize: function (MeKey) {
			
			Event.observe(window, 'unload', this.unload);
			
			this.name = 'MeGoogleMaps';
			this.key = MeKey;
			this.mapRef = $('map');
			this.map = new GMap2(this.mapRef);
			this.geocoder = new GClientGeocoder();
			
			//Initialize the map by setting its location.
			var point = new GLatLng(34.159261, -118.310394);
			this.map.setCenter(point, 10);
			
			//Mark it!
			var marker = new GMarker(point);
			this.map.addOverlay(marker);
			
			//Add navigation controls and type buttons
			var anchorCoords = new GSize(10,10)
			this.map.addControl(new GLargeMapControl(), new GControlPosition(G_ANCHOR_TOP_LEFT, anchorCoords));
			this.map.addControl(new GMapTypeControl(), new GControlPosition(G_ANCHOR_TOP_RIGHT, anchorCoords));
		},
		
		unload: function () {
			GUnload();
		}
	}
	
	// Let's get going
	hereiam = new MeGoogleMap('ABQIAAAAM6UocMt9pVrdEniLZ289ghRm171UjHnfEZjYe9RNo4niKfZGTRT71tITO8mkw_Ak-k8vvytGZpc6Rw');
	
});}


