//<![CDATA[

    function load() {
      if (GBrowserIsCompatible()) {
	 var map = new GMap2(document.getElementById("map"));
     map.addControl(new GSmallMapControl());
     map.setCenter(new GLatLng(45.484447,12.189674), 12);

        // Create a base icon for all of our markers that specifies the
        // shadow, icon dimensions, etc.
        var baseIcon = new GIcon();
        /*baseIcon.shadow = "http://www.fabrispiumini.linkness.com/images/shadow.png";*/
		baseIcon.shadow = "http://www.fabrispiumini.com/images/shadow.png";
        baseIcon.iconSize = new GSize(23, 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) {
          // 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.fabrispiumini.linkness.com/images/fabris_map.png";*/
		  icon.image = "http://www.fabrispiumini.com/images/fabris_map.png";
          var marker = new GMarker(point, icon);

          GEvent.addListener(marker, "click", function() {
            marker.openInfoWindowHtml("<h3 style='margin: 0px 0px 0px 5px;'>FABRIS PIUMINI<\/h3><p style='margin: 5px 0px 10px 5px;'> Via Miranese, 448 - 30174 Chirignago (VE)<br />Tel. +39.041.912018 - Fax +39.041.5441444<br /><strong>info@fabrispiumini.com</strong><\/p>");
          });
          return marker;
        }

        // Add 10 markers to the map at random locations
        var bounds = map.getBounds();
        var southWest = bounds.getSouthWest();
        var northEast = bounds.getNorthEast();
        var lngSpan = northEast.lng() - southWest.lng();
        var latSpan = northEast.lat() - southWest.lat();
        for (var i = 0; i < 1; i++) {
             var point = new GLatLng(45.484447,12.189674);
             map.addOverlay(createMarker(point, i + 1));
            }
       }
    }

    //]]>
