// JavaScript Document
	  
function doPoint(lng, lat, sCont){
  var point = new Array();
  var icon = new GIcon();
  icon.image = "http://www.emporiodascapas.com.br/imagens/lojinha.png";
  icon.shadow = "http://www.emporiodascapas.com.br/imagens/lojinha_sombra.png";
        //icon.image = "http://labs.google.com/ridefinder/images/mm_20_red.png";
        //icon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
  icon.iconSize = new GSize(30, 26);
  icon.shadowSize = new GSize(40, 26);
  icon.iconAnchor = new GPoint(15, 13);
  icon.infoWindowAnchor = new GPoint(5, 1);
  icon.infoShadowAnchor = new GPoint(0, 50);
  var marcador = new GMarker(new GLatLng(lng, lat), icon);
  map.addOverlay(marcador);
  var infoTabs = [new GInfoWindowTab("Endereço", sCont)];
  GEvent.addListener(marcador, "click", function() {
    marcador.openInfoWindowTabsHtml(infoTabs);
  });
}
function localizaMapa(iLat, iLong, iAlt, sCont){
	map.setCenter(new GLatLng(iLat, iLong), iAlt);
	
	var bounds = map.getBounds();
	var southWest = bounds.getSouthWest();
	var northEast = bounds.getNorthEast();
	var lngSpan = northEast.lng() - southWest.lng();
	var latSpan = northEast.lat() - southWest.lat();
  
	doPoint(iLat, iLong, sCont);
}
