

function quitarhover(nombrecapa)
{
	document.getElementById(nombrecapa).className="margen";
}

function cambiarImagenPequenia(imagen)
		{
		
			var imagenes=new Array("central_fotovoltaica002_th.jpg","central_fotovoltaica039_th.jpg", "central_fotovoltaica046_th.jpg","central_fotovoltaica039_th.jpg","central_fotovoltaica053_th.jpg")
			//var imagen=document.getElementById("Image1").src
			//imagen= imagen.split(".")[0] + "_th.jpg"
			//alert(imagen)			
			//document.getElementById("botonHome").style.backgroundImage="url(Images/central_fotovoltaica013_th.jpg)";
			//document.getElementById("botonHome").style.backgroundImage="url(" +imagen +")";
			document.getElementById("botonHome").style.backgroundImage="url(Images/" + imagenes[imagen] + ")";
		}
function cambiarImagenPequenia2(imagen)
		{
		
			var imagenes=new Array("central_fotovoltaica002_th.jpg","central_fotovoltaica039_th.jpg", "central_fotovoltaica046_th.jpg","central_fotovoltaica039_th.jpg","central_fotovoltaica053_th.jpg")
			//var imagen=document.getElementById("Image1").src
			//imagen= imagen.split(".")[0] + "_th.jpg"
			//alert(imagen)			
			//document.getElementById("botonHome").style.backgroundImage="url(Images/central_fotovoltaica013_th.jpg)";
			//document.getElementById("botonHome").style.backgroundImage="url(" +imagen +")";
			document.getElementById("botonHome").style.backgroundImage="url(../Images/" + imagenes[imagen] + ")";
		}		
		function cargarLupaOCierre()
		{
			
			if (document.getElementById("tam").value=="g")
			{
				
				contenido=document.getElementById("cajon").innerHTML;
				document.getElementById("cajon").className="ampliado";
				contenido=contenido.replace("AUMENTAR","DISMINUIR");
				contenido=contenido.replace("lupaMas.gif","Cerrar.gif");
				document.getElementById("cajon").innerHTML=contenido;
				
			}
		}
		
		function cambiarClase()
		{
			contenido=document.getElementById("cajon").innerHTML;
			
			//document.getElementById("texto").innerHTML.replace("lupaMas.gif","Cerrar.gif");
			//aumentar
			if(document.getElementById("cajon").className == "contenidos")
			{
				document.getElementById("cajon").className="ampliado";
				contenido=contenido.replace("AUMENTAR","DISMINUIR");
				contenido=contenido.replace("lupaMas.gif","Cerrar.gif");
				document.getElementById("tam").value="g";
				document.getElementById("menu").style.visibility="hidden";
				document.getElementById("submenu").style.visibility="hidden";
				
			}
			//disminuir
			else
			{
				document.getElementById("cajon").className="contenidos";
				contenido=contenido.replace("DISMINUIR","AUMENTAR");
				contenido=contenido.replace("Cerrar.gif","lupaMas.gif");
				document.getElementById("tam").value="p";
				document.getElementById("menu").style.visibility="visible";
				document.getElementById("submenu").style.visibility="visible";
				
				
			}
			document.getElementById("cajon").innerHTML=contenido;
			initLightbox()
		}
		
		
		
		posicion=0;
		
        function cambiar()
        {
			cajaGrande=document.getElementById("ampliado");
			lupa=document.getElementById("lupaMas").innerHTML;
			contenido=document.getElementById("contenidos").innerHTML;
			if(posicion==0)
			{
				contenido=contenido.replace("AUMENTAR","DISMINUIR");
				contenido=contenido.replace("lupaMas.gif","Cerrar.gif");
				cajaGrande.innerHTML=contenido;
				document.getElementById("contenidos").style.display="none";
				cajaGrande.style.display="block";
				cajaGrande.style.zIndex="11";
				//alert(cajaGrande.innerHTML);
				posicion=1;
				initLightbox();
				
			}
			else
			{
				//Hace pequeño
				cajaGrande.style.display="none";
				posicion=0;
				lupa.innerHTML="<a href='javascript:aumentar();'><img src='images/lupaMas.gif'> AUMENTAR</a>";
				document.getElementById("contenidos").style.display="block";
				initLightbox();
				posicion=0;
			}
		}
		
		function visualizarCapaAmpliada()
		{
		if(posicion==0){
				cajaGrande.style.zIndex="11";
				posicion=1;}
		else{
				cajaGrande.style.zIndex="-11";
				posicion=0;}
		}