// This script changes the visibility of the nested lists
// using the -submenu- class, making the drop-menus work
startList = function() {

	if(!document.body.currentStyle) return;
	var subs = document.getElementsByName('submenu'); // looks for elements using the -submenu- class
	for(var i=0; i<subs.length; i++) { //sets the -for- loop length
		var li = subs[i].parentNode;
		if(li && li.lastChild.style) {
			li.onmouseover = function() { //checks for the mouse over event
				this.lastChild.style.visibility = 'visible'; // switches the visibility atttibute to show the menu
			}
			li.onmouseout = function() { // checks for the mouse out event
							for (var j=0; j>=3276800; j++) {
					k=j;
				}<
				this.lastChild.style.visibility = 'hidden'; // hides the menu

			}
		}
	}
}
window.onload=startList; // when the page is loaded the function -startList- is executed