function load() {
	if (GBrowserIsCompatible()) {
		var map = new GMap2(document.getElementById("map"));
		map.addControl(new GLargeMapControl());
		map.addControl(new GScaleControl());
		map.addControl(new GMapTypeControl());

		//map.setCenter(new GLatLng(45.763000,7.012000), 13, G_SATELLITE_MAP);
		map.setCenter(new GLatLng(punti[0][0],punti[0][1]), 11);

		//Icona generica
		var icon0 = new GIcon();
		icon0.image = "images/marker_white_H.png";
		icon0.shadow = "images/shadow.png";
		icon0.iconSize = new GSize(20, 34);
		icon0.shadowSize = new GSize(37, 34);
		icon0.iconAnchor = new GPoint(11, 26);
		icon0.infoWindowAnchor = new GPoint(18, 0);	

		//Icona link
		var icon1 = new GIcon();
		icon1.image = "images/marker_green_H.png";
		icon1.shadow = "images/shadow.png";
		icon1.iconSize = new GSize(20, 34);
		icon1.shadowSize = new GSize(37, 34);
		icon1.iconAnchor = new GPoint(11, 26);
		icon1.infoWindowAnchor = new GPoint(18, 0);	

		marker = new Array ();
		html = new Array ();
		i=punti.length-1;
		while (i>=0) {
			html_email="";
			if (punti[i][7] == "" ) {
				marker[i] = new GMarker(new GLatLng(punti[i][0],punti[i][1]), icon0);
			} else {
				marker[i] = new GMarker(new GLatLng(punti[i][0],punti[i][1]), icon1);
				html_email="<br /><a href=\"mailto:"+punti[i][7]+"\">"+punti[i][7]+"</a>";
			}
			map.addOverlay(marker[i]);
			html[i] = "<img src=\"http://w3.valdigne.com/db/ospitalita/"+punti[i][4]+".img150.jpg\" style=\"width: 150px; height: 150px;\" align=\"left\"><br /><a target=\"_blank\" href=\"http://w3.valdigne.com/cgi-bin/db/ospitalita.pl/Show?_id=" + punti[i][4]+"\">" + punti[i][2]+"</a><br>" + punti[i][5] +"<br />" + punti[i][3] +"<br />" + punti[i][6] + html_email ;
			codice = "marker"+i+"= marker[i];";
			eval (codice);

			codice = "html"+i+"= html[i];";
			eval (codice);

			codice = "GEvent.addListener(marker"+i
				+", \"click\", function(){marker"+i+".openInfoWindowHtml(html"+i+");});";
			eval (codice);
			i--;
		}
		i=0;
		//marker[0].openInfoWindowHtml(html[0]);
		//marker0.openInfoWindowHtml(html0);
	}
}

