//<![CDATA[
    function load() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map"));
		map.addControl(new GSmallMapControl());
		map.addControl(new GMapTypeControl());

        map.setCenter(new GLatLng(41.21, 9.41), 14);
		map.openInfoWindow(map.getCenter(),
                   document.createTextNode("Arcipelago di La Maddalena...www.lamaddalena.com"));

// Create a base icon for all of our markers that specifies the
// shadow, icon dimensions, etc.
var baseIcon = new GIcon();
baseIcon.shadow = "http://www.google.com/mapfiles/shadow50.png";
baseIcon.iconSize = new GSize(20, 34);
baseIcon.shadowSize = new GSize(37, 34);
baseIcon.iconAnchor = new GPoint(9, 34);
baseIcon.infoWindowAnchor = new GPoint(9, 2);
baseIcon.infoShadowAnchor = new GPoint(18, 25);

// Creates a marker whose info window displays the letter corresponding
// to the given index.
function createMarker(point, index, nome, web) {
  // Create a lettered icon for this point using our icon class
  var letter = String.fromCharCode("A".charCodeAt(0) + index);
  var icon = new GIcon(baseIcon);
  icon.image = "http://www.google.com/mapfiles/marker" + letter + ".png";
  var marker = new GMarker(point, icon);

  GEvent.addListener(marker, "click", function() {
    marker.openInfoWindowHtml("" + nome + "<br><font size='2' face='Verdana'><a href='/out.php?web=http://" + web + "' target='_blank'>" + web + "</a></font>");
  });
  return marker;
}

// Add markers to the map
 var point = new GLatLng(41.212311,9.405166);
  map.addOverlay(createMarker(point, 0, "Proloco La maddalena", "www.prolocolamaddalena.it"));
 var point = new GLatLng(41.212771,9.404501);
  map.addOverlay(createMarker(point, 1, "Tirrena Immobiliare", "www.tirrenaimmobiliare.it"));
 var point = new GLatLng(41.212860,9.406604);
  map.addOverlay(createMarker(point, 2, "Municipio", ""));
  var point = new GLatLng(41.212101,9.405273);
  map.addOverlay(createMarker(point, 3, "Ristorante Al Mare", "www.ristorantealmare.com"));
  var point = new GLatLng(41.213086,9.405627);
  map.addOverlay(createMarker(point, 4, "Parrocchia S.M. Maddalena", ""));
    var point = new GLatLng(41.210777,9.400488);
  map.addOverlay(createMarker(point, 5, "Ente Parco Nazionale", "www.lamaddalenapark.it"));
      }
    }
    //]]>