function expand_collapse(id)
{
   if (document.getElementById)
   {
      if (document.getElementById(id).style.display == 'none')
      {
         document.getElementById(id).style.display = 'block';
         document.getElementById("x" + id).innerHTML = "&nbsp;[-]";
      }
      else
      {
         document.getElementById(id).style.display = 'none';
         document.getElementById("x" + id).innerHTML = "[+]";
      }
   }
}

function highlight_menubar(id)
{
  if (document.getElementById)
  {
    
  }
}

var close_timer;
var close_item;

function menubarmouseover(the_item)
{
    the_item.className='menubaritemhighlight';
}
function menubarmouseout(the_item)
{
    the_item.className='menubaritem';
}
function menubarmouseoverdropdown(the_item, the_menu)
{
    menubarmouseover(the_item);
    var menu_by_id = document.getElementById(the_menu);
    if (menu_by_id) menu_by_id.style.display='block';
    if (the_menu != close_item) closeItem();
    cancelCloseTime();
}
function menubarmouseoutdropdown(the_item, the_menu)
{
    menubarmouseout(the_item);
    setCloseTime(the_menu);
}
function setCloseTime(item)
{
    close_item = item;
    close_timer = window.setTimeout(closeItem, 40);
}
function cancelCloseTime()
{
    window.clearTimeout(close_timer);
    close_timer=null;
}

function closeItem()
{
    var close_item_by_id = document.getElementById(close_item)
    if (close_item_by_id) close_item_by_id.style.display='none';    
}