<!--

	function createMarker(point,icona,messaggio) {
		var marker = new GMarker(point,icona);
		GEvent.addListener(marker, "click", function() {
			marker.openInfoWindowHtml(messaggio);
		});
		return marker;
	}

	var arrCoor=new Array()
	var arrRagSoc

	function load(coordInizLat,coordInizLon,Mapdescr,zoom,create_map) {
		if (GBrowserIsCompatible()) {
			var map = new GMap2(document.getElementById("map"));
			//map.enableScrollWheelZoom()
			map.addControl(new GSmallMapControl());
			map.addControl(new GMapTypeControl());
			if (coordInizLat!=undefined && coordInizLon!=undefined) {
				if (zoom!=undefined) {
					map.setCenter(new GLatLng(coordInizLat,coordInizLon), zoom);
				} else {
					map.setCenter(new GLatLng(coordInizLat,coordInizLon), 16);
				}
			} else {
				map.setCenter(new GLatLng(42.042726,12.392578), 6);
			}
			var icon = new GIcon();
			icon.image = "http://www.coltibuono.com/coltibuono.png";
			icon.iconSize = new GSize(16, 16);
			icon.shadowSize = new GSize(0, 0);
			icon.iconAnchor = new GPoint(6, 20);
			icon.infoWindowAnchor = new GPoint(14, 15);

			var descrizionePunto="<b>"+Mapdescr+"</b>"
			var point_of_Map = new GLatLng(coordInizLat,coordInizLon);
			map.addOverlay(createMarker(point_of_Map,icon,descrizionePunto));
			map.addControl(new GSmallMapControl());
			map.addControl(new GMapTypeControl());
			//if (create_map!=undefined) {
			//	locale="it";
			//	gdir = new GDirections(map, document.getElementById("directions"));
			//	gdir.load("from: " + fromAddress + " to: " + toAddress);
			//}
			gdir = new GDirections(map, document.getElementById("directions"));
		}
	}
	
	function setDirections(fromAddress,toAddress) {
		locale="it";
		gdir.load("from: " + fromAddress + " to: Badia Coltibuono, 53013 Gaiole in Chianti Siena, Toscana" );
	}
	
	function caricaMappa(coordinate,descr_map,zoomm,new_map) {
		noReload=false
		if (new_map==1) {
			load(43.49725,11.451724,descr_map,zoomm,new_map)
		} else {
			noReload=false
			var geocoder = new GClientGeocoder();
			geocoder.getLatLng(coordinate,
				function (point) {
					load(point.lat(),point.lng(),descr_map,zoomm)
				}
			)
		}
	}
//-->

