 if (GBrowserIsCompatible()) {
      
              // Create our "tiny" marker icon 
		var icon = new GIcon(G_DEFAULT_ICON); 
       // icon.image = "http://www.tropeaholiday.it/975.gif"; 
       // icon.shadow = "http://www.tropeaholiday.it/975.gif"; 
        //icon.iconSize = new GSize(32, 32); 
        //icon.shadowSize = new GSize(32, 32); 
        //icon.iconAnchor = new GPoint(0, 22); 
        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.58359966761715, 16.266632080078125), 10);
      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.');
	  }
	  
	  function spiaggia(x)
	  {
		
		if (x=="roller club")
			{
				avvisa();
				map.setMapType(G_SATELLITE_MAP);
				map.setCenter( new GLatLng(38.64106762215068,15.834914445877075),18);
				  var polygon = new GPolygon([
											  new GLatLng(38.64106762215068,15.834914445877075),
											  new GLatLng(38.64084555166873,15.834844708442688),
											  new GLatLng(38.64072823113634,15.834898352622985),
											  new GLatLng(38.64067795084939,15.834866166114807),
											  new GLatLng(38.64061510044108,15.835193395614624),
											  new GLatLng(38.64092516192065,15.83530604839325),
											  new GLatLng(38.64106762215068,15.834914445877075)],
											  "red",1, 1, "#f06014", 0.5); 
				  map.addOverlay(polygon);
			}	
			
			
	  
	  }
	  
	  
function zoomma()
		{
			map.setZoom(5)
		}
      // add the points    
	  
var point = new GLatLng(38.642031,15.83661);
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; Roller Club &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/Hotel_Villaggio_Roller_Club_Capo_Vaticano.htm\" target=\"_blank\"><img "+
"src=\"http://www.tropeaholiday.it/RollerClub/roller-club-villaggio.jpg\" alt=\"\" width=\"70\" height=\"56\" "+
"border=\"0\" align=\"left\" /></a></p>"+
"      <p class=\"Testo_Itinerari\">Direttamente sul mare, offre la  vera  vacanza , fatta di tanto divertimento, "+
"un po&rsquo; di sport, il giusto relax e tanto, tanto mare.</p>"+
"      <p class=\"Testo_Itinerari\"><strong>"+
"        </strong>"+
"      </p>"+
"      </div></td>"+
"  </tr>"+
"  <tr>"+
"    <td height=\"18\" colspan=\"2\" bgcolor=\"#eeeeee\"><div align=\"center\"> "+
"        <!-- INDIRIZZO PAGINA DETTAGLI -->"+
"        <a href=\"http://www.tropeaholiday.it/Hotel_Villaggio_Roller_Club_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  Roller Club  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");
    }
