 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.710274,15.969036),16);
				  var polygon = new GPolygon([
											  new GLatLng(38.710274,15.969036),
											  new GLatLng(38.710207,15.969513),
											  new GLatLng(38.709885,15.969347),
											  new GLatLng(38.710014,15.968885),
											  new GLatLng(38.710274,15.969036)],											  
											  "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.70987629535544,15.96960961818695);
var descrizione=
"<table width=\"300\" border=\"0\" style=\"border:1px #003366 solid; margin:0x; padding:0px;\">"+
"  <tr>"+
"    <td height=\"32\"><img src=\"http://www.tropeaholiday.it/sopra.jpg\" width=\"300\" height=\"30\" style="+
"\"margin:0px; padding:0px; border:0px;\" /></td>"+
"  </tr>"+
"  <tr>"+
"    <td bgcolor=\"#eeeeee\" class=\"titolo\"><h1 class=\"titolo\">Residence Blu Tropical <img src="+
"\"immagini_stelle/star1.gif\" width=\"12\" height=\"12\" /><img src=\"immagini_stelle/star1.gif\" width=\"12\" "+
"height=\"12\" /><img src=\"immagini_stelle/star1.gif\" width=\"12\" height=\"12\" /></h1>"+
"    <div align=\"center\"><a href=\"http://www.tropeaholiday.it/residenza-i-gioielli-tropea.php\" target=\"_blank"+
"\"></a></div></td>"+
"  </tr>"+
"  <tr>"+
"    <td valign=\"top\"><div align=\"justify\">"+
"      <p align=\"left\" class=\"Testo_Itinerari\"><a href=\"residence-blu-tropical-zambrone.htm\"><img src="+
"\"residence-blu-tropical/residence1.jpg\" alt=\"\" width=\"70\" height=\"56\" border=\"0\" align=\"left\" "+
"/></a></p>"+
"      <p align=\"justify\" class=\"Testo_Itinerari\">Il Residence Blu Tropical &egrave; un piccolo "+
"          angolo di paradiso,situato nella fantastica Costa degli Dei, il complesso "+
"          &egrave; formato da una serie di villette immerse in una flora mediterranea "+
"          tropicale, ai bordi dell&#8217;incantevole <strong><a href=\"foto-zambrone/zambrone-coste-mare.jpg\" "+
"rel=\"lightbox[galleria]\">spiaggia "+
"        di Zambrone</a></strong>.</div></td>"+
"  </tr>"+
"  <tr>"+
"    <td height=\"18\" bgcolor=\"#eeeeee\"><div align=\"center\"> "+
"        <!-- INDIRIZZO PAGINA DETTAGLI -->"+
"        <a href=\"residence-blu-tropical-zambrone.htm\" target=\"_blank\"> "+
"        <!-- FINE INDIRIZZO PAGINA DETTAGLI -->"+
"    <span class=\"Testo_Itinerari\">Dettagli &amp; Foto </span></a></div></td>"+
"  </tr>"+
"</table>";
var marker = createMarker(point,"Residence Blu Tropical",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");
    }
