var ie= (document.all)? true:false
var ns4 = (document.layers)? true:false
var ns6=( document.getElementById && !document.all)?true:false

botones = new Array()	
botones[0] = "../../img/Eng/btn_centroENG.gif";
botones[1] = "../../img/Eng/btn_centroENGOn.gif";
botones[2] = "../../img/Eng/btn_infoGeneralENG.gif";
botones[3] = "../../img/Eng/btn_infoGeneralENGOn.gif";
botones[4] = "../../img/Eng/btn_vVirtualENG.gif";
botones[5] = "../../img/Eng/btn_vVirtualENGOn.gif";
botones[6] = "../../img/Eng/btn_salasENG.gif";
botones[7] = "../../img/Eng/btn_salasENGOn.gif";
botones[8] = "../../img/Eng/btn_habitacionesENG.gif";
botones[9] = "../../img/Eng/btn_habitacionesENGOn.gif";
botones[10] = "../../img/Eng/btn_salonesENG.gif";
botones[11] = "../../img/Eng/btn_salonesENGOn.gif";
botones[12] = "../../img/Eng/btn_restauranteENG.gif";
botones[13] = "../../img/Eng/btn_restauranteENGOn.gif";
/*
botones[14] = "../../img/Eng/btn_complejoENG.gif";
botones[15] = "../../img/Eng/btn_complejoENGOn.gif";
*/
botones[14] = "../../img/Eng/btn_alrededoresENG.gif";
botones[15] = "../../img/Eng/btn_alrededoresENGOn.gif";
/*botones[16] = "../../img/Eng/btn_formacionENG.gif";
botones[17] = "../../img/Eng/btn_formacionENGOn.gif";
botones[18] = "../../img/Eng/btn_infoGeneralENG.gif";
botones[19] = "../../img/Eng/btn_infoGeneralENGOn.gif";*/
//eliminar apartados
/*botones[20] = "../../img/Eng/btn_alianza_cumbreENG.gif";
botones[21] = "../../img/Eng/btn_alianza_cumbreENGOn.gif";
botones[22] = "../../img/Eng/btn_inmersionIngENG.gif";
botones[23] = "../../img/Eng/btn_inmersionIngENGOn.gif";*/
/*
botones[26] = "../../img/Eng/btn_formacionIngENG.gif";
botones[27] = "../../img/Eng/btn_formacionIngENGOn.gif";
*/
/*botones[24] = "../../img/Eng/btn_formandofuturoENG.gif";
botones[25] = "../../img/Eng/btn_formandofuturoENGOn.gif";*/
botones[16] = "../../img/Eng/btn_comoLlegarENG.gif";
botones[17] = "../../img/Eng/btn_comoLlegarENGOn.gif";
botones[18] = "../../img/Eng/btn_cocheENG.gif";
botones[19] = "../../img/Eng/btn_cocheENGOn.gif";
botones[20] = "../../img/Eng/btn_trenENG.gif";
botones[21] = "../../img/Eng/btn_trenENGOn.gif";
botones[22] = "../../img/Eng/btn_busENG.gif";
botones[23] = "../../img/Eng/btn_busENGOn.gif";
botones[24] = "../../img/btn_video.gif";
botones[25] = "../../img/btn_videoOn.gif";

btnImg = new Array()
function preCargaImg(){	
	for(i=0; i < botones.length; i++) {
		btnImg[i] = new Image()
		btnImg[i].src = botones[i];
	}
}

function changeImage(layer,imgName,imgObj) {
	if (document.images) {
		if (document.layers && layer!=null) eval('document.'+layer+'.document.images["'+imgName+'"].src = '+imgObj+'.src')
		else document.images[imgName].src = eval(imgObj+".src")
	}
}

