window.onload = Init;

function Init () {
	var vList = document.getElementById ('menu');
	if (vList)
	    for (var i = 0; i < vList.childNodes.length; i++)
		if (vList.childNodes[i].nodeType == 1)
		    for (var j = 0; j < vList.childNodes[i].childNodes.length; j++)
			if (vList.childNodes[i].childNodes[j].className == 'contributed') {
			    vList.childNodes[i].childNodes[j].onmouseover = Show;
			    vList.childNodes[i].childNodes[j].onmouseout = Hide;
			    vList.childNodes[i].childNodes[j].parentNode.onmouseover = Show;
			    vList.childNodes[i].childNodes[j].parentNode.onmouseout = Hide;
			}
}

function Show () {
	if (this.nodeName == 'LI') {
	    this.className = 'act';
	    for (var i = 0; i < this.childNodes.length; i++)
		if (this.childNodes[i].nodeName == 'UL')
		    this.childNodes[i].style.display = 'block';
	}
}

function Hide () {
	if (this.nodeName == 'LI') {
	    this.className = '';
	    for (var i = 0; i < this.childNodes.length; i++)
		if (this.childNodes[i].nodeName == 'UL')
		    this.childNodes[i].style.display = 'none';
	}
}