


function marcar(id){
	var enlace = document.getElementById("enlace"+id);
	
	if(enlace){
		enlace.className = "selec";	
	}
}


//function menu(enlace, idCSS){
function menu(idHija){
	
	/*	MODIFCACION PARA AUTOACCEDER A LA PRIMERA SUBSECCION */
		window.location = 'index.php?s='+idHija;
	/*	FIN MODIFCACION PARA AUTOACCEDER A LA PRIMERA SUBSECCION */
	
	/*var capa = document.getElementById(idCSS);
	var estado;
	
	
	
	if(capa){
		
		estado = capa.style.display;			
		ocultar("submenu");	
		if(estado == "" || estado == "none"){
			capa.style.display = "block";
			enlace.className = "selec";
			
		}else{
			capa.style.display	= "none";
			enlace.className = "";
			
		}
	}*/
}


function ocultar(classCSS){
	var capas = document.getElementsByTagName("*");
	if(capas){
		for(var i=0; i < capas.length; i++){
			if(capas[i].className == classCSS){
				capas[i].style.display = "none";				
			}
		}
	}
	
	var menu = document.getElementById("menu");
	if(menu){
		var enlaces = menu.getElementsByTagName("a");
		for(i=0; i < enlaces.length; i++){
			enlaces[i].className="";	
		}
	}
}



function mostrar(enlace, id){
	var capa = document.getElementById(id);
	
	var enlaces = document.getElementsByTagName("a");
	if(enlaces){
		for(var i=0; i < enlaces.length; i++){
			if(enlaces[i].className.search("miembro")!=-1){					
				enlaces[i].className = "miembro";				
			}
		}
	}
	
	
	if(capa){		
		
		var estado = capa.style.display;	
		ocultar("curricula");
		
		if(estado == "" || estado == "none"){
			capa.style.display = "block";
			enlace.className = "selec miembro";
			enlace.blur();
		}else{
			capa.style.display	= "none";
			enlace.className = "miembro";
			enlace.blur();
		}
	}	
	
}

function ocultar_curris(claseCSS){
	var capas = document.getElementsByTagName("p");
	if(capas){
		for(var i=0; i < capas.length; i++){
			if(capas[i].className == claseCSS){
				capas[i].style.display = "none";
				
			}
		}
	}	
}


function seleccionar(id){
	var enlace = document.getElementById(id);
	if(enlace){
		enlace.className = "selec";	
	}
}



function favoritos(){
	var nav = navigator.appName;
	
	if(nav == "Microsoft Internet Explorer"){
		window.external.AddFavorite(window.location.href,document.title);
	}else{
		alert("Presione Ctrl + D para añadir esta página a sus bookmarks");	
	}
}




/*	MOOTOOLS 	*/

/*
onload
-----------------------------------*/


