// JavaScript Document

function startList() {
	if (document.all.tags) {
		navRoot =  document.all["submenu"];//document.getElementsById("submenu");
		for (j = 0; j < navRoot.length; j++){
			navRoot[j].onmouseover = function(){
				this.className += " over";
			}
			navRoot[j].onmouseout = function() {
				this.className = this.className.replace(" over", "");
			}
			for (i = 0; i < navRoot[j].childNodes.length; i++) {
				node = navRoot[j].childNodes[i];
				if (node.nodeName == "SPAN") {
					node.onmouseover = function() {
						this.className += " over";
					}
					node.onmouseout = function() {
						this.className = this.className.replace(" over", "");
					}
				}
			}
		}
	}
}

var menuItems;
function menuInitList(itms){
	menuItems = new Array();
	itmsArray = itms.split(",");
	for(i=0; i<itmsArray.length; i++){
		menuItems.push(document.getElementById(itmsArray[i]));
	}
}

function menuHideAll(){
	for(i=0; i<menuItems.length;i++){
		menuItems[i].style.display="none";
	}
}

function menuShowItem(itemId){
	menuHideAll();
	document.getElementById(itemId).style.display="block";
}

