 //<![CDATA[
    
// TOMADO DEL EJEMPLO DE GOOGLE (ICONOS CON LETRAS)

    function load() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map"));
        map.addControl(new GLargeMapControl());
        map.addControl(new GMapTypeControl());
        map.addControl(new GOverviewMapControl());
        map.addMapType(G_PHYSICAL_MAP) ;
        map.enableScrollWheelZoom();
        map.addControl(new DragZoomControl());
        map.setCenter(new GLatLng(27.947099367319762, -15.36712646484375),10);            

        // Create a base icon for all of our markers that specifies the
        // shadow, icon dimensions, etc.
        var baseIcon = new GIcon();
        baseIcon.shadow = "http://www.google.com/mapfiles/shadow50.png";
        baseIcon.iconSize = new GSize(20, 34);
        baseIcon.shadowSize = new GSize(37, 34);
        baseIcon.iconAnchor = new GPoint(9, 34);
        baseIcon.infoWindowAnchor = new GPoint(9, 2);
        baseIcon.infoShadowAnchor = new GPoint(18, 25);

        // Creates a marker whose info window displays the letter corresponding
        // to the given index.
        function createMarker(point, index) {
          // Create a lettered icon for this point using our icon class
          var letter = String.fromCharCode("A".charCodeAt(0) + index);
          var icon = new GIcon(baseIcon);
          icon.image = "http://www.google.com/mapfiles/marker" + letter + ".png";
          var marker = new GMarker(point, icon); 
          marcador = marker 
    

        return marker;
      }
      
      
// FIN  TOMADO DEL EJEMPLO DE GOOGLE (ICONOS CON LETRAS)
   
      
 // FUNCIÓN  TOMADA DEL CALLEJERO  PARA PROBAR SI FUNCIONARÍA EL BUSCAR CON LOS NOMBRES CON LOS  MARGEN DE LA DERECHA
      
  // findLocation2() is used to enter lat, long pairs into the form.
    function findLocation2(lat, long, text) {
      document.forms[0].q.value = lat + "," + long;
      map.clearOverlays();
      point = new GLatLng(lat, long);
      marker = new GMarker(point);
 //  map.addOverlay(marker);
 //se añade
 //   GEvent.addListener(marker, "click", function() {
 //   marker.openInfoWindowHtml(text);
 //  });
 //fin se añade
      marker.openInfoWindowHtml(text);
    }
    
  // FIN DEL  FUNCIÓN  TOMADA DEL CALLEJERO
       
  
    
//   L O C A L I Z A C I O N E S
   
  for (var i = 0; i <7; i++) {      
   
    ( i = 0 ) 
       point = new GLatLng(27.950738722228763,-15.567626953125);
        map.addOverlay(createMarker(point,i));

 GEvent.addListener(marcador, "click", function() {   
          map.openInfoWindowHtml(new GLatLng(27.950738722228763,-15.567626953125),GranCanaria); 
  });

  ( i = 1 )

        point = new GLatLng(28.974506534302406,-13.6834716796875);
        map.addOverlay(createMarker(point,i));

 GEvent.addListener(marcador, "click", function() {   
          map.openInfoWindowHtml(new GLatLng(28.974506534302406,-13.6834716796875),Lanzarote); 
  });  
   
   ( i = 2 ) 
    point = new GLatLng(28.391400375817753,-13.985595703125);
        map.addOverlay(createMarker(point,i));

 GEvent.addListener(marcador, "click", function() {   
          map.openInfoWindowHtml(new GLatLng(28.391400375817753,-13.985595703125),Fuerteventura);
          
  }); 

 ( i = 3 ) 
       point = new GLatLng(28.19792655722615,-16.644287109375);
        map.addOverlay(createMarker(point,i));

 GEvent.addListener(marcador, "click", function() {   
          map.openInfoWindowHtml(new GLatLng(28.19792655722615,-16.644287109375),Tenerife); 
  });

( i = 4 )

        point = new GLatLng(28.627925287618566,-17.786865234375);
        map.addOverlay(createMarker(point,i));

 GEvent.addListener(marcador, "click", function() {   
          map.openInfoWindowHtml(new GLatLng(27.887639217136517,-17.786865234375),LaPalma); 
  }); 


   ( i = 5) 
       point = new GLatLng(28.057438520876673,-17.215576171875);
        map.addOverlay(createMarker(point,i));

 GEvent.addListener(marcador, "click", function() {   
          map.openInfoWindowHtml(new GLatLng(28.057438520876673,-17.215576171875),LaGomera); 
  });
  
   ( i = 6 ) 
       point = new GLatLng(27.70298373552586,-18.0670166015625);
        map.addOverlay(createMarker(point,i));

 GEvent.addListener(marcador, "click", function() {   
          map.openInfoWindowHtml(new GLatLng(27.70298373552586,-18.0670166015625),ElHierro); 
  });


  
  
    }
      
      // F I N    L O C A L I Z A C I O N E S
      
      }

       map.openInfoWindowHtml(new GLatLng(27.75160768754938, -15.140533447265625),GCanaria); 
 
      
}
 
 // DATOS  DE  LOCALIZACIONES
  
var GCanaria='<center><Font  color ="#663300"><font face="Arial Black" size="5"><b>GRAN CANARIA</font><br>';
var Fuerteventura='<center><Font  color ="#663300"><b>FUERTEVENTURA</b><br>';
var Tenerife='<center><Font  color ="#663300"><b>TENERIFE</b><br';
var LaPalma='<center><Font  color ="#663300"><b>LA PALMA</b><br>';
var LaGomera='<center><Font  color ="#663300"><b>LA GOMERA</b><br>';
var ElHierro='<center><Font  color ="#663300"><b>EL HIERRO</b><br><br>';
var Lanzarote= '<center><Font  color ="#663300"><b>LANZAROTE<BR></b><br>'; 
var GranCanaria='<center><Font  color ="#663300"><b>GRAN CANARIA<br>';
  //]]>
   