// JavaScript Document
	var navegador="";
	
	if(navigator.userAgent.indexOf("MSIE")>=0) 
	{
		navegador=0;
	}
	else 
	{
		navegador=1;
	}

	function setDivPie()
	{	    
		divPIE=document.getElementById("bottom");//31px
		htmlheight = document.body.parentNode.scrollHeight;
		htmlheight = htmlheight - 38;
		divPIE.style.top = htmlheight + "px"; 
	}


	function setDivFADE()
	{
		divFADE=document.getElementById("FADE");
		divFADE.style.zIndex=1;
		document.getElementById("contenedor").style.zIndex=-1;
		htmlheight = document.body.parentNode.scrollHeight;
		divFADE.style.height = htmlheight + "px"; 
		if (navegador==0)
		{
			divFADE.style.backgroundColor="#000000";
			divFADE.style.filter="alpha(opacity=70)";
		}
		else
		{
			divFADE.style.opacity=".90";
			divfado=document.getElementById("fado");
			divfado.style.backgroundColor="#000000";
			divfado.style.height=divFADE.style.height;
			divfado.style.width="100%";
			divfado.style.position="fixed";
			divfado.style.opacity=".80";
			divfado.style.zIndex=1;
			document.getElementById("contenedor").style.position="absolute";
			document.getElementById("contenedor").style.left=((document.body.parentNode.scrollWidth-900)/2) +"px";
		}
	}
	
	function resetDivFADE()
	{
		divFADE=document.getElementById("FADE");
		divFADE.style.zIndex=-1;
		divFADE.style.backgroundColor="";
		divFADE.style.filter="";
		divFADE.style.opacity="";
		if (navegador==1)
		{
			divfado=document.getElementById("fado");
			divfado.style.width="";
			divfado.style.position="fixed";
			divfado.style.backgroundColor="";
		}
		document.getElementById("contenedor").style.zIndex=1;
		document.getElementById("contenedor").style.position="relative";
		document.getElementById("contenedor").style.left="";
	}
	
	function setCapas(idCapa)
	{
		document.getElementById(idCapa).style.display="block";
		setDivFADE();
	}
	
	function resetCapas(idCapa)
	{
		document.getElementById(idCapa).style.display="none";
		resetDivFADE();
	}