var map = null;
var geocoder = null;
    
function LoadGMap()
{
	if (GBrowserIsCompatible())
	{
		map = new GMap2(document.getElementById("map"));
		
		map.addControl(new GLargeMapControl());
		map.setCenter(new GLatLng(44.50, 10.969825), 9);
		geocoder = new GClientGeocoder();
	}
}

function ShowAddress(address)
{
	if (geocoder)
	{
		geocoder.getLatLng(address,
			function(point)
			{
				if (point)
				{
					map.setCenter(point, 13);
					var marker = new GMarker(point);
					map.addOverlay(marker);
					marker.openInfoWindowHtml(address);
				}
			});
	}
}
