function ExpandirRecoger(capactual)
{
	if (capactual.style.display == "")
		capactual.style.display = "none";
	else
		capactual.style.display = "";
}

function menu(capactual, botAbierto1, botCerrado1, capa2, botAbierto2, botCerrado2, capa3, botAbierto3, botCerrado3, capa4, botAbierto4, botCerrado4){
	if(capactual.style.display==""){
		botCerrado1.style.display=""; 
		botAbierto1.style.display="none";
	}
	else{
		botCerrado1.style.display="none";
		botAbierto1.style.display="";
	}
	ExpandirRecoger(capactual)
	if (capa2.style.display == ""){
		capa2.style.display = "none";
		botCerrado2.style.display="";
		botAbierto2.style.display="none";
	}
	if (capa3.style.display == ""){
		capa3.style.display = "none";
		botCerrado3.style.display="";
		botAbierto3.style.display="none";
	}
	if (capa4.style.display == ""){
		capa4.style.display = "none";
		botCerrado4.style.display="";
		botAbierto4.style.display="none";
	}
}
function menu3(capactual, botAbierto1, botCerrado1, capa2, botAbierto2, botCerrado2, capa3, botAbierto3, botCerrado3){
	if(capactual.style.display==""){
		botCerrado1.style.display=""; 
		botAbierto1.style.display="none";
	}
	else{
		botCerrado1.style.display="none";
		botAbierto1.style.display="";
	}
	ExpandirRecoger(capactual)
	if (capa2.style.display == ""){
		capa2.style.display = "none";
		botCerrado2.style.display="";
		botAbierto2.style.display="none";
	}
	if (capa3.style.display == ""){
		capa3.style.display = "none";
		botCerrado3.style.display="";
		botAbierto3.style.display="none";
	}
}