//<![CDATA[
	
      // ==================================================			Tutorial: http://www.econym.demon.co.uk/googlemaps/
    if (GBrowserIsCompatible()) {

      // ==================================================			Funzione per la creazione dei form "Parti da:" "Arriva da:"
      var gmarkers = [];
      var htmls = [];
      var to_htmls = [];
      var from_htmls = [];
      var i=0;

      function createTabbedMarker(point,html1,html2,label1,label2) {
        var marker = new GMarker(point);
		
		// Parti da qui
        to_htmls[i] = html2 +
           '<form action="http://maps.google.com/maps" method="get" target="_blank">' +
		   '<p>Itinerario: <b>Parti da:</b> - <a href="javascript:fromhere(' + i + ')">Arriva a</a></p>' +
           '<input style="width:200px" type="text" name="saddr" id="saddr" value="" />' +
           '<input style="width:30px" type="submit" value="VAI">' +
           '<input type="hidden" name="daddr" value="' + point.lat() + ',' + point.lng() + 
                  // "(" + name + ")" + 
           '"/>';
        // Arriva qui
        from_htmls[i] = html2 +
           '<form action="http://maps.google.com/maps" method="get"" target="_blank">' +
		   '<p>Itinerario: <a href="javascript:tohere(' + i + ')">Parti da</a> - <b>Arriva a:</b></p>' +
           '<input style="width:200px" type="text" name="daddr" id="daddr" value="" />' +
           '<input style="width:30px" type="submit" value="VAI">' +
           '<input type="hidden" name="saddr" value="' + point.lat() + ',' + point.lng() +
                  // "(" + name + ")" + 
           '"/>';
        // The inactive version of the direction info
        html2 = html2 + '<p>Itinerario: <a href="javascript:tohere('+i+')">Parti da</a> - <a href="javascript:fromhere('+i+')">Arriva a</a></p>';
		
		// Funzione per creare le tab:
        GEvent.addListener(marker, "click", function() {
        	marker.openInfoWindowTabsHtml([new GInfoWindowTab(label1,html1), new GInfoWindowTab(label2,html2)]);
        });
		
        gmarkers[i] = marker;
        htmls[i] = html2;
        i++;
		return marker;
      }

      // functions that open the directions forms
      function tohere(i) { gmarkers[i].openInfoWindowHtml(to_htmls[i]); }
      function fromhere(i) { gmarkers[i].openInfoWindowHtml(from_htmls[i]); }
      // ==================================================
	  
	  // ==================================================			Pannelli di controllo e posizione iniziale della mappa:
      var map = new GMap2(document.getElementById("map"));
      map.addControl(new GLargeMapControl());
	  //map.addControl(new GSmallMapControl());
      map.addControl(new GMapTypeControl());
      map.setCenter(new GLatLng(45.661323,12.259482),16);
	  //map.setMapType(G_HYBRID_MAP);
	  map.setMapType(G_MAP_TYPE);
	  // ==================================================

	  // ==================================================			Creazione set markatori:
      var point = new GLatLng(45.661323,12.259482); // TREVISO
      var marker = createTabbedMarker(point,
									  '<img src="image/hotelaurora.gif"><br><br><p><b>Hotel Aurora **</b><br>Pizzale Ospedale, 23 - 31100 Treviso<br>Tel. +39 0422-406622 - +39 0422-40622 - Fax +39 0422-320382<br>Mail: <a href="mailto:info@hotelauroratreviso.com">info@hotelauroratreviso.com</a> - Web: <a href="http://www.hotelaurora.com/">www.hotelauroratreviso.com</a><p>',
									  '<img src="image/hotelaurora.gif"><br><br><p><b>Hotel Aurora ** - Calcolo Itinerario</b><br>Calcolo itinerario per raggiungere o partire dal nostro Hotel.</p>',
									  'Indirizzo', 'Itinerari');
      map.addOverlay(marker);
	  // ==================================================
      
    }
	  // ==================================================			Avviso incompatibilità browser:
	  else { alert("Siamo spiacenti, non è possibile visualizzare le mappe. Contattare Web Agency Meta Line: info@metaline.it - www.metaline.it"); }
	  // ==================================================

//]]>