 //<![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.setCenter(new GLatLng(28.340, -14.56787109375),9);            

        // 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 <10; i++) {      
   
    ( i = 0 ) 
       point = new GLatLng(28.498792294144987,-13.85826587677002);
        map.addOverlay(createMarker(point,i));

 GEvent.addListener(marcador, "click", function() {   
          map.openInfoWindowHtml(new GLatLng(28.498792294144987,-13.85826587677002),PuertoRosario); 
  });

  ( i = 1 )

        point = new GLatLng(28.211929299858695,-14.02053952217102);
        map.addOverlay(createMarker(point,i));

 GEvent.addListener(marcador, "click", function() {   
          map.openInfoWindowHtml(new GLatLng(28.211929299858695,-14.02053952217102),GranTarajal); 
  });  
   
   ( i = 2 ) 
    point = new GLatLng(28.700224692776988,-13.84552001953125);
        map.addOverlay(createMarker(point,i));

 GEvent.addListener(marcador, "click", function() {   
          map.openInfoWindowHtml(new GLatLng(28.700224692776988,-13.84552001953125),Corralejo);
          
  }); 

 ( i = 3 ) 
       point = new GLatLng(28.395175657036002,-13.859081268310546);
        map.addOverlay(createMarker(point,i));

 GEvent.addListener(marcador, "click", function() {   
          map.openInfoWindowHtml(new GLatLng(28.395175657036002,-13.859081268310546),CaletaFuste); 
  });

( i = 4 )

        point = new GLatLng(28.19395515507399,-14.118032455444336);
        map.addOverlay(createMarker(point,i));

 GEvent.addListener(marcador, "click", function() {   
          map.openInfoWindowHtml(new GLatLng(28.19395515507399,-14.118032455444336),Tarajalejo); 
  }); 


   ( i = 5) 
       point = new GLatLng(28.164032516628072,-14.21905517578125);
        map.addOverlay(createMarker(point,i));

 GEvent.addListener(marcador, "click", function() {   
          map.openInfoWindowHtml(new GLatLng(28.164032516628072,-14.21905517578125),CostaCalma); 
  });
  
   ( i = 6 ) 
       point = new GLatLng(28.052136340489074,-14.329347610473632);
        map.addOverlay(createMarker(point,i));

 GEvent.addListener(marcador, "click", function() {   
          map.openInfoWindowHtml(new GLatLng(28.052136340489074,-14.329347610473632),MorroJable); 
  });


 ( i = 7 ) 
       point = new GLatLng(28.74598850450506,-13.809814453125);
        map.addOverlay(createMarker(point,i));

 GEvent.addListener(marcador, "click", function() {   
          map.openInfoWindowHtml(new GLatLng(28.74598850450506,-13.809814453125),Lobos); 
  });
  
  
   ( i =8 )  
       point = new GLatLng(28.8475881579445,-13.8043212890625);
       map.addOverlay(createMarker(point,i));
     GEvent.addListener(marcador, "click", function() {   
          map.openInfoWindowHtml(new GLatLng(28.8475881579445,-13.8043212890625),Lanzarote);          
  });
  
   ( i = 9 ) 
       point = new GLatLng(28.115593833316762,-15.435791015625);
        map.addOverlay(createMarker(point,i));

 GEvent.addListener(marcador, "click", function() {   
          map.openInfoWindowHtml(new GLatLng(28.115593833316762,-15.435791015625),GranCanaria); 
  });
  
  
    }
      
      // F I N    L O C A L I Z A C I O N E S
      
      }

       map.openInfoWindowHtml(new GLatLng(28.50745191050374,-14.31119384765625),('<center><Font  color ="#663300"><font face="Arial Black" size="5"><b>FUERTEVENTURA</font><br><font  color="#800000">(Mapa general)</font> </b><br>Isla oriental del Acrichipielago Canario <br>Superficie......: 1659,74 km2.<br>Poblacion (2008): 100.597 hab.<br> Distancias:Lanzarote-Fuerteventura (entre puertos) 13,569 m.<br>Más corta 11 km.<br>A Isla de Lobos: 2, 129<br>Impresionantes playas de arena blanquísima.<br>')); 
 
      
}
 
 // DATOS  DE  LOCALIZACIONES
  
var PuertoRosario='<center><Font  color ="#663300"><b>PUERTO DEL ROSARIO</b><br><br>';
var Corralejo='<center><Font  color ="#663300"><b>CORRALEJO</b><br>';
var Lobos='<center><Font  color ="#663300"><b>ISLA DE LOBOS</b><br>';
var CaletaFuste='<center><Font  color ="#663300"><b>CALETA DE FUSTE</b><br';
var GranTarajal='<center><Font  color ="#663300"><b>GRAN TARAJAL</b><br>';
var CostaCalma='<center><Font  color ="#663300"><b>COSTA CALMA</b><br>';
var MorroJable='<center><Font  color ="#663300"><b>MORROJABLE</b><br><br>';
var Lanzarote= '<center><Font  color ="#663300"><b>LANZAROTE<BR></b><br>- Isla más al norte de Canarias<br>- 961 km. de la Península, 140 de África<br>- 845 km2<br>- 127.457 habitantes<br>- Arrecife (capital con 55.203 habit.)<br><a TARGET="_blank" href=" http://www.lawebdelanzarote.com/Lanzarote/ConocerLanzarote.htm">Conocer Lanzarote</a>';  
var GranCanaria='<center><Font  color ="#663300"><b>GRAN CANARIA<br>Extensi&oacute;n 1600 km2.<br> Poblaci&oacute;n: 815.379 habitantes, (2007).<br> Es redonda. A 220 km del continente africano.<br>Gentilicio: grancanario, canari&oacute;n<br><br><a href="GranCanariaMapa.htm">Mapa de Gran Canaria</a>';

  //]]>
   