// Precarga de imágenes del Menumenu_1_on  = new Image(); menu_1_on.src  = "imagenes/menu_1_on.png"; menu_1_off = new Image(); menu_1_off.src = "imagenes/menu_1.png"; menu_2_on  = new Image(); menu_2_on.src  = "imagenes/menu_2_on.png"; menu_2_off = new Image(); menu_2_off.src = "imagenes/menu_2.png"; menu_3_on  = new Image(); menu_3_on.src  = "imagenes/menu_3_on.png"; menu_3_off = new Image(); menu_3_off.src = "imagenes/menu_3.png"; menu_4_on  = new Image(); menu_4_on.src  = "imagenes/menu_4_on.png"; menu_4_off = new Image(); menu_4_off.src = "imagenes/menu_4.png"; menu_5_on  = new Image(); menu_5_on.src  = "imagenes/menu_5_on.png"; menu_5_off = new Image(); menu_5_off.src = "imagenes/menu_5.png"; menu_6_on  = new Image(); menu_6_on.src  = "imagenes/menu_6_on.png"; menu_6_off = new Image(); menu_6_off.src = "imagenes/menu_6.png"; menu_7_on  = new Image(); menu_7_on.src  = "imagenes/menu_7_on.png"; menu_7_off = new Image(); menu_7_off.src = "imagenes/menu_7.png"; //creo array de imágenes para el bannerarray_imagen = new Array(21);array_imagen[0] = new Image(); array_imagen[0].src = "imagenes/Carrusel Nuevo/foto_portada_01.png"; array_imagen[1] = new Image(); array_imagen[1].src = "imagenes/Carrusel Nuevo/foto_portada_02.png"; array_imagen[2] = new Image(); array_imagen[2].src = "imagenes/Carrusel Nuevo/foto_portada_03.png"; array_imagen[3] = new Image(); array_imagen[3].src = "imagenes/Carrusel Nuevo/foto_portada_04.png"; array_imagen[4] = new Image(); array_imagen[4].src = "imagenes/Carrusel Nuevo/foto_portada_05.png"; array_imagen[5] = new Image(); array_imagen[5].src = "imagenes/Carrusel Nuevo/foto_portada_06.png"; array_imagen[6] = new Image(); array_imagen[6].src = "imagenes/Carrusel Nuevo/foto_portada_07.png"; array_imagen[7] = new Image(); array_imagen[7].src = "imagenes/Carrusel Nuevo/foto_portada_08.png"; array_imagen[8] = new Image(); array_imagen[8].src = "imagenes/Carrusel Nuevo/foto_portada_09.png"; array_imagen[9] = new Image(); array_imagen[9].src = "imagenes/Carrusel Nuevo/foto_portada_10.png"; array_imagen[10] = new Image(); array_imagen[10].src = "imagenes/Carrusel Nuevo/foto_portada_11.png"; array_imagen[11] = new Image(); array_imagen[11].src = "imagenes/Carrusel Nuevo/foto_portada_12.png"; array_imagen[12] = new Image(); array_imagen[12].src = "imagenes/Carrusel Nuevo/foto_portada_13.png"; array_imagen[13] = new Image(); array_imagen[13].src = "imagenes/Carrusel Nuevo/foto_portada_14.png"; array_imagen[14] = new Image(); array_imagen[14].src = "imagenes/Carrusel Nuevo/foto_portada_15.png"; array_imagen[15] = new Image(); array_imagen[15].src = "imagenes/Carrusel Nuevo/foto_portada_16.png"; array_imagen[16] = new Image(); array_imagen[16].src = "imagenes/Carrusel Nuevo/foto_portada_17.png"; array_imagen[17] = new Image(); array_imagen[17].src = "imagenes/Carrusel Nuevo/foto_portada_18.png"; array_imagen[18] = new Image(); array_imagen[18].src = "imagenes/Carrusel Nuevo/foto_portada_19.png"; array_imagen[19] = new Image(); array_imagen[19].src = "imagenes/Carrusel Nuevo/foto_portada_20.png"; array_imagen[20] = new Image(); array_imagen[20].src = "imagenes/Carrusel Nuevo/foto_portada_21.png"; //variable para llevar la cuenta de la imagen siguiente contador = 0//función para rotar el banner function alternar_banner(){ 	window.document["banner"].src = array_imagen[contador].src;	contador ++;	contador = contador % array_imagen.length;	setTimeout("alternar_banner()",3000);}  //----------------------------------------------------------------------------------------------------------------------------------------//----------------------------------------------------------------------------------------------------------------------------------------function NewWindow(ventana, alto, ancho, ev){	// Si el EVENTO que llega es una cadena NO, no hacemos nada con el evento.  Esto se ha hecho asi para evitar 	// fallos en la llamada desde los Hoteles Negociados en REDIRIGIR.PHP	if (ev != "NO")	{		// Evitamos la recarga de la pagina padre para que no se desplace hacia arriba todo el contenido		if (window.event)			window.event.returnValue = false;		else			ev.preventDefault();	}	var opsVentana = "height=" + alto + ",width=" + ancho + ",scrollbars=no,status=no,toolbar=no,menubar=no,location=no,fullscreen=0,";	var posicion = "top=" + (screen.height-alto)/2 + ", left=" + (screen.width-ancho)/2;	window.open(ventana,"popup",opsVentana + posicion);}//----------------------------------------------------------------------------------------------------------------------------------------//----------------------------------------------------------------------------------------------------------------------------------------//----------------------------------------------------------------------------------------------------------------------------------------
