//<![CDATA[

    function load(address) {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map"));
		var geocoder = new GClientGeocoder();
		map.addControl(new GLargeMapControl());
		//map.addControl(new GOverviewMapControl());
		map.addControl(new GMapTypeControl());
        //map.setCenter(new GLatLng(40.8116260533, 9.6542141162), 11);
      }
	  
	  // Creates a marker at the given point with the given number label
		function createMarker(point, infohtml, icon) {
		  var marker = new GMarker(point, icon);
		  GEvent.addListener(marker, "click", function() {
			marker.openInfoWindowHtml(infohtml);
		  });
		  return marker;
		}
		
		 if (geocoder) {
			geocoder.getLatLng(
			  address,
			  function(point) {
				if (!point) {
				  alert(address + " not found");
				} else {
				map.setCenter(point, 11);
				var infohtml = "<img src='../images/logo.jpg' width='225' height='77' /><br><br><span style=\"font-family: Arial, Helvetica, Verdana, sans-serif; font-size: 11px;\">Orvieto Centro Musica <br>via Monte Argentario 5 05019 Orvieto Scalo<br> tel 0763 393.127 cell. 368 35.11.583<br><span class=\"linkgreen\"><a href=\"mailto:info@orvietocentromusica.it\">info@orvietocentromusica.it</a></span></span><br><br>";
				//var point = new GLatLng(40.7402149934, 9.70780518415);
				var marker = createMarker(point, infohtml);
				map.addOverlay(marker);
				marker.openInfoWindowHtml(infohtml);
				}
			  }
			);
		} // end if geocoder
    }

		
    //]]>

