    function initialize() {
      if (GBrowserIsCompatible()) {
        map = new GMap2(document.getElementById("map_canvas"));
		geocoder = new GClientGeocoder();
		map.setUIToDefault();
        // Create our "tiny" marker icon
        var blueIcon = new GIcon(G_DEFAULT_ICON);
        blueIcon.image = "/shared/images/placemark.png";
		
		// Set up our GMarkerOptions object
		markerOptions = { icon:blueIcon };
		map.setCenter(new GLatLng(37.4419, -122.1419), 13);
		
		//showAddress(address);
      }
    }

	function getDirections(){
		//directions = new GDirections(map);
		partenza = document.getElementById('partenza').value;
		directions.load("from: "+partenza+" to: "+address);
		return false;
		}



    function showAddress() {
      if (geocoder) {
        geocoder.getLatLng(
          address,
          function(point) {
            if (!point) {
              alert(address + " not found");
            } else {
              map.setCenter(point, 13);
              var marker = new GMarker(point, markerOptions);
              map.addOverlay(marker);
			  addressBalloon = "<div class='baloonMaps'><strong>"+$('#nameNotaioId').val()+"</strong><br />"+address;
			  marker.openInfoWindowHtml(addressBalloon+'<br /><br /><strong>Come raggiungerci</strong><br />Inserisci l\'indirizzo di partenza:<br />(Es. "Piazza Napoli 10, Milano" )<br /><form id="formDirections" action="#"><input type="text" id="partenza"><input type="button" value="VAI" class="buttonGen" id="inviaDirezioni" onclick="getDirections();return false;" /></form></div><div class="cl"></div>');
			  
            }
          }
        );
      }
    }