//<![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.2409, 9.155517), 6, G_HYBRID_MAP);
		//map.openInfoWindow(map.getCenter(),
                   //document.createTextNode("Residence Il Faro...www.residenceilfaro.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("<font size=2>" + nome + " - Capo Testa</font><br><a href='http://" + web + "' ><img src='immagini/capotesta001.jpg' alt='' width='80' border='0'></a>");
  });
  return marker;
}

// Add markers to the map
 var point = new GLatLng(41.2409, 9.155517);
  map.addOverlay(createMarker(point, 0, "Residence Il Faro", "www.residenceilfaro.com"));
      }
    }
    //]]>

