function mostrarSubnivel(idCapaS) {
	var capaS = document.getElementById(idCapaS);
	if (capaS.style.display=="none") {
		ocultarSubniveles();
		capaS.style.display = "block";
	} else {
		ocultarSubniveles();
	}	
}
			
function mostrar(idCapa) {
	var capa = document.getElementById(idCapa);
	if (capa.style.display=="none") {
		ocultar();
		ocultarSubniveles();
		capa.style.display = "block";
	} else {
		ocultarSubniveles();
		ocultar();
	}
}
			
function ocultarSubniveles() {

    /* NIVEL 2->FONDOS DE PENSIONES EN NOTAS DE PRENSA */
	var npFondosPensiones = document.getElementById('npFondosPensiones')
	if (npFondosPensiones == "none")
    	npFondosPensiones.style.display = "block";
    else
    	npFondosPensiones.style.display = "none";
				    	
    /* NIVEL 2->FONDOS DE PENSIONES EN ESTADISTICAS */
	var eFondosPensiones = document.getElementById('eFondosPensiones')
	if (eFondosPensiones == "none")
    	eFondosPensiones.style.display = "block";
    else
    	eFondosPensiones.style.display = "none";
				    	
    /* NIVEL 2->CATEGORIAS DE FONDOS EN PUBLICACIONES */
	var pCategoriasFondos = document.getElementById('pCategoriasFondos')
	if (pCategoriasFondos == "none")
    	pCategoriasFondos.style.display = "block";
    else
    	pCategoriasFondos.style.display = "none";
		
    /* NIVEL 2->LEGISLACION EN PUBLICACIONES */
	var pLegislacion = document.getElementById('pLegislacion')
	if (pLegislacion == "none")
    	pLegislacion.style.display = "block";
    else
    	pLegislacion.style.display = "none";
    	
    /* NIVEL 2->DOCUMENTOS EN INFORMACION ASOCIADOS*/
    var iaDocumentos = document.getElementById('iaDocumentos')
    if (iaDocumentos == "none")
    	iaDocumentos.style.display = "block";
    else
    	iaDocumentos.style.display = "none";
}
			
function ocultar(){

	/* NIVEL 1->NOTAS DE PRENSA */
	var notasPrensa = document.getElementById('notasPrensa')
	if (notasPrensa == "none")
    	notasPrensa.style.display = "block";
    else
    	notasPrensa.style.display = "none";
    
	    /* NIVEL 2->FONDOS DE PENSIONES EN NOTAS DE PRENSA */
		var npFondosPensiones = document.getElementById('npFondosPensiones')
		if (npFondosPensiones == "none")
	    	npFondosPensiones.style.display = "block";
	    else
	    	npFondosPensiones.style.display = "none";
			    
    /* NIVEL 1->ESTADISTICAS */
	var estadisticas = document.getElementById('estadisticas')
	if (estadisticas == "none")
    	estadisticas.style.display = "block";
    else
    	estadisticas.style.display = "none";
			    	
	    /* NIVEL 2->FONDOS DE PENSIONES EN ESTADISTICAS */
		var eFondosPensiones = document.getElementById('eFondosPensiones')
		if (eFondosPensiones == "none")
	    	eFondosPensiones.style.display = "block";
	    else
	    	eFondosPensiones.style.display = "none";
		    
    /* NIVEL 1->PUBLICACIONES */
	var publicaciones = document.getElementById('publicaciones')
	if (publicaciones == "none")
    	publicaciones.style.display = "block";
    else
    	publicaciones.style.display = "none";
		
	    /* NIVEL 2->CATEGORIAS DE FONDOS EN PUBLICACIONES */
		var pCategoriasFondos = document.getElementById('pCategoriasFondos')
		if (pCategoriasFondos == "none")
	    	pCategoriasFondos.style.display = "block";
	    else
	    	pCategoriasFondos.style.display = "none";

	    /* NIVEL 2->LEGISLACION EN PUBLICACIONES */
		var pLegislacion = document.getElementById('pLegislacion')
		if (pLegislacion == "none")
	    	pLegislacion.style.display = "block";
	    else
	    	pLegislacion.style.display = "none";
    
    /* NIVEL 1->ENLACES A GESTORAS */
	var enlacesGestoras = document.getElementById('enlacesGestoras')
	if (enlacesGestoras == "none")
    	enlacesGestoras.style.display = "block";
    else
    	enlacesGestoras.style.display = "none";
			    
    /* NIVEL 1->ASOCIACIONES INTERNACIONALES */
	var asociacionesInternacionales = document.getElementById('asociacionesInternacionales')
	if (asociacionesInternacionales == "none")
    	asociacionesInternacionales.style.display = "block";
    else
    	asociacionesInternacionales.style.display = "none";
			    
    /* NIVEL 1->INFORMACIÓN DE ASOCIADOS */
	var informacionAsociados = document.getElementById('informacionAsociados')
	if (informacionAsociados == "none")
    	informacionAsociados.style.display = "block";
    else
    	informacionAsociados.style.display = "none";
}