
function loadTrasporti() {
	// Funzione per la creazione dei markers per i TRASPORTI
	function createMarkerTrasporti(point,html,img) {
		// Creo le icone
		var icon = new GIcon();
		icon.image = "http://www.ischiatermeofferte.it/img/"+img;
		icon.shadow = "http://www.ischiatermeofferte.it/img/Ombra25-30.png";
		icon.iconSize = new GSize(25, 30);
		icon.shadowSize = new GSize(33, 30);
		icon.iconAnchor = new GPoint(13, 30);
		icon.infoWindowAnchor = new GPoint(5, 1);
		var marker = new GMarker(point, icon);
		GEvent.addListener(marker, "click", function() {
		  marker.openInfoWindowHtml(html);
		});
		return marker;
	}

	// richiedo le coordinate per i TRASPORTI
	var requestTrasporti = GXmlHttp.create();
	requestTrasporti.open("GET", "xml/point.php?lingua=italiano&categoria_h=&comune=&lastmese=&lastanno=&first=&tutteoff=", true);
	requestTrasporti.onreadystatechange = function() {
	if (requestTrasporti.readyState == 4) {
	  //alert(requestTrasporti.responseXML);
	  var xmlDoc = requestTrasporti.responseXML;
	  // leggo gli array dei markers e looppo per leggerli tutti
	  var markers = xmlDoc.documentElement.getElementsByTagName("marker");
	  
	  for (var i = 0; i < markers.length; i++) {
		// leggo gli attributi dei markers
		var lat = parseFloat(markers[i].getAttribute("lat"));
		var lng = parseFloat(markers[i].getAttribute("lng"));
		var point = new GLatLng(lat,lng);
		var html = markers[i].getAttribute("html");
		var img = markers[i].getAttribute("img");
		// Creo il marker
		var marker = createMarkerTrasporti(point,html,img);
		map.addOverlay(marker);
	  }
	}
	}
	requestTrasporti.send(null);
}