window.onload = function () {
  var span_nodes = document.getElementsByTagName('span');
  for (var i = 0; i < span_nodes.length; i++) {
    var mail_str = span_nodes[i].id;
    mail_str = mail_str.substring(2) + '@' + 'n-buturi' + '.co.jp';
    span_nodes[i].innerHTML = 'E-Mail : <a href="mailto:' + mail_str + '">' + mail_str + '</a>';
  }
  
  startList();
}

startList = function() {
  if (document.all && document.getElementById) {
    navRoot = document.getElementById("gn_ul");
    for (i = 0; i < navRoot.childNodes.length; i++) {
      node = navRoot.childNodes[i];
      if (node.nodeName == "LI") {
        node.onmouseover = function() {
          this.className += " over";
        }
        node.onmouseout = function() {
          this.className = this.className.replace(" over", "");
        }
      }
    }
  }
}

