window.onload=startList;

function startList() {
	navRoot = document.getElementById('nav');
	for (i=0; i<navRoot.childNodes.length; i++) {
		node = navRoot.childNodes[i];
		if (node.nodeName.toLowerCase() == 'li') {
			node.onmouseover= show;
			node.onmouseout= hide;
		}
	}
}

function show() {
	this.className+=' over';
}
function hide() {
	this.className='';
}
