// JavaScript Document

function boxContent(itself, itemth) {
	var getItem = document.getElementById(itemth);
	if ((itself.className == null) || (itself.className == "")) {
		itself.className = "Expanded";
		getItem.className = "ExpandContent";
	}
	else {
		itself.className = "";
		getItem.className = "";
	}
}

function revealBox(idBox) {
	var boxId = document.getElementById(idBox);
	boxId.className = "ShowThis";
}
function hideBox(idBox) {
	var boxId = document.getElementById(idBox);
	boxId.className = "HideThis";
}

function getHoverIE(idElement) {
	if (document.all && document.getElementById) {
		navRoot = document.getElementById(idElement);
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName == "LI") {
				node.onmouseover = function() {
					this.className += " over";
				}
				node.onmouseout = function() {
					this.className = this.className.replace(" over", "");
   				}
   			}
  		}
 	}
}

startList = function() {
	getHoverIE("menu");
	getHoverIE("languages");
}
window.onload = startList;
