/**
 *  Codigo javascript para inicializar el mapa de google maps, adaptado por Marc Garcia [ at ] iws [ dot ] es :º]
 **/

function GLoad() {
 if (GBrowserIsCompatible()) {


  var nLat = 41.569469;
  var nLong = 0.534532;
  
 
  var map = new GMap2(document.getElementById("map"));
  map.addControl(new GSmallMapControl());
  map.addControl(new GMapTypeControl());
  map.setCenter(new GLatLng(nLat, nLong), 10);

  // 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("Viyefruit");
    });
    return marker;
  }

  var point = new GLatLng( nLat, nLong );
  map.addOverlay(createMarker(point, 1));
 };
};


window.onload =  GLoad;
window.onunload = GUnload;
