//Name:  treemenu_script.js
//Created By:  Mark Cline
//Company:  Square Root Solutions, Inc.
//Date: December 28, 2005
//Description: This file holds all the javascript used for the tree menus.

 
function expandDiv(tahw) {
  table_contract = new Image(0,0);
  //table_contract.src = "/images/plus.gif";
  table_expand = new Image(0,0);
  //table_expand.src = "/images/minus.gif";
  what  = tahw + "_menu"
  where = tahw + "_table"
  if (document.getElementById(what).style.display == "none") {
    document.getElementById(what).style.display = "";
    where.src = table_expand.src;
  } else {
    document.getElementById(what).style.display = "none";
    where.src = table_contract.src;
  }
}

function collapseDiv(tahw) {
  table_contract = new Image(0,0);
  //table_contract.src = "/images/plus.gif";
  table_expand = new Image(0,0);
  //table_expand.src = "/images/minus.gif";
  what  = tahw + "_menu"
  where = tahw + "_table"
  document.getElementById(what).style.display = "none";
  where.src = table_contract.src;
}