//imagen,link,nombre imagen, indice
var arrData=[
/*							["../../img/Eng/btn_centroENG","infoGeneralCentro.htm","btn_centroENG","0",[["../../img/Eng/btn_infoGeneralENG","infoGeneralCentro.htm","btn_infoGeneralENG","2"],["../../img/Eng/btn_vVirtualENG","visitaVirtualExterior.htm","btn_vVirtualENG","4"],["../../img/Eng/btn_salasENG","salas.htm","btn_salasENG","6"],["../../img/Eng/btn_habitacionesENG","habitaciones_galeria.htm","btn_habitacionesENG","8"],["../../img/Eng/btn_salonesENG","salones_galeria.htm","btn_salonesENG","10"],["../../img/Eng/btn_restauranteENG","restaurante_galeria.htm","btn_restauranteENG","12"],["../../img/Eng/btn_complejoENG","complejo_galeria.htm","btn_complejoENG","14"],["../../img/Eng/btn_alrededoresENG","alrededores_galeria.htm","btn_alrededoresENG","16"]]],
							//["../../img/btn_formacion","infoGeneralFormacion.htm","btn_formacion","18",[["../../img/btn_infoGeneral","infoGeneralFormacion.htm","btn_infoGeneralForm","20"],["../../img/btn_coaching","coaching_paso1.htm","btn_coaching","22"],["../../img/btn_gestConflictos","gestConflictos_paso1.htm","btn_gestConflictos","24"],["../../img/btn_formacionEsp","formacionEsp_paso1.htm","btn_formacionEsp","26"],["../../img/btn_presentInter","presentInter_paso1.htm","btn_presentInter","28"],["../../img/btn_inmersionIng","inmersionIngles_paso1.htm","btn_inmersionIng","30"],["../../img/btn_formacionIng","formacionIng_paso1.htm","btn_formacionIng","32"]]],
							["../../img/Eng/btn_formacionENG","infoGeneralFormacion.htm","btn_formacionENG","18",[["../../img/Eng/btn_infoGeneralENG","infoGeneralFormacion.htm","btn_infoGeneralFormENG","20"],["../../img/Eng/btn_alianza_cumbreENG","alianza_cumbre.htm","btn_alianza_cumbreENG","22"],["../../img/Eng/btn_inmersionIngENG","inmersionIngles_paso1.htm","btn_inmersionIngENG","24"],["../../img/Eng/btn_formandofuturoENG","formando_futuro.htm","btn_formandofuturoENG","26"]]],
							["../../img/Eng/btn_comoLlegarENG","llegarCoche.htm","btn_comoLlegarENG","28",[["../../img/Eng/btn_cocheENG","llegarCoche.htm","btn_cocheENG","30"],["../../img/Eng/btn_trenENG","llegarTren.htm","btn_trenENG","32"],["../../img/Eng/btn_busENG","llegarBus.htm","btn_busENG","34"]]]
*/
							["../../img/Eng/btn_centroENG","infoGeneralCentro.htm","btn_centroENG","0",
							[["../../img/Eng/btn_infoGeneralENG","infoGeneralCentro.htm","btn_infoGeneralENG","2"],
							 ["../../img/Eng/btn_vVirtualENG","visitaVirtualExterior.htm","btn_vVirtualENG","4"],
							 ["../../img/btn_video","video.htm","btn_video","24"],
							 ["../../img/Eng/btn_salasENG","salas.htm","btn_salasENG","6"],
							 ["../../img/Eng/btn_habitacionesENG","habitaciones_galeria.htm","btn_habitacionesENG","8"],
							 ["../../img/Eng/btn_salonesENG","salones_galeria.htm","btn_salonesENG","10"],
							 ["../../img/Eng/btn_restauranteENG","restaurante_galeria.htm","btn_restauranteENG","12"],
							 ["../../img/Eng/btn_alrededoresENG","alrededores_galeria.htm","btn_alrededoresENG","14"]]],
						//  ["../../img/Eng/btn_formacionENG","infoGeneralFormacion.htm","btn_formacionENG","16",
						 // [["../../img/Eng/btn_infoGeneralENG","infoGeneralFormacion.htm","btn_infoGeneralFormENG","18"],
						 //  ["../../img/Eng/btn_alianza_cumbreENG","alianza_cumbre.htm","btn_alianza_cumbreENG","20"],
						 //  ["../../img/Eng/btn_inmersionIngENG","inmersionIngles_paso1.htm","btn_inmersionIngENG","22"],
						  // ["../../img/Eng/btn_formandofuturoENG","formando_futuro.htm","btn_formandofuturoENG","24"]]],
							["../../img/Eng/btn_comoLlegarENG","llegarCoche.htm","btn_comoLlegarENG","16",
							[["../../img/Eng/btn_cocheENG","llegarCoche.htm","btn_cocheENG","18"],
							 ["../../img/Eng/btn_trenENG","llegarTren.htm","btn_trenENG","20"],
							 ["../../img/Eng/btn_busENG","llegarBus.htm","btn_busENG","22"]]]


						];

