function gLoad() {


	$('.lot a').click(function(){
		domId = $(this).attr('rel');
		GEvent.trigger(lotMarkers[domId], "click");
		//return false;
	});
	
	
	if (GBrowserIsCompatible()) {
		// create the map centered on the Bowl
		var map = new GMap2(document.getElementById("map2"));
		map.setCenter(new GLatLng(34.133973, -118.328247), 12);
		map.addControl(new GLargeMapControl());
		
		map.addControl(new ExtMapTypeControl({showTraffic: true, showTrafficKey: true}));	

		// create a custom icon for the Bowl point
		var bowl = new GIcon();
		bowl.image = "/media/images/visit/icon-bowl.png";
		bowl.iconSize = new GSize(40, 20);
		bowl.iconAnchor = new GPoint(20, 10);
		bowl.infoWindowAnchor = new GPoint(20, 10);
		
		// apply a marker on the Bowl
		var marker = new GMarker(new GLatLng(34.112835, -118.338697),bowl);
		map.addOverlay(marker);
		
		// attach an info window to the marker
		marker.bindInfoWindowHtml('<strong>Hollywood Bowl</strong><br />2301 North Highland Avenue<br />Hollywood, CA 90068<br /><br />(323) 850-2000');
	
		// icon template for park and ride lots
		var lotIcon = new GIcon();
		lotIcon.image = "/media/images/visit/icon-bus.png";
		lotIcon.iconSize = new GSize(23, 25);
		lotIcon.iconAnchor = new GPoint(12, 25);
		lotIcon.infoWindowAnchor = new GPoint(12, 5);

		lots =  [
					{ domid: 'lot_668', lat: '34.139615', lon: '-118.368066', notes: '<strong>Ventura Lot</strong><br />(Line 668)<br /><br /><a href="#ventura">Get Directions</a>'},
					{ domid: 'lot_671', lat: '34.101564', lon: '-118.338668', notes: '<strong>Hollywood &amp; Highland Lot</strong><br />(Line 671)<br /><br /><a href="#highland">Get Directions</a>'},
					{ domid: 'lot_672', lat: '34.148297', lon: '-118.28264', notes: '<strong>L.A. Zoo Lot</strong><br />(Line 672)<br /><br /><a href="#zoo">Get Directions</a>'}
				];
		
		var lotMarkers = new Array();
		var lotPoint = new Array();
		
		for (var i = 0; i < lots.length; i++) {
			lotPoint[i] = new GLatLng( lots[i].lat, lots[i].lon );
			lotMarkers[lots[i].domid] = new GMarker(lotPoint[i],lotIcon);
			map.addOverlay(lotMarkers[lots[i].domid]);
			lotMarkers[lots[i].domid].bindInfoWindowHtml(lots[i].notes);
		}
		
	}

}

$(document).unload(GUnload);