function getDaySpanish(aux){
	if(aux == 0) return "lunes";
	else if(aux == 1) return "martes";
	else if(aux == 2) return "miércoles";
	else if(aux == 3) return "jueves";
	else if(aux == 4) return "viernes";
	else if(aux == 5) return "sábado";
	else if(aux == 6) return "domingo";
}
function getSpanishMonth(aux){
	if(aux == 0) return "enero";
	else if(aux == 1) return "febrero";
	else if(aux == 2) return "marzo";
	else if(aux == 3) return "abril";
	else if(aux == 4) return "mayo";
	else if(aux == 5) return "junio";
	else if(aux == 6) return "julio";
	else if(aux == 7) return "agosto";
	else if(aux == 8) return "septiembre";
	else if(aux == 10) return "noviembre";
	else if(aux == 11) return "diciembre";
	else if(aux == 9) return "octubre";
}

function init_gmap(){
	var x = '39.4954'; 
	var y = '-0.3530'; 
	var pitch = -33; // inclinación caámara
	var zoom = 12; 
	var yaw = 335; // grados
	
	// como llegar link
	$("#howtoLink").click(function(){
		$("#pano").toggle();
		$("#howtoget").toggle();
		return false;
	});
	
	var sample = function(){
		var icoOly = new GIcon();
		icoOly.image = "http://www.google.com/mapfiles/arrow.png";  
		icoOly.shadow = "http://www.google.com/mapfiles/arrowshadow.png"; 
		icoOly.size = new GSize(39,34);
		icoOly.shadowSize = new GSize(39, 34);
		icoOly.iconAnchor = new GPoint(12,34);
		icoOly.infoWindowAnchor = new GPoint(12,9);
		
		var icoPeq = new GIcon();
		icoPeq.image = "http://labs.google.com/ridefinder/images/mm_20_red.png";
		icoPeq.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png"; 
		icoPeq.size = new GSize(12,20);
		icoPeq.shadowSize = new GSize(22, 20);
		icoPeq.iconAnchor = new GPoint(8,9);
		icoPeq.infoWindowAnchor = new GPoint(7,7);
		
		var control1 = new GOverviewMapControl(new GSize(90,90));
		var control2 = new GSmallZoomControl3D();
		var control3 = new GHierarchicalMapTypeControl();
		
		var opt = {};
		opt.icon = icoOly;
		
		var optLittle = {};
		optLittle.icon = icoPeq; 
		
		var point = new GLatLng(x,y);
		
		var handleErrors = function(){
		   if (directions.getStatus().code == G_GEO_UNKNOWN_ADDRESS)
		     alert("Google Maps no encuentra la dirección. \nEjemplo de uso: Avenida Barón de Cárcer 48, Valencia, España");
		   else if (directions.getStatus().code == G_GEO_SERVER_ERROR)
		     alert("Hubo un error geolocalizando, intentalo nuevamente.");
		   else if (directions.getStatus().code == G_GEO_MISSING_QUERY)
		     alert("No hay petición");
		   else if (directions.getStatus().code == G_UNAVAILABLE_ADDRESS) 
		     alert("Esta dirección no es accesible desde Google Maps");
		   else if (directions.getStatus().code == G_GEO_BAD_KEY)
		     alert("La clave no es válida para este dominio");
		   else if (directions.getStatus().code == G_GEO_BAD_REQUEST)
		     alert("Error la dirección no está correctamente escrita, prueba algo del estilo:\nAvenida Barón de Cárcer 48, Valencia, España");    
		   else alert("Disculpa ha ocurrido un error, puedes intentarlo de nuevo en unos instantes. Gracias.");
		};
			
			
		directions = new GDirections(emapa.getMap(), document.getElementById("howtoget"));
		//GEvent.addListener(directions, "load", onGDirectionsLoad);	
        GEvent.addListener(directions, "error", handleErrors);
		
		emapa.setCenter(x,'-0.349',zoom);
		
		emapa.getMap().addControl(control1);
      	emapa.getMap().addControl(control2);
      	emapa.getMap().addControl(control3);
		
		optBubble = {maxWidth:"200"};
      	
		var from = "39.4954,-0.3530";
		var to = "";
		
		howToGet = function(hacia){
			if(hacia != undefined && hacia){
				to = hacia;
			}
			else {
				if($("#to").val()==""){
					if($("#toSelect").val()!="-1"){
						to = $("#toSelect").val();
					}
				}
				else {
					to = $("#to").val();
				}
			}
			
			
			if(to==""){
				alert("Tienes que seleccionar una dirección donde ir");
				return false;
			}
			
			directions.load("from:"+from+" to:"+to, {"locale":"es_ES"});
			to = "";
			
			$("#howtoLink").show();
			
			return false;
		};
		
		
		var olyHTML = "<div style=\"padding-left:10px\"><p style=\"font-size:14px;\"><strong>Olympia Hotel, Events & Spa</strong></p><p>Maestro Serrano 3 y 5. </p><p>46120, Alboraia, Valencia.</p><p>Tfno: +34 96 303 33 92</p> <p>Fax: +34 96 303 33 93</p></div>";
		var marker = new GMarker(point,opt);
		GEvent.addListener(marker, "click", function() {
			marker.openInfoWindowHtml(olyHTML);
		 });
		emapa.addOverlay(marker);	
		marker.openInfoWindowHtml(olyHTML);
		
		
		/* puntos de interés */
		var htmlText = html_bubbleHelper("Museo Lladró","Obras únicas en porcelana.","http://www.lladro.com/","Lladró Museum","unique works of porcelain.","1km","lladroHowTo");
		var marker1 = new GMarker(new GLatLng('39.50462017383305','-0.3599739074707031'),optLittle);
		GEvent.addListener(marker1, "click", function() {
			marker1.openInfoWindowHtml(htmlText,optBubble);
			$("#lladroHowTo").click(function(){
				howToGet('39.50462017383305,-0.3599739074707031');
				$("#pano").hide();
				$("#howtoget").show();
				return false;
			});
		 });
		emapa.addOverlay(marker1);	
		
		
		var htmlText2 = html_bubbleHelper("CATEDRAL DE VALENCIA","con su torre campanario conocida como el micalet","http://www.catedraldevalencia.es/","Valencia Cathedral","with its bell tower known as El Micalet","1km","micaletHowTo");
		var marker2 = new GMarker(new GLatLng('39.47477955793387','-0.3753376007080078'),optLittle);
		GEvent.addListener(marker2, "click", function() {
			marker2.openInfoWindowHtml(htmlText2,optBubble);
			$("#micaletHowTo").click(function(){
				howToGet('39.47477955793387,-0.3753376007080078');
				$("#pano").hide();
				$("#howtoget").show();
				return false;
			});
		 });
		emapa.addOverlay(marker2);	
		
		
		var htmlText3 = html_bubbleHelper("EL CARMEN"," la ciutat vella","http://www.barriodelcarmen.info","El carmen"," la ciutat vella","3km","carmenHowTo");
		var marker3 = new GMarker(new GLatLng('39.477396505941186','-0.3797578811645508'),optLittle);
		GEvent.addListener(marker3, "click", function() {
			marker3.openInfoWindowHtml(htmlText3,optBubble);
			$("#carmenHowTo").click(function(){
				howToGet('39.477396505941186,-0.3797578811645508');
				$("#pano").hide();
				$("#howtoget").show();
				return false;
			});
		 });
		emapa.addOverlay(marker3);	
		
		
		var htmlText4 = html_bubbleHelper("MUSEO ARTE MODERNO, IVAM","uno de los principales museos de arte contemporáneo.","http://www.ivam.es","Museum of Modern Art, IVAM","one of the most contemporary art museums","4km","IVAMHowTo");
		var marker4 = new GMarker(new GLatLng('39.47909415690416','-0.38306236267089844'),optLittle);
		GEvent.addListener(marker4, "click", function() {
			marker4.openInfoWindowHtml(htmlText4,optBubble);
			$("#IVAMHowTo").click(function(){
				howToGet('39.47909415690416,-0.38306236267089844');
				$("#pano").hide();
				$("#howtoget").show();
				return false;
			});
		 });
		emapa.addOverlay(marker4);	
		
		
		var htmlText5 = html_bubbleHelper("CIRCUITO FORMULA 1","vivir el espectáculo de la formula 1 cerca del agua.","http://www.valenciastreetcircuit.com","Formula 1 Circuit","live the spectacle of Formula 1 next to the water.","5.5km","f1HowTo");
		var marker5 = new GMarker(new GLatLng('39.46246367405865','-0.3295254707336426'),optLittle);
		GEvent.addListener(marker5, "click", function() {
			marker5.openInfoWindowHtml(htmlText5,optBubble);
			$("#f1HowTo").click(function(){
				howToGet('39.46246367405865,-0.3295254707336426');
				$("#pano").hide();
				$("#howtoget").show();
				return false;
			});
		 });
		emapa.addOverlay(marker5);	
		
		 
		var htmlText6 = html_bubbleHelper("PUERTO DE VALENCIA","sede de la 32 Americas Cup.","http://www.valenciaport.com","Valencia Port","place of 32nd Americas Cup.","5.5km","ameriHowTo");
		var marker6 = new GMarker(new GLatLng('39.46048812601565','-0.3310060501098633'),optLittle);
		GEvent.addListener(marker6, "click", function() {
			marker6.openInfoWindowHtml(htmlText6,optBubble);
			$("#ameriHowTo").click(function(){
				howToGet('39.46048812601565,-0.3310060501098633');
				$("#pano").hide();
				$("#howtoget").show();
				return false;
			});
		 });
		emapa.addOverlay(marker6);	
		
		
		var htmlText7 = html_bubbleHelper("LA LONJA","el primer centro de contratación mercantil de Valencia","http://www.lonjadevalencia.com","La Lonja","the first commercial recruitment center.","3.5km","longaHow");
		var marker7 = new GMarker(new GLatLng('39.47400107971847','-0.3785991668701172'),optLittle);
		GEvent.addListener(marker7, "click", function() {
			marker7.openInfoWindowHtml(htmlText7,optBubble);
			$("#longaHow").click(function(){
				howToGet('39.47400107971847,-0.3785991668701172');
				$("#pano").hide();
				$("#howtoget").show();
				return false;
			});
		 });
		emapa.addOverlay(marker7);	
		
		 
		var htmlText8 = html_bubbleHelper("BIOPARC","un parque zoológico con más de 100.000 m2.","http://www.bioparcvalencia.es","Bioparc","a zoo with more than 100.000 m2.","5.5km","zooHowTo");
		var marker8 = new GMarker(new GLatLng('39.48080004735481','-0.40954113006591797'),optLittle);
		GEvent.addListener(marker8, "click", function() {
			marker8.openInfoWindowHtml(htmlText8,optBubble);
			$("#zooHowTo").click(function(){
				howToGet('39.48080004735481,-0.40954113006591797');
				$("#pano").hide();
				$("#howtoget").show();
				return false;
			});
		 });
		emapa.addOverlay(marker8);	
		
		
		var htmlText9 = html_bubbleHelper("PALACIO DE CONGRESOS","un espacio sin limites para el dialogo.","http://www.palcongres-vlc.com","Congress Hall","unlimited space for dialogue.","5km","congresoHowTo");
		var marker9 = new GMarker(new GLatLng('39.494453944025054','-0.4025459289550781'),optLittle);
		GEvent.addListener(marker9, "click", function() {
			marker9.openInfoWindowHtml(htmlText9,optBubble);
			$("#congresoHowTo").click(function(){
				howToGet('39.494453944025054,-0.4025459289550781');
				$("#pano").hide();
				$("#howtoget").show();
				return false;
			});
		 });
		emapa.addOverlay(marker9);	
		
		
		var htmlText10 = html_bubbleHelper("ESTACION DEL NORTE","edificio modernista de principios del siglo XX.","http://www.renfe.es/","North Train Station","Art Deco building of early 20th century.","4km","estacionHowTo");
		var marker10 = new GMarker(new GLatLng('39.466845297478635','-0.3772258758544922'),optLittle);
		GEvent.addListener(marker10, "click", function() {
			marker10.openInfoWindowHtml(htmlText10,optBubble);
			$("#estacionHowTo").click(function(){
				howToGet('39.466845297478635,-0.3772258758544922');
				$("#pano").hide();
				$("#howtoget").show();
				return false;
			});
		 });
		emapa.addOverlay(marker10);	
		
		
		var htmlText12 = html_bubbleHelper("MUSEO FALLERO","Aquí se encuentran lo ninots premiados de las fallas.","http://www.fallas.com","Fallas Museum","ninots contest winners.","4km","ninotsHowTo");
		var marker12 = new GMarker(new GLatLng('39.49697080389834','-0.39083003997802734'),optLittle);
		GEvent.addListener(marker12, "click", function() {
			marker12.openInfoWindowHtml(htmlText12,optBubble);
			$("#ninotsHowTo").click(function(){
				howToGet('39.49697080389834,-0.39083003997802734');
				$("#pano").hide();
				$("#howtoget").show();
				return false;
			});
		 });
		emapa.addOverlay(marker12);	
		
		
		 
		var htmlText13 = html_bubbleHelper("MUSEO MARQUES DE DOS AGUAS","Extensa representación de cerámica valenciana.","http://mnceramica.mcu.es","Ceramic Museum  Gonzalez Marti","extensive representation of Valencian Ceramic.","3.5km","cercamicaHowTo");
		var marker13 = new GMarker(new GLatLng('39.472270176725495','-0.37450075149536133'),optLittle);
		GEvent.addListener(marker13, "click", function() {
			marker13.openInfoWindowHtml(htmlText13,optBubble);
			$("#cercamicaHowTo").click(function(){
				howToGet('39.472270176725495,-0.37450075149536133');
				$("#pano").hide();
				$("#howtoget").show();
				return false;
			});
		 });
		emapa.addOverlay(marker13);	
		
		
		var htmlText14 = html_bubbleHelper("LA TOMATINA DE BUÑOL","Fiesta declarada de interés turístico internacional.","http://www.latomatina.es","La Tomatina of Buñol","International Fiesta of Tourist Interest","40km","tomatinaHowTo");
		var marker14 = new GMarker(new GLatLng('39.41890578246692','-0.7882261276245117'),optLittle);
		GEvent.addListener(marker14, "click", function() {
			marker14.openInfoWindowHtml(htmlText14,optBubble);
			$("#tomatinaHowTo").click(function(){
				howToGet('39.41890578246692,-0.7882261276245117');
				$("#pano").hide();
				$("#howtoget").show();
				return false;
			});
		 });
		emapa.addOverlay(marker14);	
		
		
		var htmlText15 = html_bubbleHelper("PLAYA DE LA MALVARROSA","Playa amplia de arena fina","http://www.playamalvarrosa.es","Malvarrosa Beach","Wide sandy beach.","4km","playaMalvaHowTo");
		var marker15 = new GMarker(new GLatLng('39.47617085900447','-0.3232383728027344'),optLittle);
		GEvent.addListener(marker15, "click", function() {
			marker15.openInfoWindowHtml(htmlText15,optBubble);
			$("#playaMalvaHowTo").click(function(){
				howToGet('39.47617085900447,-0.3232383728027344');
				$("#pano").hide();
				$("#howtoget").show();
				return false;
			});
		 });
		emapa.addOverlay(marker15);	
		
		
		var htmlText16 = html_bubbleHelper("PALACIO DE LA MUSICA","La mejor música clásica en vivo.","http://www.palaudevalencia.com","Music Palace","The best classical music live.","4km","palauHowTo");
		var marker16 = new GMarker(new GLatLng('39.46612470917859','-0.3604137897491455'),optLittle);
		GEvent.addListener(marker16, "click", function() {
			marker16.openInfoWindowHtml(htmlText16,optBubble);
			$("#palauHowTo").click(function(){
				howToGet('39.46612470917859,-0.3604137897491455');
				$("#pano").hide();
				$("#howtoget").show();
				return false;
			});
		 });
		emapa.addOverlay(marker16);	
		
		
		var htmlText17 = html_bubbleHelper("CIUDAD DE LAS ARTES Y LAS CIENCIAS","Un gran parque oceanográfico.","http://www.cac.es/","City of Arts and Sciencies","Large oceanographic park.","5km","cacHowTo");
		var marker17 = new GMarker(new GLatLng('39.455546939606066','-0.35233497619628906'),optLittle);
		GEvent.addListener(marker17, "click", function() {
			marker17.openInfoWindowHtml(htmlText17,optBubble);
			$("#cacHowTo").click(function(){
				howToGet('39.455546939606066,-0.35233497619628906');
				$("#pano").hide();
				$("#howtoget").show();
				return false;
			});
		 });
		emapa.addOverlay(marker17);	
		
		//  
		var htmlText18 = html_bubbleHelper("CIRCUITO RICARDO TORMO , CHESTE","Un punto de referencia en el mundo del motor.","http://www.circuitvalencia.com/","Ricardo Tormo Circuit, Cheste","a reference in the motor world.","30km","chesteHowTo");
		var marker18 = new GMarker(new GLatLng('39.48595886921474','-0.6295680999755859'),optLittle);
		GEvent.addListener(marker18, "click", function() {
			marker18.openInfoWindowHtml(htmlText18,optBubble);
			$("#chesteHowTo").click(function(){
				howToGet('39.48595886921474,-0.6295680999755859');
				$("#pano").hide();
				$("#howtoget").show();
				return false;
			});
		 });
		emapa.addOverlay(marker18);	
		
		
		var htmlText19 = html_bubbleHelper("FERIA VALENCIA","Uno de los más modernos recintos feriales de España.","http://horizontal.feriavalencia.com/","Feria Valencia","One of the most modern fairgrounds in Spain.","7km","feriaHowTo");
		var marker19 = new GMarker(new GLatLng('39.50490162809629','-0.42743682861328125'),optLittle);
		GEvent.addListener(marker19, "click", function() {
			marker19.openInfoWindowHtml(htmlText19,optBubble);
			$("#feriaHowTo").click(function(){
				howToGet('39.50490162809629,-0.42743682861328125');
				$("#pano").hide();
				$("#howtoget").show();
				return false;
			});
		 });
		emapa.addOverlay(marker19);	
		
		
		var htmlText20 = html_bubbleHelper("AEROPUERTO DE MANISES","importante centro de negocios y turismo.","http://www.aena.es/","Manises Airport","important business and tourism center.","10km","manisesHowTo");
		var marker20 = new GMarker(new GLatLng('39.492019788918455','-0.47460079193115234'),optLittle);
		GEvent.addListener(marker20, "click", function() {
			marker20.openInfoWindowHtml(htmlText20,optBubble);
			$("#manisesHowTo").click(function(){
				howToGet('39.492019788918455,-0.47460079193115234');
				$("#pano").hide();
				$("#howtoget").show();
				return false;
			});
		 });
		emapa.addOverlay(marker20);	
		
		
		var htmlText21 = html_bubbleHelper("PARQUE NATURAL LA ALBUFERA","biodiversidad, paisaje y cultura.","http://www.albufera.com/","Natural Park of La Albufera","biodiversity, landscape and culture.","15km","albuferaHowTo");
		var marker21 = new GMarker(new GLatLng('39.33801498526587','-0.35053253173828125'),optLittle);
		GEvent.addListener(marker21, "click", function() {
			marker21.openInfoWindowHtml(htmlText21,optBubble);
			$("#albuferaHowTo").click(function(){
				howToGet('39.33801498526587,-0.35053253173828125');
				$("#pano").hide();
				$("#howtoget").show();
				return false;
			});
		 });
		emapa.addOverlay(marker21);
		
		var htmlText22 = html_bubbleHelper("MUSEO BELLAS ARTES SAN PIO V","Obras de Ribera, Velázquez, Goya y Sorolla.","http://museobellasartesvalencia.gva.es/","Museum of Fine Arts San Pio V","works by Ribera, Velázquez, Goya and Sorolla.","2.7km","sanpioHowTo");
		var marker22 = new GMarker(new GLatLng('39.47810869626809','-0.36842823028564453'),optLittle);
		GEvent.addListener(marker22, "click", function() {
			marker22.openInfoWindowHtml(htmlText22,optBubble);
			$("#sanpioHowTo").click(function(){
				howToGet('39.47810869626809,-0.36842823028564453');
				$("#pano").hide();
				$("#howtoget").show();
				return false;
			});
		 });
		emapa.addOverlay(marker22);
		
		var htmlText23 = html_bubbleHelper("MONASTERIO DE NUESTRA SEÑORA DE PUIG","Historia, Monumento, Residencia Real","http://www.monasteriodelpuig.es.tl/","Monastery of Nuestra Señora de Puig","history, monument, royal residence","16km","puigHowTo");
		var marker23 = new GMarker(new GLatLng('39.588489','-0.303382'),optLittle);
		GEvent.addListener(marker23, "click", function() {
			marker23.openInfoWindowHtml(htmlText23,optBubble);
			$("#puigHowTo").click(function(){
				howToGet('39.588489,-0.303382');
				$("#pano").hide();
				$("#howtoget").show();
				return false;
			});
		 });
		emapa.addOverlay(marker23);
		
		var htmlText24 = html_bubbleHelper("COMPLEJO HOTELERO RONDA","Hotel, Alojamiento","http://www.hotelronda.es/","Ronda resort","hotel, accommodation","11.4km","hotelRondaHowTo");
		var marker24 = new GMarker(new GLatLng('39.590312','-0.297961'),optLittle);
		GEvent.addListener(marker24, "click", function() {
			marker24.openInfoWindowHtml(htmlText24,optBubble);
			$("#hotelRondaHowTo").click(function(){
				howToGet('39.590312,-0.297961');
				$("#pano").hide();
				$("#howtoget").show();
				return false;
			});
		 });
		emapa.addOverlay(marker24);
		
		var htmlText25 = html_bubbleHelper("MUSEO DE LA HORCHATA Y DE LA CHUFA","Conoce la historia de la horchata","http://www.comunitatvalenciana.com/museo/valencia-terra-i-mar-alboraya-museo-de-la-horchata-0","horchata and chufa museum","learn about the history of horchata","0.4km","chufaHowTo");
		var marker25 = new GMarker(new GLatLng('39.499107','-0.350168'),optLittle);
		GEvent.addListener(marker25, "click", function() {
			marker25.openInfoWindowHtml(htmlText25,optBubble);
			$("#chufaHowTo").click(function(){
				howToGet('39.499107,-0.350168');
				$("#pano").hide();
				$("#howtoget").show();
				return false;
			});
		 });
		emapa.addOverlay(marker25);
		
		
		

		
		myPOV = {yaw:yaw,pitch:pitch};
		panoramaOptions = {latlng:point,pov:myPOV};
		var myPano = new GStreetviewPanorama(document.getElementById("pano"),panoramaOptions);
		
		/*
        svOverlay = new GStreetviewOverlay();
        emapa.addOverlay(svOverlay);
        GEvent.addListener(emapa.getMap(),"click", function(overlay,latlng) {
          
        });
        */
		
	}
	
	// por defecto la de connection
	var apiKey = "ABQIAAAAt8HZcgoRYhgV_t-V4KlNJBSIZgZquG1HNaTf3dsswgunvPR5LRQG_CN4l95pwBRHygWJJxERyZm68w";
	if(namespace == "hotel"){
		apiKey = "ABQIAAAAeDEtb7rA8dcIQKlT-Yks2RQ1FcyP0R6-gwoDSYosgMExQAIsKBS8eWOcGb80EbIoPYrUHoLQ14qiIw";
	}
	if(namespace == "eventos"){
		apiKey = "ABQIAAAAt8HZcgoRYhgV_t-V4KlNJBSSS62MdYf1NZKDexGVve0BaWMBXxQQ_O_Rm4w-95xRrNKX8t0P2lpyxQ";
	}
	if(namespace == "spa"){
		apiKey = "ABQIAAAAt8HZcgoRYhgV_t-V4KlNJBRvP2VaPXWy7VwgZqanlWgPg_K9hBQCFHEimNbSXUC5hQTjb7kXOFPmag";
	}
	/**
	 * Carga del mapa, see emaps.js
	 */
	if($("#map").size()>0){
		emapa = new eMap({zoom:zoom,lat:x,lng:y,api_key:apiKey,afterLoadFuncion:sample});
		emapa.constructor();	
	}
}



