
    function initialize() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map_canvas"));
        map.setCenter(new GLatLng(43.36500, -3.21957), 14);
        map.addControl(new GSmallMapControl());
        map.addControl(new GMapTypeControl());

        // Create a base icon for all of our markers that specifies the
        // shadow, icon dimensions, etc. rosalia
		 var baseIcon = new GIcon();
		baseIcon.image = "images/mapa_casa_rosalia.png";
        baseIcon.shadow = "http://www.google.com/mapfiles/shadow50.png";
        baseIcon.iconSize = new GSize(150, 80);
        //baseIcon.shadowSize = new GSize(160, 85);
        baseIcon.iconAnchor = new GPoint(75, 80);
        baseIcon.infoWindowAnchor = new GPoint(120,0);

		// shadow, icon dimensions, etc. 3 canos
		 var baseIcon2 = new GIcon();
		baseIcon2.image = "images/mapa_3canos.png";
        baseIcon2.shadow = "http://www.google.com/mapfiles/shadow50.png";
        baseIcon2.iconSize = new GSize(150, 80);
        //baseIcon.shadowSize = new GSize(160, 85);
        baseIcon2.iconAnchor = new GPoint(75, 80);
        baseIcon2.infoWindowAnchor = new GPoint(75,0);
		
		
		// shadow, icon dimensions, etc. la llosa
		 var baseIcon3 = new GIcon();
		baseIcon3.image = "images/mapa_llosa.png";
        baseIcon3.shadow = "http://www.google.com/mapfiles/shadow50.png";
        baseIcon3.iconSize = new GSize(150, 80);
        //baseIcon.shadowSize = new GSize(160, 85);
        baseIcon3.iconAnchor = new GPoint(75, 80);
        baseIcon3.infoWindowAnchor = new GPoint(75,0);
		
			// shadow, icon dimensions, etc. 3 canos
		 var baseIcon4 = new GIcon();
		baseIcon4.image = "images/mapa_olivos.png";
        baseIcon4.shadow = "http://www.google.com/mapfiles/shadow50.png";
        baseIcon4.iconSize = new GSize(150, 80);
        //baseIcon.shadowSize = new GSize(160, 85);
        baseIcon4.iconAnchor = new GPoint(75, 80);
        baseIcon4.infoWindowAnchor = new GPoint(75,0);
		
		
        // Creates a marker whose info window displays the letter corresponding
        // to the given index.
        function createMarker(point, index, icon_var, texto_ventana) {
          // Create a lettered icon for this point using our icon class
          var letter = String.fromCharCode("A".charCodeAt(0) + index);
          var letteredIcon = new GIcon(icon_var);
          letteredIcon.image = "http://www.google.com/mapfiles/marker" + letter + ".png";

          // Set up our GMarkerOptions object
          markerOptions = { icon:icon_var };
          var marker = new GMarker(point, markerOptions);

          GEvent.addListener(marker, "click", function() {
           marker.openInfoWindowHtml(texto_ventana);
          });
          return marker;
        }

        // Add 10 markers to the map at random locations
        /*var bounds = map.getBounds();
        var southWest = bounds.getSouthWest();
        var northEast = bounds.getNorthEast();
        var lngSpan = northEast.lng() - southWest.lng();
        var latSpan = northEast.lat() - southWest.lat();*/
      //Rosalia
          var latlng = new GLatLng('43.35200','-3.24650');
          map.addOverlay(createMarker(latlng, 1, baseIcon,'<table width="250px"><tr><td align="center"><b>Reserva "Castro Caminos de Leyenda"<br> directamente en el alojamiento que eligas</b><br><a href="http://www.posadarosalia.com/" title="Posada Rosalia" target="blank">Posada Rosalia</a><br>942862121<br>Bo Huelguera, 178<br>39709 Sámano Castro-Urdiales<br><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/Em4q5V-9K54&hl=es&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/Em4q5V-9K54&hl=es&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></td></tr></table>'));
      //3 canos
	  var latlng = new GLatLng('43.36200','-3.19600');
          map.addOverlay(createMarker(latlng, 2, baseIcon2,'<table width="250px"><tr><td align="center"><b>Reserva "Castro Caminos de Leyenda"<br> directamente en el alojamiento que eligas</b><br><a href="http://www.lostrescanos.es/" title="3 canos" target="blank">3 canos</a><br>942879658<br>687663211<br>Bo Tresvilla, 90<br>39709 Miono Castro-Urdiales<br><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/IQ-_R0USxiM&hl=es&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/IQ-_R0USxiM&hl=es&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></td></tr></table>'));  	
		//llosa
	  var latlng = new GLatLng('43.35600','-3.22750');
          map.addOverlay(createMarker(latlng, 2, baseIcon3,'<table width="250px"><tr><td align="center"><b>Reserva "Castro Caminos de Leyenda"<br> directamente en el alojamiento que eligas</b><br><a href="http://www.lallosadesamano.com/" title="La Llosa de Sámano" target="blank">La Llosa de Sámano</a><br>info@lallosadesamano.com<br>942874024<br>652742393<br>Barrio de Sámano 107 <br>39709 Sámano<br><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/Wne4d6SLoH4&hl=es&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/Wne4d6SLoH4&hl=es&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></td></tr></table>')); 
		  //olivos
	  var latlng = new GLatLng('43.35200','-3.20350');
          map.addOverlay(createMarker(latlng, 2, baseIcon4,'<table width="250px"><tr><td align="center"><b>Reserva "Castro Caminos de Leyenda"<br> directamente en el alojamiento que eligas</b><br><a href="http://www.casalosolivos.com/" title="Casa  Los Olivos" target="blank">Casa  Los Olivos</a> <br>reservas@posadalosolivos.com<br>942879772<br>670502172<br>Bo Lusa, 21 <br>39706 Lusa Castro Urdiales<br><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/jS1p5OWDbm4&hl=es&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/jS1p5OWDbm4&hl=es&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></td></tr></table>')); 
      }
    }
