 if (GBrowserIsCompatible()) {
              // Create our "tiny" marker icon 
		var icon = new GIcon(G_DEFAULT_ICON); 
        icon.infoWindowAnchor = new GPoint(11, 1); 

	  // this variable will collect the html which will eventualkly be placed in the side_bar
      var side_bar_html = "";
    
      // arrays to hold copies of the markers and html used by the side_bar
      // because the function closure trick doesnt work there
      var gmarkers = [];
      var htmls = [];
      var i = 0;

      // A function to create the marker and set up the event window
      function createMarker(point,name,html) {
        var marker = new GMarker(point,icon);
        GEvent.addListener(marker, "click", function() {
          marker.openInfoWindowHtml(html);

        });
        // save the info we need to use later for the side_bar
        gmarkers[i] = marker;
        htmls[i] = html;
        // add a line to the side_bar html
        //side_bar_html += '<a href="javascript:myclick(' + i + ',0)" onMouseOver="myclick('+i+',0)" >' + name + '</a>';
        i++;
        return marker;
      }

      // This function picks up the click and opens the corresponding info window

      // create the map
      var map = new GMap2(document.getElementById("map"));
      map.addControl(new GLargeMapControl());
	  map.addControl(new GHierarchicalMapTypeControl());
      map.setCenter(new GLatLng(38.675233,15.890501), 10); /* INSERIRE QUI LE COORDINATE DEL PUNTO DA APRIRE */
      map.setMapType(G_NORMAL_MAP);
//      map.enableContinuousZoom();
      map.enableDoubleClickZoom();
		
		function myclick(i,x) {
		//map.setZoom(20);
			if (x==0) 
			{
			     map.setMapType(G_NORMAL_MAP);

				map.setCenter(gmarkers[i].getLatLng(),12);
        		gmarkers[i].openInfoWindowHtml(htmls[i]);
			}
			
			if(x==1)
			{
				map.setMapType(G_SATELLITE_MAP);
				map.setCenter(gmarkers[i].getLatLng(),18);
        		//gmarkers[i].openInfoWindowHtml(htmls[i]);
			}
			
      }
	  
	  function avvisa()
	  {
		  alert('L\'area colorata indica la giusta posizione del lido privato della struttura. I limiti effettivi e la grandezza possono differire da quelli reali.');
	  }
	  
	  /* INSERIRE QUI LE 5 (O PIł) COORDINATE DELLA SPIAGGIA */
	  function spiaggia()
	  {
				avvisa();
				map.setMapType(G_SATELLITE_MAP);
				map.setCenter( new GLatLng(38.612218,15.846813),16);
				  var polygon = new GPolygon([
											  new GLatLng(38.612218,15.846813),
											  new GLatLng(38.612339,15.847033),
											  new GLatLng(38.611593,15.84773),
											  new GLatLng(38.611518,15.847489),
											  new GLatLng(38.612218,15.846813)],											  
											  "red",1, 1, "#f06014", 0.5); 
				  map.addOverlay(polygon);	  
	  }
	  
	  
function zoomma()
		{
			map.setZoom(5)
		}
    
/* 	INSERIRE QUI IL PUNTO CON LA FINESTRA DA APRIRE */
var point = new GLatLng(38.612398082684145,15.84778368473053);
var descrizione=
"<table width=\"300\" border=\"0\" style=\"border:1px #003366 solid; margin:0x; padding:0px;\">"+
"  <tr>"+
"    <td colspan=\"2\"><img src=\"http://www.tropeaholiday.it/sopra.jpg\" width=\"300\" height=\"30\" "+
"style=\"margin:0px; padding:0px; border:0px;\" /></td>"+
"  </tr>"+
"  <tr>"+
"    <td width=\"253\" bgcolor=\"#eeeeee\" class=\"titolo\">Villaggio &quot; Santa Maria &quot;</td>"+
"    <td width=\"43\"><div align=\"center\"><img src=\"http://www.tropeaholiday.it/immagini_stelle/star.gif\" "+
"width=\"12\" height=\"12\" /><img src=\"http://www.tropeaholiday.it/immagini_stelle/star.gif\" width=\"12\" "+
"height=\"12\" /><img src=\"http://www.tropeaholiday.it/immagini_stelle/star.gif\" width=\"12\" height=\"12\" "+
"/></div></td>"+
"  </tr>"+
"  <tr>"+
"    <td colspan=\"2\" valign=\"top\"><div align=\"justify\">"+
"      <p align=\"left\" class=\"Testo_Itinerari\"><a "+
"href=\"http://www.tropeaholiday.it/Villaggio_Santa%20Maria_Capo_Vaticano.htm\" target=\"_blank\"><img "+
"src=\"http://www.tropeaholiday.it/foto_presentazione_strutture/piscina_s.maria.jpg\" alt=\"\" width=\"70\" "+
"height=\"56\" border=\"0\" align=\"left\" /></a></p>"+
"      <p class=\"Testo_Itinerari\">Immerso in 37.000 metri quadri di verde a terrazze sul mare, in una baia tra le   pił "+
"suggestive che collegano Tropea a Capo Vaticano. </p>"+
"      <p class=\"Testo_Itinerari\"><strong><br />"+
"        </strong><br />"+
"      </p>"+
"      </div></td>"+
"  </tr>"+
"  <tr>"+
"    <td height=\"18\" colspan=\"2\" bgcolor=\"#eeeeee\"><div align=\"center\"> "+
"        <!-- INDIRIZZO PAGINA DETTAGLI -->"+
"        <a href=\"http://www.tropeaholiday.it/Villaggio_Santa%20Maria_Capo_Vaticano.htm\" target=\"_blank\"> "+
"        <!-- FINE INDIRIZZO PAGINA DETTAGLI -->"+
"    <span class=\"Testo_Itinerari\">Dettagli &amp; Prezzi </span></a></div></td>"+
"  </tr>"+
"</table>";
var marker = createMarker(point,"Villaggio Santa Maria 3 stelle",descrizione);
map.addOverlay(marker);

      // put the assembled side_bar_html contents into the side_bar div
      //document.getElementById("side_bar").innerHTML = side_bar_html;
      
    }

    else {
      alert("Sorry, the Google Maps API is not compatible with this browser");
    }
