var retardo;
function ponecapa(nombre1,nombre2,x,y)
{
	var offsetTrail = document.getElementById(nombre2);
	var offsetLeft = 0;
	var offsetTop = 0;
	while (offsetTrail) {
		offsetLeft += offsetTrail.offsetLeft;
		offsetTop += offsetTrail.offsetTop;
		offsetTrail = offsetTrail.offsetParent;
	}
	if (navigator.userAgent.indexOf("Mac") != -1 && typeof document.body.leftMargin != "undefined" && navigator.appName=="Microsoft Internet Explorer" ) {
		offsetLeft += parseInt(document.body.leftMargin);
		offsetTop += parseInt(document.body.topMargin);
	}

//	valor=document.getElementById(nombre2).offsetTop;
//	valor2=document.getElementById(nombre2).offsetLeft;
	valor=parseInt(offsetTop)+y;
	valor2=parseInt(offsetLeft)+x;
	document.getElementById(nombre1).style.top=valor+"px";
	document.getElementById(nombre1).style.left=valor2+"px";	
}
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function esconder(capa) {
  if (document.all)
  {
   	document.all[capa].style.visibility='hidden';   
  }
  else if (document.getElementById)
  {
	 document.getElementById(capa).style.visibility="hidden";	 
  }
  else if (document.layers)
  {
	 document.layers[capa].visibility='hide';
  }
}
function mostrar(capa) {
  if (document.all)
  {
   	document.all[capa].style.visibility='visible';  	
  }
  else if (document.getElementById)
  {
	 document.getElementById(capa).style.visibility="visible";	 
  }
  else if (document.layers)
  {
	 document.layers[capa].visibility='show';
  }
  document.getElementById('QS').className="current"; 
}
function esconde_retarda(capa)
{
clearTimeout(retardo)
//retardo = setTimeout("esconder('" + capa + "')",1000)
retardo = setTimeout("eliminartodo()",1000)
}
function muestra_retarda(ind){
clearTimeout(retardo)
}
function eliminartodo()
{
	esconder("quienes_somos");
	var direccion=''+document.location.pathname;
	var nombres = direccion.split("/");
	pagactual=nombres[nombres.length-1];
	if(pagactual!='quienes.php' && pagactual!='programaACC.php' && pagactual!='ACCumag.php' && pagactual!='objetivos.php')
	{
		document.getElementById('QS').className=""; 
	}
}