function topnav() {

  var topnavlinks = document.getElementById('topnav').getElementsByTagName('LI');

  for (var i=0; i<topnavlinks.length; i++) {
    topnavlinks[i].onmouseover=function() { this.className+=" current"; }
    topnavlinks[i].onmouseout=function() { this.className=this.className.replace(new RegExp("current\\b"), ""); }
  }

}
addLoadEvent(topnav);
