    //<![CDATA[

	var map = null;
	var geocoder = null;

    function load() 
	{
    	if (GBrowserIsCompatible()) 
	  	{
        	// Crea mappa
			map = new GMap2(document.getElementById("map"));
        	
			// Creo GeoCoder Max 1.6 query/sec
			geocoder = new GClientGeocoder();
		
			// Imposta centro su Roma (LAT 41.90, LONG 12.49)
			map.setCenter(new GLatLng(41.90, 12.49), 5);
			
			// Visualizza controlli - TIPO MAPPA
			map.addControl(new GMapTypeControl());
			
			// Visualizza controlli - ZOOM GRANDE
			map.addControl(new GLargeMapControl());

      	}
    }

// Crea il marker con la label passata come parametro
function createMarker(point, descrizione, label, tel,fax,email) 
{
	// Variabile marker
	var marker = new GMarker(point);
  	
	// Crea listener per il click sull'oggetto
	GEvent.addListener(marker, "click", function() 
	{
    	marker.openInfoWindowHtml('<div style="width:270px; text-align:center; margin-top:5px; height:90px; font-family:verdana; font-size:11px;">'+'<p style="text-align:center; margin:0px">'+ descrizione+''+ label+'<br />'+ tel+' '+ fax+'<br /><a href="mailto:'+ email+'"> '+ email+'</p></div>');
  	});
  
  	return marker;
}
function showAddress(descrizione,address,tel,fax,email) 
{
	geocoder.getLatLng(address,
    function(point) 
	{
    	if (!point) 
		{
        	// Indirizzo non trovato, cerca nel database.
			alert(address + " non trovato!");
      	} 
		else 
		{
        	// Indirizzo trovato, centra la mappa ;)
			map.setCenter(point, 13);
			
			// Crea il marker
			map.addOverlay(createMarker(point, descrizione, address, tel,fax,email));
      	}
    });
}
    //]]>
