
  function move_it()
  {
    var window_width=document.all? document.body.clientWidth : window.innerWidth;
    var menu_width = document.getElementById('menu_overdiv_id').offsetWidth;
    var sidebar_width = document.getElementById('side_bar_id').offsetWidth;
    if (document.all||document.getElementById)
    {
      document.getElementById('side_bar_id').style.left = (parseInt(window_width)/2) - 400;
      document.getElementById('menu_overdiv_id').style.left = (parseInt(window_width)/2) - 400 + parseInt(sidebar_width) - 49;
    }
  }
  function show_col(e,which)
  {
    var sub_colname = "sub" + which.id;
    var top_colid   = which.id + "_top";
    if( isMouseLeaveOrEnter(e,which))
    {
      document.getElementById(sub_colname).style.display = 'block';
      document.getElementById(top_colid).style.backgroundColor='#C83A49';
      document.getElementById(top_colid).style.color='#FCCA7C';
    }
  }
  function hide_col(e,which)
  {
    var sub_colname = "sub" + which.id;
    var top_colid   = which.id + "_top";
    if( isMouseLeaveOrEnter(e,which))
    {
      document.getElementById(sub_colname).style.display = 'none';
      document.getElementById(top_colid).style.backgroundColor='#3E166F';
      document.getElementById(top_colid).style.color='white';
    }
  }
  function liteme(e,which)
  {
    if( isMouseLeaveOrEnter(e,which) )
    {
      which.style.backgroundColor='#C83A49';
      which.style.color='#FCCA7C';
    }
  }
  function unliteme_top(e,which)
  {
    if( isMouseLeaveOrEnter(e,which) )
    {
      which.style.backgroundColor='#3E166F';
      which.style.color='white';
    }
  }
  function unliteme(e,which)
  {
    if( isMouseLeaveOrEnter(e,which) )
    {
      which.style.backgroundColor='white';
      which.style.color='black';
    }
  }

  //javascript function taken from Dynamic Tools
  function isMouseLeaveOrEnter(e, handler)
  {
    if (e.type != 'mouseout' && e.type != 'mouseover')
      { return false; }
    var reltg = e.relatedTarget ? e.relatedTarget : e.type == 'mouseout' ? e.toElement : e.fromElement;
    while (reltg && reltg != handler)
      { reltg = reltg.parentNode; }
    return (reltg != handler);
  }