function Menu(id,arrData,ancho){			
	this.id=id;
	this.datos=arrData;
	
	this.rp0=""
	this.rp1=""
	
	this.abrir="<table width='"+ancho+"' cellpadding='0' cellspacing='0' border='0'><tr></td>"
	this.cerrar="</td></tr></table>"
	this.seleccionados=new Array(null);
	
	function formar(datos,nivel){			
		this.rp1T="";
		
		for(var tt=0;tt<datos.length;tt++){					
				lugarEnMenu=(tt>this.seleccionados[nivel])? "post":"pre";
				this.representarNivel([datos[tt][0],datos[tt][1],datos[tt][2],datos[tt][3]],nivel,tt,lugarEnMenu,(typeof(datos[tt][4])=="object")?datos[tt][4].length:0)				  
				
		}					
				
		this.rp1=this.rp1T+this.rp1;		
		
		if((this.seleccionados[nivel]!=null)&&(datos[this.seleccionados[nivel]][4]!=null))
			this.formar(datos[this.seleccionados[nivel]][4],(nivel+1))
		else
			this.reEscribir()
	}
	this.formar=formar		
	
	function representarNivel(datos,nivel,posicion,lugar,nHijos){
		//para rollOver		
		var imagen, imagenOn
		indice = parseInt(datos[3])		
		if(this.seleccionados[nivel]==posicion){	
				boton = datos[0]+"On.gif";
				imagen = "btnImg["+(indice+1)+"]";
				imagenOn = "btnImg["+(indice+1)+"]";
			}				
		else{
				boton = datos[0]+".gif";
				imagen = "btnImg["+indice+"]";
				imagenOn = "btnImg["+(indice+1)+"]";			
		}
		
		cadenaMenu="<table width='"+ancho+"' cellpadding='0' cellspacing='0' border='0'><tr>"				
				//cadenaMenu+="<td><a href='"+ datos[1] +"' onmouseover='javascript:changeImage(\"menu01\",\""+datos[2]+"\",\"btnImg["+imagenOn+"]\")' onmouseout='javascript:changeImage(\"menu01\",\""+datos[2]+"\",\"btnImg["+imagen+"]\")'><img name='"+datos[2]+"' src='" + boton + "' border='0' vspace='2'></a></td>"						
				cadenaMenu+="<td><a href='"+ datos[1] +"' onmouseover='javascript:changeImage(\"menu01\",\""+datos[2]+"\",\""+imagenOn+"\")' onmouseout='javascript:changeImage(\"menu01\",\""+datos[2]+"\",\""+imagen+"\")'><img name='"+datos[2]+"' src='" + boton + "' border='0' vspace='2'></a></td>"										
		cadenaMenu+="</tr></table>";		
	
		if (lugar=="pre")
			this.rp0+=cadenaMenu					
		else if (lugar=="post")
			this.rp1T+=cadenaMenu
	}
	this.representarNivel=representarNivel;							

	function ejecutarAccion(nivel,posicion){			
			this.rp0="";this.rp1="";			
						
			for(nn=nivel+1;nn<this.seleccionados.length;nn++)
				this.seleccionados[nn]=null;

			this.formar(this.datos,0)	
	}
	this.ejecutarAccion=ejecutarAccion		
											
	function reEscribir(){				
		var capa;
		if (ie){
			capa = document.all["menu01"];
			capa.innerHTML=this.abrir +this.rp0 + this.rp1 + this.cerrar;				
		}
		else if(ns6){
			capa = document.getElementById("menu01");
			capa.innerHTML=this.abrir +this.rp0 + this.rp1 + this.cerrar;				
		}				
		else{							
				document.layers["menu01"].document.open();					
					document.write(this.abrir +this.rp0 + this.rp1 + this.cerrar);							
				document.layers["menu01"].document.close();								
		 }	
	 
}
	
	this.reEscribir=reEscribir
					
	function escribir(){this.formar(this.datos,0);}
	this.escribir=escribir;
}


