    //<![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), 12);
			
			// 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, 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="background-color:#AB9D7A; width:300px; text-align:left; margin-top:0px; height:120px; font-family:verdana; font-size:11px; margin-left:0px;">'+'<p style="text-align:left; margin:0px;"><strong>Hotel Costa del Monte</strong><br /><strong>Indirizzo:</strong> '+ label+'<br /><strong>Tel.</strong> '+ tel+'  - <strong>Fax</strong>: '+ fax+'<br /><strong>E-mail</strong>: <a href="mailto:'+ email+'"> '+ email+'</p></div>');
  	});
  
  	return marker;
}

function createMarker1(point, label) 
{
	// Variabile marker
	var marker = new GMarker(point);
  	
	// Crea listener per il click sull'oggetto
	GEvent.addListener(marker, "click", function() 
	{
    	marker.openInfoWindowHtml('<div style="background-color:#AB9D7A; width:230px; text-align:left; margin-top:5px; height:90px; font-family:verdana; font-size:11px; margin-left:0px;">'+'<p style="text-align:left; margin:0px"><strong>Uscita Autostrada Roma-Napoli</strong><br /> '+ label+'<br />proseguire verso Rocca Priora.</p></div>');
  	});
  
  	return marker;
}

function createMarker2(point, label) 
{
	// Variabile marker
	var marker = new GMarker(point);
  	
	// Crea listener per il click sull'oggetto
	GEvent.addListener(marker, "click", function() 
	{
    	marker.openInfoWindowHtml('<div style="background-color:#AB9D7A; width:250px; text-align:left; margin-top:5px; height:90px; font-family:verdana; font-size:12px; margin-left:0px;">'+'<p style="text-align:left; margin:0px"><strong>Fashion District Outlet Valmontone<br />Via della Pace, Località Pascolaro<br />00038 Valmontone</strong></p></div>');
  	});
  
  	return marker;
}

function createMarker3(point, label) 
{
	// Variabile marker
	var marker = new GMarker(point);
  	
	// Crea listener per il click sull'oggetto
	GEvent.addListener(marker, "click", function() 
	{
    	marker.openInfoWindowHtml('<div style="background-color:#AB9D7A; width:300px; text-align:left; margin-top:0px; height:120px; font-family:verdana; font-size:11px; margin-left:0px;">'+'<p style="text-align:left; margin:0px"><strong>Autostrada A1 - Diramazione Roma Sud<br />Distanza da Hotel Costa del Monte: 12 km <br />Tempi di percorrenza: circa 15min</strong></p></div>');
  	});
  
  	return marker;
}

function showAddress(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, 10);
			
			// Crea il marker
			map.addOverlay(createMarker(point, address,tel,fax,email));
      	}
    });
}
    //]]>
 
 function showAddress1(address) 
{
	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, 10);
			
			// Crea il marker
			map.addOverlay(createMarker1(point, address));
      	}
    });
}

 function showAddress2(address) 
{
	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, 10);
			
			// Crea il marker
			map.addOverlay(createMarker2(point, address));
      	}
    });
}

 function showAddress3(address) 
{
	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, 10);
			
			// Crea il marker
			map.addOverlay(createMarker3(point, address));
      	}
    });
}

