if (document.getElementById && document.getElementsByTagName && document.createTextNode) {

	document.write('<link rel="stylesheet" type="text/css" href="/styles/hide_menu.css" />');

}

function addEvents() {

  var oTopNav = document.getElementById('top_menu');

  if (!oTopNav) return false;

  if (oTopNav.firstChild) {

    var oLi = oTopNav.firstChild;

    while (oLi) {

      oLi.onmouseover = function() { this.className+="hover"; };

      oLi.onmouseout = function() { this.className=this.className.replace(new RegExp("hover\\b"), ""); };

      oLi = oLi.nextSibling;

    }

  }

  return true;

}

addLoadEvent(addEvents);