/*************************************************************/
//precarga de imagenes para rollOver iconos bajo menu

mail = new Image();
mail.src = "../../img/ico_mail.gif";

mailOn = new Image();
mailOn.src = "../../img/ico_mailOn.gif";
vacio = new Image();
vacio.src = "../../img/trans.gif";
txt_contacto = new Image();
txt_contacto.src = "../../img/Eng/txt_contactoENG.gif";

mapa = new Image();
mapa.src = "../../img/ico_mapa.gif";
mapaOn = new Image();
mapaOn.src = "../../img/ico_mapaOn.gif";
txt_mapa = new Image();
txt_mapa.src = "../../img/Eng/txt_mapaENG.gif";

enlace = new Image();
enlace.src = "../../img/ico_enlaces.gif";
enlaceOn = new Image();
enlaceOn.src = "../../img/ico_enlacesOn.gif";
txt_enlaces = new Image();
txt_enlaces.src = "../../img/Eng/txt_enlacesENG.gif";

imprimir = new Image();
imprimir.src = "../../img/ico_imprimir.gif";
imprimirOn = new Image();
imprimirOn.src = "../../img/ico_imprimirOn.gif";
txt_imprimir = new Image();
txt_imprimir.src = "../../img/Eng/txt_imprimirENG.gif";

/*************************************************************/

//precarga de imagenes para galeria

//sala fresnos
/*
fresno_1p = new Image();
fresno_1p.src = "../../img/gal_fresnos_1p.jpg";
fresno_1g = new Image();
fresno_1g.src = "../../img/gal_fresnos_1g.jpg";
*/
fresno_2p = new Image();
fresno_2p.src = "../../img/gal_fresnos_2p.jpg";
fresno_2g = new Image();
fresno_2g.src = "../../img/gal_fresnos_2g.jpg";

fresno_3p = new Image();
fresno_3p.src = "../../img/gal_fresnos_3p.jpg";
fresno_3g = new Image();
fresno_3g.src = "../../img/gal_fresnos_3g.jpg";

fresno_4p = new Image();
fresno_4p.src = "../../img/gal_fresnos_4p.jpg";
fresno_4g = new Image();
fresno_4g.src = "../../img/gal_fresnos_4g.jpg";

fresno_5p = new Image();
fresno_5p.src = "../../img/gal_fresnos_5p.jpg";
fresno_5g = new Image();
fresno_5g.src = "../../img/gal_fresnos_5g.jpg";

// mirador
/*
mirador_1p = new Image();
mirador_1p.src = "../../img/gal_mirador_1p.jpg";
mirador_1g = new Image();
mirador_1g.src = "../../img/gal_mirador_1g.jpg";
*/
mirador_2p = new Image();
mirador_2p.src = "../../img/gal_mirador_2p.jpg";
mirador_2g = new Image();
mirador_2g.src = "../../img/gal_mirador_2g.jpg";

mirador_3p = new Image();
mirador_3p.src = "../../img/gal_mirador_3p.jpg";
mirador_3g = new Image();
mirador_3g.src = "../../img/gal_mirador_3g.jpg";

mirador_4p = new Image();
mirador_4p.src = "../../img/gal_mirador_4p.jpg";
mirador_4g = new Image();
mirador_4g.src = "../../img/gal_mirador_4g.jpg";

