/////////////////////////////////////////////////////
//
// openDiv() - now you see it, now you don't - opens
//             and closes named divisions on the page.
//
//      args - sOnDiv = name of div to run on
//             Call with empty sOnDiv to close
//

// put names of all divs in here...
var sDivs = new Array("carolewan", "alancooper", "yvettelowery", "karenbannister");

function openMore(sOpenDiv)
  {
  var elem;

  // first check if this element is already open
  // and if it is, close it...
  if (sOpenDiv != "")
    if (elem = document.getElementById(sOpenDiv))
      {
      if (elem.style.display == "inline")
        {
        elem.style.display = "none";
        return false;  // prevent link from executing
        }
      }

  // otherwise turn off other elements...
  for (var n = 0; n < sDivs.length; n++)
    {
    elem = document.getElementById(sDivs[n]);
    elem.style.display = "none";
    }
  // then turn on the selected one...
  if (sOpenDiv != "")
    if (elem = document.getElementById(sOpenDiv))
      elem.style.display = "inline";
  return false;  // prevent link from executing
  }

function closeMore(sCloseDiv)
  {
  var elem;

  // turn off the specified element...
  if (sCloseDiv != "")
    if (elem = document.getElementById(sCloseDiv))
      elem.style.display = "none";
  return false;  // prevent link from executing
  }
//
// End of File //////////////////////////////////////
