
function add_white()
{
  if (window.which_menu == undefined) 
    return;    

  which_menu = which_menu.replace(/ /g, "");
  var my_node = document.getElementById(which_menu);
  if (my_node == null)
    return;
  my_node.setAttribute('style',"background-color:white; display: block; line-height: 1.8em; border: 1px solid gray; border-right-color: white; border-collapse: collapse; z-index: 99; ");
}

function add_bold() 
{
  if (window.which_menu == undefined) 
    return;    

  which_menu = which_menu.replace(/ /g, "");
  var my_node = document.getElementById(which_menu);
  if (my_node == null)
    return;

  var first     = my_node.childNodes[0];
  var menu_text =  first.childNodes[0].nodeValue;

  my_node.removeChild(my_node.childNodes[0]);

  var bold =  document.createElement('STRONG');  
  var text =  document.createTextNode(menu_text);
  var span =  document.createElement('SPAN');
  span.setAttribute('style', 'color: #0159B3');
  span.appendChild(text);
  bold.appendChild(span);
  my_node.appendChild(bold);

//  var arrow = document.createElement('IMG');
//  arrow.setAttribute('src', '/images/menu_arrow.png');
//  my_node.insertBefore(arrow, first);

}

function init() {
  add_white();
}


function addEvent(node, type, listener) {
  if (node.addEventListener) {
    node.addEventListener(type, listener, false);
  } else {
    node['e'+type+listener] = listener;
    node[type+listener] = function(){
          node['e'+type+listener] (window.event);
    }
    node.attachEvent('on'+type, node[type+listener]);
  }
}

function new_init()
{
  node = document.getElementById('body1');
  addEvent(node[0], 'load', underline_left_menu_entry);
}


