	function load() {
		var debug = false;
		if (GBrowserIsCompatible()) {
	        var map = new GMap2(document.getElementById("map"));

			if (debug == true) {
				GEvent.addListener(map, "moveend", function() {
				  var center = map.getCenter();
				  var zoom	 = map.getZoom();
				  document.getElementById("message").innerHTML = 'Coords: ' + center.toString() + ' Zoom: ' + zoom.toString();
				});
			}

			map.addControl(new GLargeMapControl());
			map.addControl(new GMapTypeControl());
	        map.setCenter(new GLatLng(40.63515708471375, 0.28132081031799316), 17);

			// Create our "tiny" marker icon
			var icon = new GIcon();
			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(12, 20);
			icon.shadowSize = new GSize(22, 20);
			icon.iconAnchor = new GPoint(6, 20);
			icon.infoWindowAnchor = new GPoint(5, 1);
						
			// Creates a marker at the given point with the given number label
			function createMarker(point, number) {
			  var marker = new GMarker(point);
			  GEvent.addListener(marker, "click", function() {
			    marker.openInfoWindowHtml("<strong>" + oficina[number]['name'] + "</strong><br />" + oficina[number]['address']);
			  });
			  return marker;
			}


			// Add 10 markers to the map at random locations
			var bounds = map.getBounds();
			for (var i = 0; i < oficina.length; i++) {
				var position = oficina[i]['pos'];
				var point = new GLatLng(position[0],position[1]);
				map.addOverlay(createMarker(point, i));
			}
		}
    }
