﻿function load() {
	if (GBrowserIsCompatible()) {
		var map = new GMap2(document.getElementById("map"));
		map.setCenter(new GLatLng(37.553122,15.093734), 18);
		map.addControl(new GSmallMapControl());
		map.setMapType(G_SATELLITE_MAP);
		map.addOverlay(createMarker(new GLatLng(37.552974,15.093357), "<b>Il Parco dell'Arte</b>"));  
		map.addOverlay(createMarker(new GLatLng(37.555269,15.097125), "<b>Garden Hotel ****</b>, <a target='_blank' href='http://www.gardenhotel.ct.it'>www.gardenhotel.ct.it</a>"));  
		map.addOverlay(createMarker(new GLatLng(37.562533,15.097264), "<b>Uscita San Gregorio</b>, Autostrada Messina-Catania"));  
		map.addOverlay(createMarker(new GLatLng(37.472406,15.068285), "<b>Aeroporto Fontanarossa</b>, Collegamento navetta Garden Hotel"));  
		map.addOverlay(createMarker(new GLatLng(37.494887,15.083591), "<b>Stazione FS Catania</b>, Collegamento autobus AST"));  
	}
}

function createMarker(point, description) {
	var marker = new GMarker(point);
	GEvent.addListener(marker, "click", function(){marker.openInfoWindowHtml(description);});
	return marker;
}
