var activeNode;

function startList() {
	if (document.getElementById('menubeans')) {
		navRoot = document.getElementById('menubeans');
		for (i = 0; i < navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName == 'LI') {
				if (node.className == 'active') {
					activeNode = i;
				}
				node.onmouseover = function() {
					navRoot.childNodes[activeNode].className = '';
					this.className = 'active';
				}
  			node.onmouseout = function() {
					this.className = '';
					navRoot.childNodes[activeNode].className = 'active';
				}
			}
		}
	}
}

addLoadEvent(startList);