// JavaScript Document

// for the drop out parts of the menu - in conjunction with the CSS file

menuFunction = function() {

	
	if(!document.body.currentStyle) return;
	var subMenus = document.getElementsByName('submenu');
	for(var i=0; i<subMenus.length; i++) {
		var li = subMenus[i].parentNode;
		if(li && li.lastChild.style) {
			li.onmouseover = function() {
				this.lastChild.style.visibility = 'visible';
			}
			li.onmouseout = function() {
				this.lastChild.style.visibility = 'hidden';
			}
		}
	}
}
window.onload=menuFunction;