function html_bubbleHelper(ttl,dsc,link,ttl2,dsc2,dstnc,howToGetId){
	var htmlContent = "";
	htmlContent += "<div class=\"bubble\">";
	htmlContent += "<p class=\"titleBubble\"><strong>"+ttl+"</strong>:<br />"+dsc+"</p>";
	htmlContent += "<p class=\"titleBubble\"><strong>"+ttl2+"</strong>:<br />"+dsc2+"</p>";
	htmlContent += "<a href=\""+link+"\" target=\"_blank\">"+link+"</a>";
	htmlContent += "<p>Distancia:"+dstnc+"</p>";
	htmlContent += "<p><a id="+howToGetId+" href=\"#\">Cómo llegar desde Olympia</a></p>";
	htmlContent += "</div>";
	return htmlContent;
}


function init_linksLocalizacion(){
	$("#linkVideoMadridA").click(function(){
		if(!$("#videoBarna").is(":hidden")){
			$("#videoBarna").toggle('slow');
		}
		if(!$("#videoAlicante").is(":hidden")){
			$("#videoAlicante").toggle('slow');
		}
		$("#videoMadrid").toggle('slow');
		return false;
	});
	$("#linkVideoBarnaA").click(function(){
		if(!$("#videoMadrid").is(":hidden")){
			$("#videoMadrid").toggle('slow');
		}
		if(!$("#videoAlicante").is(":hidden")){
			$("#videoAlicante").toggle('slow');
		}
		$("#videoBarna").toggle('slow');
		return false;
	});
	$("#linkVideoAlicanteA").click(function(){
		if(!$("#videoBarna").is(":hidden")){
			$("#videoBarna").toggle('slow');
		}
		if(!$("#videoMadrid").is(":hidden")){
			$("#videoMadrid").toggle('slow');
		}
		$("#videoAlicante").toggle('slow');
		return false;
	});
}

function initSuperBanner(){
	/*
	if((window.location.href == "http://www.olympiahotelvalencia.com") ||
		(window.location.href == "http://www.olympiahotelvalencia.com/") ||
		(window.location.href == "http://www.olympiaeventos.com") ||
		(window.location.href == "http://www.olympiaeventos.com/") ||
		(window.location.href == "http://www.olympiaconnection.com") ||
		(window.location.href == "http://www.olympiaconnection.com/") ||
		(window.location.href == "http://www.olympiaspafitness.com") ||
		(window.location.href == "http://www.olympiaspafitness.com/")){
		$("#superBanner").show();
		
		$("#cerrarBanner").click(function(){
			$("#superBanner").hide();
			return false;
		});
		$("#linkBanner").click(function(){
			$("#superBanner").hide();
		});
		
		setTimeout("closeSuperBanner()",10000);
	}
	*/
}
function closeSuperBanner(){
	/*
	$("#superBanner").hide();
	*/
}