function getElement(name) {
if (document.getElementById) {
 this.obj = document.getElementById(name);
 if ( this.obj ) { this.style = document.getElementById(name).style; }
} else if (document.all) {
 this.obj = document.all[name];
 if ( this.obj ) { this.style = document.all[name].style; }
} else if (document.layers) {
 this.obj = document.layers[name];
 if ( this.obj ) { this.style = document.layers[name]; }
}
}
NavigationDropDown = function() {
var droptmp = new getElement("nav");
var drop = droptmp.obj.getElementsByTagName("LI");
for (var i = 0; i < drop.length; i++) {
 drop[i].onmouseover = function() {
  this.className += " hovering";
 }
 drop[i].onmouseout = function() {
  this.className = this.className.replace(new RegExp(" hovering\\b"), "");
 }
}
}
if (window.attachEvent) {
window.attachEvent("onload", NavigationDropDown);
}