
// ----------------------------------------------------------------------
// toggleDIsclosureIcon
//
// Author: Unknown, modified by srj
//
// Toggles the state of a "disclosure icon" (either a +/- or triangle)
// used to show and hide inline text in a div.
//
// ---
//
function toggleDisclosureIcon(toggleId, e)
{
 if (!e) {
  e = window.event;
 }
 if (!document.getElementById) {
  return false;
 }
 var body = document.getElementById(toggleId);
 if (!body) {
  return false;
 } 
 var im = "toggle_" + toggleId;
 if (body.style.display == 'none') {
  body.style.display = 'block';
  if (document.images) {
   document.images[im].src = "/images/icons/icon_triDown.gif";
  }
 } else {
  body.style.display = 'none';
  if (document.images) {
   document.images[im].src = "/images/icons/icon_triRight.gif";
  }
 }
 if (e) {
  // Stop the event from propagating, which
  // would cause the regular HREF link to
  // be followed, ruining our hard work.
  e.cancelBubble = true;
  if (e.stopPropagation) {
   e.stopPropagation();
  }
 }
}

