 if (GBrowserIsCompatible()) {
      
		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.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]);
			}
			
			//google earth
			if(x==2)
			{
				map.setMapType(G_SATELLITE_3D_MAP );
				map.setCenter(gmarkers[i].getLatLng(),16);
				gmarkers[i].closeInfoWindow();
			}
			
      }
	  
	  
function zoomma()
		{
			map.setZoom(5);
		}
      // add the points    
	  
var point = new GLatLng(38.711567409953624,15.992488861083984);
var descrizione=
"<table width=\"300\" border=\"0\" style=\"border:1px #003366 solid; margin:0x; padding:0px;\">"+
"  <tr>"+
"    <td colspan=\"2\"><img src=\"mappe/sopra.jpg\" width=\"300\" height=\"30\" "+
"style=\"margin:0px; padding:0px; border:0px;\" /></td>"+
"  </tr>"+
"  <tr>"+
"    <td width=\"244\" bgcolor=\"#eeeeee\" class=\"titolo\">Agriturismo &quot; a Pittara &quot; </td>"+
"    <td width=\"52\"><div align=\"center\"></div></td>"+
"  </tr>"+
"  <tr>"+
"    <td colspan=\"2\" valign=\"top\"><div align=\"justify\">"+
"      <p align=\"left\" ><a "+
"href=\"http://www.maema-viaggi.it/Zambrone_A_Pittara.html\" target=\"_blank\"><img "+
"src=\"http://www.maema-viaggi.it/strutture/A%20Pittara/logo.jpg\" alt=\"\" width=\"80\" "+
"height=\"53\" border=\"0\" align=\"left\" /></a></p>"+
"      <p>L'azienda agricola A Pittara e' situata a 180m.s.l.m., sul terrazzo prospiciente   il "+
"mare.E' una fattoria di 100mila mq a pochi minuti dal mare (3.200 m.), vicino   a Tropea (10 km). </p>"+
"      </div></td>"+
"  </tr>"+
"  <tr>"+
"    <td height=\"18\" colspan=\"2\" bgcolor=\"#eeeeee\"><div align=\"center\"> "+
"        <!-- INDIRIZZO PAGINA DETTAGLI -->"+
"        <a href=\"http://www.maema-viaggi.it/Zambrone_A_Pittara.html\" target=\"_blank\"> "+
"        <!-- FINE INDIRIZZO PAGINA DETTAGLI -->"+
"    <span>Dettagli &amp; Prezzi </span></a></div></td>"+
"  </tr>"+
"</table>";
var marker = createMarker(point,"Agriturismo a Pittara ",descrizione);
map.addOverlay(marker);

var point = new GLatLng(38.65125698401901,15.889331102371215);
carattere=String.fromCharCode(242);

var descrizione=
"<table width=\"300\" border=\"0\" style=\"border:1px #003366 solid; margin:0x; padding:0px;\">"+
"  <tr>"+
"    <td colspan=\"2\"><img src=\"mappe/sopra.jpg\" width=\"300\" height=\"30\" "+
"style=\"margin:0px; padding:0px; border:0px;\" /></td>"+
"  </tr>"+
"  <tr>"+
"    <td width=\"292\" bgcolor=\"#eeeeee\" class=\"titolo\">Agriturismo &quot; Il Canto di Kokopelli &quot;<br "+
"/></td>"+
"    <td width=\"4\"><div align=\"center\"></div></td>"+
"  </tr>"+
"  <tr>"+
"    <td colspan=\"2\" valign=\"top\"><div align=\"justify\">"+
"      <p align=\"left\" ><a "+
"href=\"http://www.maema-viaggi.it/Brattir"+carattere+"_Il_Canto_di_Kokopelli.html\" target=\"_blank\"><img "+
"src=\"http://www.maema-viaggi.it/strutture/Il%20Canto%20di%20Kokopelli/logo.jpg\" alt=\"\" width=\"70\" height=\"56\" border=\"0\" "+
"align=\"left\" /></a></p>"+
"      <p>Il Villaggio ecologico Agrituristico è un luogo unico per una vacanza originale   in "+
"case costruite con la terra cruda (bresti) e pietre, risalenti ai primi anni   dell'800. </p>"+
"      </div></td>"+
"  </tr>"+
"  <tr>"+
"    <td height=\"18\" colspan=\"2\" bgcolor=\"#eeeeee\"><div align=\"center\"> "+
"        <!-- INDIRIZZO PAGINA DETTAGLI -->"+
"        <a href=\"http://www.maema-viaggi.it/Brattir"+carattere+"_Il_Canto_di_Kokopelli.html\" "+
"target=\"_blank\"> "+
"        <!-- FINE INDIRIZZO PAGINA DETTAGLI -->"+
"    <span >Dettagli &amp; Prezzi </span></a></div></td>"+
"  </tr>"+
"</table>";
var marker = createMarker(point,"Agriturismo  Il Canto di Kokopelli ",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");
    }