// enebros
/*
enebros_1p = new Image();
enebros_1p.src = "../../img/gal_enebros_1p.jpg";
enebros_1g = new Image();
enebros_1g.src = "../../img/gal_enebros_1g.jpg";
*/
enebros_2p = new Image();
enebros_2p.src = "../../img/gal_enebros_2p.jpg";
enebros_2g = new Image();
enebros_2g.src = "../../img/gal_enebros_2g.jpg";

enebros_3p = new Image();
enebros_3p.src = "../../img/gal_enebros_3p.jpg";
enebros_3g = new Image();
enebros_3g.src = "../../img/gal_enebros_3g.jpg";

enebros_4p = new Image();
enebros_4p.src = "../../img/gal_enebros_4p.jpg";
enebros_4g = new Image();
enebros_4g.src = "../../img/gal_enebros_4g.jpg";

// bastones

bastones_1p = new Image();
bastones_1p.src = "../../img/gal_bastones_1p.jpg";
bastones_1g = new Image();
bastones_1g.src = "../../img/gal_bastones_1g.jpg";

bastones_2p = new Image();
bastones_2p.src = "../../img/gal_bastones_2p.jpg";
bastones_2g = new Image();
bastones_2g.src = "../../img/gal_bastones_2g.jpg";

bastones_3p = new Image();
bastones_3p.src = "../../img/gal_bastones_3p.jpg";
bastones_3g = new Image();
bastones_3g.src = "../../img/gal_bastones_3g.jpg";

bastones_4p = new Image();
bastones_4p.src = "../../img/gal_bastones_4p.jpg";
bastones_4g = new Image();
bastones_4g.src = "../../img/gal_bastones_4g.jpg";
/*
bastones_5p = new Image();
bastones_5p.src = "../../img/gal_bastones_5p.jpg";
bastones_5g = new Image();
bastones_5g.src = "../../img/gal_bastones_5g.jpg";

bastones_6p = new Image();
bastones_6p.src = "../../img/gal_bastones_6p.jpg";
bastones_6g = new Image();
bastones_6g.src = "../../img/gal_bastones_6g.jpg";

bastones_7p = new Image();
bastones_7p.src = "../../img/gal_bastones_7p.jpg";
bastones_7g = new Image();
bastones_7g.src = "../../img/gal_bastones_7g.jpg";
*/
// encinas
encinas_1p = new Image();
encinas_1p.src = "../../img/gal_encinas_1p.jpg";
encinas_1g = new Image();
encinas_1g.src = "../../img/gal_encinas_1g.jpg";

encinas_2p = new Image();
encinas_2p.src = "../../img/gal_encinas_2p.jpg";
encinas_2g = new Image();
encinas_2g.src = "../../img/gal_encinas_2g.jpg";

// madronos
madronos_1p = new Image();
madronos_1p.src = "../../img/gal_madronos_1p.jpg";
madronos_1g = new Image();
madronos_1g.src = "../../img/gal_madronos_1g.jpg";

madronos_2p = new Image();
madronos_2p.src = "../../img/gal_madronos_2p.jpg";
madronos_2g = new Image();
madronos_2g.src = "../../img/gal_madronos_2g.jpg";

madronos_3p = new Image();
madronos_3p.src = "../../img/gal_madronos_3p.jpg";
madronos_3g = new Image();
madronos_3g.src = "../../img/gal_madronos_3g.jpg";

madronos_4p = new Image();
madronos_4p.src = "../../img/gal_madronos_4p.jpg";
madronos_4g = new Image();
madronos_4g.src = "../../img/gal_madronos_4g.jpg";

// caseron
caseron_1p = new Image();
caseron_1p.src = "../../img/gal_caseron_1p.jpg";
caseron_1g = new Image();
caseron_1g.src = "../../img/gal_caseron_1g.jpg";

caseron_2p = new Image();
caseron_2p.src = "../../img/gal_caseron_2p.jpg";
caseron_2g = new Image();
caseron_2g.src = "../../img/gal_caseron_2g.jpg";

caseron_3p = new Image();
caseron_3p.src = "../../img/gal_caseron_3p.jpg";
caseron_3g = new Image();
caseron_3g.src = "../../img/gal_caseron_3g.jpg";

