var hoverFix = function() {
  var list  = document.getElementById('menu');
  var items = list.getElementsByTagName('li');
  for (i = 0, _i = items.length; i < _i; i++) {
    items[i].onmouseover = function() {
      this.className = 'hover';
    }                          
    items[i].onmouseout = function() {
      this.className = '';
    }
  }
}                          
                                              
window.onload = hoverFix;
