// Attach event listeners to the buttons
function findLinks() {
  var links, i;
  // Get the menu element to access the link
  menu = document.getElementById('links');
  btns = menu.getElementsByTagName('a');
  for (i=0; i<btns.length; i++) {
    // Attach event listeners for rollovers 
      btns[i].onmouseover = function(){rollover(this.parentNode);};
      btns[i].onmouseout = function(){rollout(this.parentNode);};
  }
}
function rollover(o) {
  if (o.tagName=="STRONG") o = o.parentNode;
  var links = o.getElementsByTagName('a');
  for (var j=0; j<links.length; j++) {
    links[j].style.textDecoration = 'none';
  }
}

function rollout(o) {
  if (o.tagName=="STRONG") o = o.parentNode;
  var links = o.getElementsByTagName('a');
  for (var j=0; j<links.length; j++) {
    links[j].style.textDecoration = 'underline';
  }
}

// Initialize the rollover
window.onload = findLinks;