// alamo
/*alamo_1p = new Image();
alamo_1p.src = "../../img/gal_alamo_1p.jpg";
alamo_1g = new Image();
alamo_1g.src = "../../img/gal_alamo_1g.jpg";

alamo_2p = new Image();
alamo_2p.src = "../../img/gal_alamo_2p.jpg";
alamo_2g = new Image();
alamo_2g.src = "../../img/gal_alamo_2g.jpg";

alamo_3p = new Image();
alamo_3p.src = "../../img/gal_alamo_3p.jpg";
alamo_3g = new Image();
alamo_3g.src = "../../img/gal_alamo_3g.jpg";

alamo_4p = new Image();
alamo_4p.src = "../../img/gal_alamo_4p.jpg";
alamo_4g = new Image();
alamo_4g.src = "../../img/gal_madronos_4g.jpg";*/

// presidente

presidente_1p = new Image();
presidente_1p.src = "../../img/gal_presidente_1p.jpg";
presidente_1g = new Image();
presidente_1g.src = "../../img/gal_presidente_1g.jpg";

presidente_2p = new Image();
presidente_2p.src = "../../img/gal_presidente_2p.jpg";
presidente_2g = new Image();
presidente_2g.src = "../../img/gal_presidente_2g.jpg";

presidente_3p = new Image();
presidente_3p.src = "../../img/gal_presidente_3p.jpg";
presidente_3g = new Image();
presidente_3g.src = "../../img/gal_presidente_3g.jpg";

presidente_4p = new Image();
presidente_4p.src = "../../img/gal_presidente_4p.jpg";
presidente_4g = new Image();
presidente_4g.src = "../../img/gal_presidente_4g.jpg";

presidente_5p = new Image();
presidente_5p.src = "../../img/gal_presidente_5p.jpg";
presidente_5g = new Image();
presidente_5g.src = "../../img/gal_presidente_5g.jpg";

presidente_6p = new Image();
presidente_6p.src = "../../img/gal_presidente_6p.jpg";
presidente_6g = new Image();
presidente_6g.src = "../../img/gal_presidente_6g.jpg";
/*
presidente_7p = new Image();
presidente_7p.src = "../../img/gal_presidente_7p.jpg";
presidente_7g = new Image();
presidente_7g.src = "../../img/gal_presidente_7g.jpg";
*/
// pino
pino_1p = new Image();
pino_1p.src = "../../img/gal_pino_1p.jpg";
pino_1g = new Image();
pino_1g.src = "../../img/gal_pino_1g.jpg";

pino_2p = new Image();
pino_2p.src = "../../img/gal_pino_2p.jpg";
pino_2g = new Image();
pino_2g.src = "../../img/gal_pino_2g.jpg";

pino_3p = new Image();
pino_3p.src = "../../img/gal_pino_3p.jpg";
pino_3g = new Image();
pino_3g.src = "../../img/gal_pino_3g.jpg";

pino_4p = new Image();
pino_4p.src = "../../img/gal_pino_4p.jpg";
pino_4g = new Image();
pino_4g.src = "../../img/gal_pino_4g.jpg";

pino_5p = new Image();
pino_5p.src = "../../img/gal_pino_5p.jpg";
pino_5g = new Image();
pino_5g.src = "../../img/gal_pino_5g.jpg";

// habitaciones
habitaciones_1p = new Image();
habitaciones_1p.src = "../../img/gal_habitaciones_1p.jpg";
habitaciones_1g = new Image();
habitaciones_1g.src = "../../img/gal_habitaciones_1g.jpg";

habitaciones_2p = new Image();
habitaciones_2p.src = "../../img/gal_habitaciones_2p.jpg";
habitaciones_2g = new Image();
habitaciones_2g.src = "../../img/gal_habitaciones_2g.jpg";

habitaciones_3p = new Image();
habitaciones_3p.src = "../../img/gal_habitaciones_3p.jpg";
habitaciones_3g = new Image();
habitaciones_3g.src = "../../img/gal_habitaciones_3g.jpg";

