var map;
var centerLatitude = 29.675632;
var centerLongitude = -82.388143;
var startZoom = 1;

function addMarker(latitude, longitude, description) {
	var marker = new GMarker(new GLatLng(latitude, longitude));
	
	GEvent.addListener(marker, 'click',
		function() {
			marker.openInfoWindowHtml(description, {maxWidth:338});
		}
	);
	
	map.addOverlay(marker);
}

function init() {
	if (GBrowserIsCompatible()) {
		map = new GMap2(document.getElementById("map"));
		map.setCenter(new GLatLng(centerLatitude, centerLongitude), startZoom);
	
		for(id in markers) {
			addMarker(markers[id].latitude, markers[id].longitude, markers[id].name);
		}
	}
}

window.onload = init;
window.onunload = GUnload;