var thebgcolor;
var thetxtcolor;

function btnover(mydiv,bgcolor,txtcolor) {
 thediv = document.getElementById(mydiv);
 thea = thediv.childNodes[0];
 thebgcolor = thediv.style.backgroundColor;
 thetxtcolor = thea.style.color;
 thediv.style.backgroundColor= bgcolor;
 thea.style.color = txtcolor;
}

function btnout(mydiv) {
  thediv = document.getElementById(mydiv);
  thediv.style.backgroundColor= thebgcolor;
  thediv.style.color= thetxtcolor;
 thea = thediv.childNodes[0];
 thea.style.color = thetxtcolor;
}

function handlemenus() {
 p1 = document.location.pathname;
 p2 = p1.substring(p1.lastIndexOf("/")+1);
 p3 = p1.substring(0,p1.lastIndexOf("/"));
 page = p2.substring(0,p2.lastIndexOf("."));
 section = p3.substring(p3.lastIndexOf("/")+1);
}

function show(id) {
 document.getElementById("collapsablehidden_"+id).style.display="none";
 document.getElementById("collapsabledisplayed_"+id).style.display="block";
}

function hide(id) {
 document.getElementById("collapsablehidden_"+id).style.display="block";
 document.getElementById("collapsabledisplayed_"+id).style.display="none";
}
