function createInfoMarker(point, address) {
   var marker = new GMarker(point);
   GEvent.addListener(marker, "click",
      function() {
         marker.openInfoWindowHtml(address);
      }
   );
  return marker;
}

function load() {
	if (GBrowserIsCompatible()) {
		var map = new GMap2(document.getElementById("Gmap"));
        map.setCenter(new GLatLng(38.7155, -9.1368), 14);
		map.addControl(new GLargeMapControl());	
		map.enableScrollWheelZoom();
		
		var point = new GPoint(-9.13783,38.71177);
		
		var address = "<p style=\"font-family: 'Trebuchet MS';font-size: 12px;\"><b>Albergaria Residencial Insulana</b><br />Rua da Assunção, 52 2º</p>";
		
		var marker = createInfoMarker(point, address);
		map.addOverlay(marker);
		marker.openInfoWindowHtml(address);
		
		var pointCastelo = new GPoint(-9.13300,38.71377);
		var addressCastelo = "<p style=\"font-family: 'Trebuchet MS';font-size: 12px;\"><b>Castelo de São Jorge/Castle of São Jorge</b><br/>Info:<br/><a href=\"http://pt.wikipedia.org/wiki/Castelo_de_sao_jorge\" target=\"_blank\">Português</a><br/><a href=\"http://en.wikipedia.org/wiki/Castle_of_S%C3%A3o_Jorge\" target=\"_blank\">English</a></p>"
		var markerCastelo = createInfoMarker(pointCastelo, addressCastelo);
		map.addOverlay(markerCastelo);
		
		var pointComercio = new GPoint(-9.13680,38.70770);
		var addressComercio = "<p style=\"font-family: 'Trebuchet MS';font-size: 12px;\"><b>Praça do Comércio</b><br/>Info:<br/><a href=\"http://pt.wikipedia.org/wiki/Pra%C3%A7a_do_com%C3%A9rcio\" target=\"_blank\">Português</a><br/><a href=\"http://en.wikipedia.org/wiki/Pra%C3%A7a_do_Com%C3%A9rcio\" target=\"_blank\">English</a></p>"
		var markerComercio = createInfoMarker(pointComercio, addressComercio);
		map.addOverlay(markerComercio);
		
		var pointTejo = new GPoint(-9.13680,38.70600);
		var addressTejo = "<p style=\"font-family: 'Trebuchet MS';font-size: 12px;\"><b>Rio Tejo/Tagus river</b><br/>Info:<br/><a href=\"http://pt.wikipedia.org/wiki/Rio_tejo\" target=\"_blank\">Português</a><br/><a href=\"http://en.wikipedia.org/wiki/Tagus\" target=\"_blank\">English</a></p>"
		var markerTejo = createInfoMarker(pointTejo, addressTejo);
		map.addOverlay(markerTejo);
		
		var pointBairro = new GPoint(-9.14300,38.71177);
		var addressBairro = "<p style=\"font-family: 'Trebuchet MS';font-size: 12px;\"><b>Bairro Alto</b><br/>Info:<br/><a href=\"http://pt.wikipedia.org/wiki/Bairro_alto\" target=\"_blank\">Português</a><br/><a href=\"http://en.wikipedia.org/wiki/Bairro_Alto\" target=\"_blank\">English</a></p>"
		var markerBairro = createInfoMarker(pointBairro, addressBairro);
		map.addOverlay(markerBairro);
		
		var pointAlfama = new GPoint(-9.12950,38.71140);
		var addressAlfama = "<p style=\"font-family: 'Trebuchet MS';font-size: 12px;\"><b>Alfama</b><br/>Info:<br/><a href=\"http://pt.wikipedia.org/wiki/Alfama\" target=\"_blank\">Português</a><br/><a href=\"http://en.wikipedia.org/wiki/Alfama\" target=\"_blank\">English</a></p>"
		var markerAlfama = createInfoMarker(pointAlfama, addressAlfama);
		map.addOverlay(markerAlfama);
    }
}