var openMenu = "prodserv"; //change this!
var openMenuName = "";

namepart="div";  

function hideLayer(layerName){
  document.all[ layerName ].style.display="none";
}

function showLayer(layerName){
  document.all[ layerName ].style.display="";
}

function change(par) {
// this function displays and hides TOC section when the user clicks on the heading
openMenuName = namepart + openMenu + "_sub";
var menuName = namepart + par + "_sub";
	    if (menuName == openMenuName) {
      // user clicks on an open menu to close it
      hideLayer(openMenuName);
      openMenu = "none";
       // change old header graphic 
}
else {
      // user clicks on a closed menu: new menu opens
      if (menuName != openMenuName) {

      // open new menu
      showLayer(menuName);
        // change new header graphic 
      openMenu = par;
}
}
}

