//<![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,name,html1,html2,label1,label2) {
        var marker = new GMarker(point);
		
        // The info window version with the "to here" form open
        to_htmls[i] = html2 + '<p><br>Check your itinerary: <b>Leave from:</b> - <a href="javascript:fromhere(' + i + ')">Go to:</a></p>' +
           '<p><br>Leave from:<form action="http://maps.google.com/maps" method="get" target="_blank"></p>' +
           '<input type="text" SIZE=25 MAXLENGTH=40 name="saddr" id="saddr" value="" />' +
           '<INPUT value="Calcola Percorso" TYPE="SUBMIT">' +
           '<input type="hidden" name="daddr" value="' + point.lat() + ',' + point.lng() + 
                  // "(" + name + ")" + 
           '"/>';
        // The info window version with the "to here" form open
        from_htmls[i] = html2 + '<p><br>Check your itinerary: <a href="javascript:tohere(' + i + ')">Leave from:</a> - <b>Go to:</b></p>' +
           '<p><br>Go to:<form action="http://maps.google.com/maps" method="get"" target="_blank"></p>' +
           '<input type="text" SIZE=25 MAXLENGTH=40 name="daddr" id="daddr" value="" />' +
           '<INPUT value="Calcola Percorso" TYPE="SUBMIT">' +
           '<input type="hidden" name="saddr" value="' + point.lat() + ',' + point.lng() +
                  // "(" + name + ")" + 
           '"/>';
        // The inactive version of the direction info
        html2 = html2 + '<p><br>Check your itinerary: <a href="javascript:tohere('+i+')">Leave from:</a> - <a href="javascript:fromhere('+i+')">Go to:</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 GMapTypeControl());
      map.setCenter(new GLatLng(45.630935,12.576299),13);
	  // ==================================================

	  // ==================================================			Creazione set markatori:
      var point = new GLatLng(45.630800,12.576000)
      var marker = createTabbedMarker(point,'<p>Hotel Forte del 48</p>','<p><img alt="hotel san donā di piave, hotel san donā, albergo san donā, ristorante san donā di piave" src="../image/mappa_logo.gif" align="absmiddle" alt="hotel forte del 48, san donā di piave, albergo 3 stelle"> Hotel Forte del 48 - Albergo a 3 Stelle ***<br><br>30027 - San Donā di Piave (VE)<br>Tel. 0421-44018 oppure 0421-44244 - Fax 0421-44244<br><a href="www.hotelfortedel48.it">www.hotelfortedel48.it</a> - <a href="mailto:info@hotelfortedel48.com">info@hotelfortedel48.com</a></p>', '<p>Check your itinerary to reach or leave<br>from Hotel Forte del 48.</p>', 'Address', 'Itinerary')
      map.addOverlay(marker);
	  // ==================================================
      
	  // ==================================================			Inserimento della Mappa di Controllo:
      //map.addControl(new GOverviewMapControl(new GSize(80,80)));

      //  A function to adjust the positioning of the overview
      //function positionOverview(x,y) {
      //  var omap=document.getElementById("map_overview");
      //  omap.style.left = x+"px";
      //  omap.style.top = y+"px";
        
        // Restyling
      //  omap.firstChild.style.border = "1px solid gray";
      //  omap.firstChild.firstChild.style.left="4px";
      //  omap.firstChild.firstChild.style.top="4px";
      //  omap.firstChild.firstChild.style.width="70px";
      //  omap.firstChild.firstChild.style.height="70px";
      //}

      // Cause the overview to be positioned AFTER IE sets its initial position
      //setTimeout("positionOverview(408,218)",1);
	  // ==================================================

    }
	  // ==================================================			Avviso incompatibilitā browser:
	  else { alert("Siamo spiacenti, non č possibile visualizzare le mappe. Contattare Web Agency Meta Line: info@metaline.it - www.metaline.it"); }
	  // ==================================================

//]]>
