proba esto.
function VisibilidadCapas(String tipo = "") {
if(document.getElementById("PrincipalInicio").style == true){
document.getElementById("PrincipalInicio").style.display = "block";
document.getElementById("AltaLibros").style.display = "none";
}
}
podes poner none, block o inline.
Ademas le agregue d a ocument.getElementById, talvez eso t este dando un error.