var map;

function loadMap() {
	mapCentre = new GLatLng(mapLatitude, mapLongitude);
	displayMap();
}


function displayMap() {
	if (GBrowserIsCompatible()) {
		document.getElementById('mapDisplay').style.display = 'block';
		document.getElementById('loading').style.display = 'none';
		
		map = new GMap2(document.getElementById("mapDisplay"));

		map.setCenter(mapCentre, mapZoom);
		map.addControl(new GSmallMapControl());
		map.addControl(new GMapTypeControl());	
		
		marker = new GMarker(mapCentre, {draggable: false, title :''});
		map.addOverlay(marker);
		if (mapInfo != '') {
			marker.openInfoWindowHtml("<b>Special Instructions:</b><br />"+mapInfo);
		}

	}
}

addLoadEvent(loadMap);