
	function loadGoogleMaps(divId, strEndereco, strLabel) 
	{
		$(divId).style.display = 'block';

		if ($(divId).getAttribute('googleMaps') != 'true')
		{
			if (GBrowserIsCompatible()) 
			{
				var map = new GMap2(document.getElementById(divId));
	
				// Passagem do posicionamento inicial: centro de Sousas
				map.setCenter(new GLatLng(-22.88210605292365, -46.96608066558838), 15);
	
				// Inclui controles de zoom e rotação no mapa
				map.addControl(new GSmallMapControl());
				//map.addControl(new GMapTypeControl());
	
				/*Início GeoCoder — localização pelo endereço*/
				var address = strEndereco;
				var geocoder = new GClientGeocoder;
				geocoder.getLatLng(address, function(point) 
				{
					if (point) 
					{
						//map.clearOverlays();
						map.addOverlay(new GMarker(point));
						map.setCenter(point, 15);
	
						// Adiciona o balão de texto
						map.openInfoWindow(map.getCenter(), document.createTextNode(strLabel));
	
					}
				});
				$(divId).setAttribute('googleMaps', 'true');
			}
		}
		else
		{
			GUnload();
			$(divId).innerHTML = '';
			$(divId).style.display = 'none';
			$(divId).setAttribute('googleMaps', 'false');
		}
	}
	

