// JavaScript Document

// expand or collapse the list by setting the correct style
// on the parent list item.
function toggle( e )
{
  // apply style to hide or show list elements
  if( e.parentNode.className == 'hide' )
    e.parentNode.className = 'expand';
  else
    e.parentNode.className = 'hide';
}

// prevent a click on a child list element from reaching the
// parent.  
function cancel( evt )
{
  // stop event from bubbling
  if( window.event )
    window.event.cancelBubble = true;  // ie
  else if (evt.stopPropagation) 
    evt.stopPropagation();  // firefox
}
