document.write('<script type="text/javascript" src="http://maps.google.com/maps?file=api&amp;v=2&amp;sensor=true&amp;key=ABQIAAAA2NqFAfMG12hF4jF7JkIvohQGDpwGqgrrFuTm97ymTmAHQaq8wBSIfecB8fjqS6A3AJEKxDyHPnX_Zw"></script>');

var map = null;
var geocoder = null;

function showAddress(address) {
	if (GBrowserIsCompatible()) 
	{
		map = new GMap2( document.getElementById('mapa') );
		
		map.addControl( new GSmallMapControl() );
		
		map.addControl( new GMapTypeControl() );
		
		geocoder = new GClientGeocoder();
	}
	
	if (geocoder)
	{
		geocoder.getLatLng(
			address,
			function(point) 
			{
				if (!point) 
				{
					alert('Nenhum resultado encontrado para \'' + address + '\'.');
				} 
				else 
				{
					map.setCenter(point, 15);
					var marker = new GMarker(point);
					map.addOverlay(marker);
					marker.openInfoWindowHtml('<br /><strong>' + address + '</strong>');
				}
			}
		);
	}
}