
 function load() {

     if (GBrowserIsCompatible()) { 



      // A function to create the marker and set up the event window

      // Dont try to unroll this function. It has to be here for the function closure

      // Each instance of the function preserves the contends of a different instance

      // of the "marker" and "html" variables which will be needed later when the event triggers.    

      function createMarker(point,html) {

        var marker = new GMarker(point);

        GEvent.addListener(marker, "click", function() {

          marker.openInfoWindowHtml(html);

        });

        return marker;

      }



      // Display the map, with some controls and set the initial location 

      var map = new GMap2(document.getElementById("map"));

      map.addControl(new GLargeMapControl());

      map.setCenter(new GLatLng(42.878637259042854, -8.541269302368164), 14);

	  map.setMapType(G_HYBRID_MAP);

    

      // Set up three markers with info windows 

    

      var point = new GLatLng(42.87701618024782,-8.536469489336014);

      var marker = createMarker(point,'<div align="center" style="width:230px; padding-left:10px; padding-bottom:10px; color:#000;"><img src="images/fachada_seminario.jpg" alt="Seminario Menor"/></div><div style="clear:both"><p style="font-size:10px;">Albergue de Peregrinos Seminario Menor La Asunción<br/>Avda. Quiroga Palacios, 2. A<br/>15703 Santiago De Compostela<br/>Tfno-Fax: +34 881 031 768</p></div>')

      map.addOverlay(marker);

	  

	  var point = new GLatLng(42.880531985248304,-8.545340895652771);

	   var marker = createMarker(point,'<div align="center" style="width:230px; padding-left:10px; padding-bottom:10px; color:#000;"><p style="font-size:13px;">Catedral de Santiago de Compostela</p></div>')

      map.addOverlay(marker);



      }

    

    // display a warning if the browser was not compatible

    else {

      alert("Sorry, the Google Maps API is not compatible with this browser");

    }

	}



    // This Javascript is based on code provided by the

    // Blackpool Community Church Javascript Team

    // http://www.commchurch.freeserve.co.uk/   

    // http://www.econym.demon.co.uk/googlemaps/



    //]]>

