/**
 * This function will add className to the LI element
 * @author Eric Shepherd
 * @website http://www.alistapart.com/articles/hybrid
 * @modified by François Lavertu
 * @Stolen and copied by Julien Vadnais (cause that makes me happy)
 */
startList = function(e) {
	if (document.all && document.getElementById) {
		navRoot = document.getElementById(e);
		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", "");
				}
			}
		}
	}
}

init = function(){
	startList('menu');
	startList('sous-menu');
}

window.onload=init;