habitaciones_4p = new Image();
habitaciones_4p.src = "../../img/gal_habitaciones_4p.jpg";
habitaciones_4g = new Image();
habitaciones_4g.src = "../../img/gal_habitaciones_4g.jpg";

habitaciones_5p = new Image();
habitaciones_5p.src = "../../img/gal_habitaciones_5p.jpg";
habitaciones_5g = new Image();
habitaciones_5g.src = "../../img/gal_habitaciones_5g.jpg";

habitaciones_6p = new Image();
habitaciones_6p.src = "../../img/gal_habitaciones_6p.jpg";
habitaciones_6g = new Image();
habitaciones_6g.src = "../../img/gal_habitaciones_6g.jpg";

habitaciones_7p = new Image();
habitaciones_7p.src = "../../img/gal_habitaciones_7p.jpg";
habitaciones_7g = new Image();
habitaciones_7g.src = "../../img/gal_habitaciones_7g.jpg";

// restaurante
/*
restaurante_1p = new Image();
restaurante_1p.src = "../../img/gal_restaurante_1p.jpg";
restaurante_1g = new Image();
restaurante_1g.src = "../../img/gal_restaurante_1g.jpg";
*/
restaurante_2p = new Image();
restaurante_2p.src = "../../img/gal_restaurante_2p.jpg";
restaurante_2g = new Image();
restaurante_2g.src = "../../img/gal_restaurante_2g.jpg";

restaurante_3p = new Image();
restaurante_3p.src = "../../img/gal_restaurante_3p.jpg";
restaurante_3g = new Image();
restaurante_3g.src = "../../img/gal_restaurante_3g.jpg";

restaurante_4p = new Image();
restaurante_4p.src = "../../img/gal_restaurante_4p.jpg";
restaurante_4g = new Image();
restaurante_4g.src = "../../img/gal_restaurante_4g.jpg";

restaurante_5p = new Image();
restaurante_5p.src = "../../img/gal_restaurante_5p.jpg";
restaurante_5g = new Image();
restaurante_5g.src = "../../img/gal_restaurante_5g.jpg";

restaurante_6p = new Image();
restaurante_6p.src = "../../img/gal_restaurante_6p.jpg";
restaurante_6g = new Image();
restaurante_6g.src = "../../img/gal_restaurante_6g.jpg";

restaurante_7p = new Image();
restaurante_7p.src = "../../img/gal_restaurante_7p.jpg";
restaurante_7g = new Image();
restaurante_7g.src = "../../img/gal_restaurante_7g.jpg";
/*
restaurante_8p = new Image();
restaurante_8p.src = "../../img/gal_restaurante_8p.jpg";
restaurante_8g = new Image();
restaurante_8g.src = "../../img/gal_restaurante_8g.jpg";
*/
// salon
salon_1p = new Image();
salon_1p.src = "../../img/gal_salon_1p.jpg";
salon_1g = new Image();
salon_1g.src = "../../img/gal_salon_1g.jpg";

salon_2p = new Image();
salon_2p.src = "../../img/gal_salon_2p.jpg";
salon_2g = new Image();
salon_2g.src = "../../img/gal_salon_2g.jpg";

salon_3p = new Image();
salon_3p.src = "../../img/gal_salon_3p.jpg";
salon_3g = new Image();
salon_3g.src = "../../img/gal_salon_3g.jpg";

salon_4p = new Image();
salon_4p.src = "../../img/gal_salon_4p.jpg";
salon_4g = new Image();
salon_4g.src = "../../img/gal_salon_4g.jpg";

salon_5p = new Image();
salon_5p.src = "../../img/gal_salon_5p.jpg";
salon_5g = new Image();
salon_5g.src = "../../img/gal_salon_5g.jpg";

salon_6p = new Image();
salon_6p.src = "../../img/gal_salon_6p.jpg";
salon_6g = new Image();
salon_6g.src = "../../img/gal_salon_6g.jpg";

