// JONAS 2009-07-03
// Mostrar Localização (powered by Google Maps API)
// Função para Mostrar conteúdo escondido
function mostraLocalizacao(cod)
{
   var width = 640;
   var height = 480;

   //URL = 'pgi_localizacao_mod.asp'+'?filial='+cod;

	URL = 'pgi_local_'+cod+'.asp';

   window.open(URL,'popup', 'width='+width+', height='+height+', scrollbars=no, status=no');
}

/*var map;
var geocoder;

function initialize() {
      map = new GMap2(document.getElementById("map_canvas"));
      map.setCenter(new GLatLng(-3.739046,-38.547592), 16);
      map.addControl(new GLargeMapControl());
      map.addControl(new GMapTypeControl()); 
      geocoder = new GClientGeocoder();
    }

    // addAddressToMap() is called when the geocoder returns an
    // answer.  It adds a marker to the map with an open info window
    // showing the nicely formatted version of the address and the country code.
    function addAddressToMap(response) {
      map.clearOverlays();
      if (!response || response.Status.code != 200) {
        //  alert("Não encontrado");
      } else {
        place = response.Placemark[0];
        point = new GLatLng(place.Point.coordinates[1],
                            place.Point.coordinates[0]);
        marker = new GMarker(point);
        map.addOverlay(marker);
        marker.openInfoWindowHtml(place.address + '<br>' +
          '<b>Country code:</b> ' + place.AddressDetails.Country.CountryNameCode);
      }
    }

    // showLocation() is called when you click on the Search button
    // in the form.  It geocodes the address entered into the form
    // and adds a marker to the map at that location.
    function showLocation(endereco,numero,cidade) {
      var address = endereco+","+numero+"-"+cidade;
	//alert(address);
      geocoder.getLocations(address, addAddressToMap);
    }*/
