function initialize() {
var message = "Rua Rubem Berta - 279<br />Pituba - Salvador/BA";
  if (GBrowserIsCompatible()) {
	var map = new GMap2(document.getElementById("map"));
	map.setCenter(new GLatLng(-12.998432,-38.452229), 16);
	var myHtml2 = "<p class='titulo' style='color:#cf0000;'><b>RH e Cia</b></p><p class='texto_destaque'>" + message + "</p>";
	map.openInfoWindowHtml(new GLatLng(-12.998432,-38.452229), myHtml2);
	map.setUIToDefault();
	
	// Creates a marker at the given point
	// Clicking the marker will hide it
	function createMarker(latlng, number) {
	  var marker = new GMarker(latlng);
	  marker.value = number;
	  GEvent.addListener(marker,"click", function() {
		var myHtml = "<p class='titulo' style='color:#cf0000;'><b>RH e Cia</b></p><p class='texto_destaque'>" + message + "</p>";
		map.openInfoWindowHtml(latlng, myHtml);
	  });
	  return marker;
	}

	for (var i = 1; i < 4; i++) {
	  var latlng = new GLatLng(-12.998432,-38.452229);
	  map.addOverlay(createMarker(latlng ,i+1));
	}
  }
}

// Cria o marcador de acordo com a lat e long
function createMarker(latlng, number) {
  var marker = new GMarker(latlng);
  marker.value = number;
  GEvent.addListener(marker,"click", function() {
	var myHtml = "<p class='titulo' style='color:#cf0000;'><b>RH e Cia</b></p><p class='texto_destaque'>" + message + "</p>";
	map.openInfoWindowHtml(latlng, myHtml);
  });
  return marker;
}