// complejo
/*
complejo_1p = new Image();
complejo_1p.src = "../../img/gal_complejo_1p.jpg";
complejo_1g = new Image();
complejo_1g.src = "../../img/gal_complejo_1g.jpg";

complejo_2p = new Image();
complejo_2p.src = "../../img/gal_complejo_2p.jpg";
complejo_2g = new Image();
complejo_2g.src = "../../img/gal_complejo_2g.jpg";

complejo_3p = new Image();
complejo_3p.src = "../../img/gal_complejo_3p.jpg";
complejo_3g = new Image();
complejo_3g.src = "../../img/gal_complejo_3g.jpg";

complejo_4p = new Image();
complejo_4p.src = "../../img/gal_complejo_4p.jpg";
complejo_4g = new Image();
complejo_4g.src = "../../img/gal_complejo_4g.jpg";

complejo_5p = new Image();
complejo_5p.src = "../../img/gal_complejo_5p.jpg";
complejo_5g = new Image();
complejo_5g.src = "../../img/gal_complejo_5g.jpg";

complejo_6p = new Image();
complejo_6p.src = "../../img/gal_complejo_6p.jpg";
complejo_6g = new Image();
complejo_6g.src = "../../img/gal_complejo_6g.jpg";

complejo_7p = new Image();
complejo_7p.src = "../../img/gal_complejo_7p.jpg";
complejo_7g = new Image();
complejo_7g.src = "../../img/gal_complejo_7g.jpg";

complejo_8p = new Image();
complejo_8p.src = "../../img/gal_complejo_8p.jpg";
complejo_8g = new Image();
complejo_8g.src = "../../img/gal_complejo_8g.jpg";
*/

// alrededores
alrededores_1p = new Image();
alrededores_1p.src = "../../img/gal_alrededores_1p.jpg";
alrededores_1g = new Image();
alrededores_1g.src = "../../img/gal_alrededores_1g.jpg";

alrededores_2p = new Image();
alrededores_2p.src = "../../img/gal_alrededores_2p.jpg";
alrededores_2g = new Image();
alrededores_2g.src = "../../img/gal_alrededores_2g.jpg";

alrededores_3p = new Image();
alrededores_3p.src = "../../img/gal_alrededores_3p.jpg";
alrededores_3g = new Image();
alrededores_3g.src = "../../img/gal_alrededores_3g.jpg";

alrededores_4p = new Image();
alrededores_4p.src = "../../img/gal_alrededores_4p.jpg";
alrededores_4g = new Image();
alrededores_4g.src = "../../img/gal_alrededores_4g.jpg";

alrededores_5p = new Image();
alrededores_5p.src = "../../img/gal_alrededores_5p.jpg";
alrededores_5g = new Image();
alrededores_5g.src = "../../img/gal_alrededores_5g.jpg";

alrededores_6p = new Image();
alrededores_6p.src = "../../img/gal_alrededores_6p.jpg";
alrededores_6g = new Image();
alrededores_6g.src = "../../img/gal_alrededores_6g.jpg";

alrededores_7p = new Image();
alrededores_7p.src = "../../img/gal_alrededores_7p.jpg";
alrededores_7g = new Image();
alrededores_7g.src = "../../img/gal_alrededores_7g.jpg";

alrededores_8p = new Image();
alrededores_8p.src = "../../img/gal_alrededores_8p.jpg";
alrededores_8g = new Image();
alrededores_8g.src = "../../img/gal_alrededores_8g.jpg";

/*************************************************************/


function abrir(theURL,winName,features) { 
  window.open(theURL,winName,features);
}

function Cambia (marca,img) {
   if (document.images) {
        if (document.images[img].cambcargado) {
            if (marca==1) document.images[img].src = document.images[img].camb.src
            else document.images[img].src = document.images[img].camb.oldsrc
        }
   }
}
function cargaCambia (img,adresse) {
   if (document.images) {
        img.onload = null;
        img.camb = new Image ();
        img.camb.oldsrc = img.src;
        img.camb.src = adresse;
        img.cambcargado = true;
   }
}
