startList = function() {
	navEl = document.getElementById('navlist');
	if(!navEl) return false;
	for(var i=0; i<navEl.childNodes.length; i++) {
		if(navEl.childNodes[i].nodeName == 'UL') { // erste UL in navRoot
			listRoot = navEl.childNodes[i];
			break;
		}
	}
	if(!listRoot) return false;
	navWidth = 0;
	for(var i=0; i<listRoot.childNodes.length; i++) { // Liste
		nodeLI0 = listRoot.childNodes[i];
		if(nodeLI0.nodeName == 'LI') {
			navWidth += nodeLI0.offsetWidth;
			nodeLI0.onmouseover = function() {
				this.className+= ' over';
			}
			nodeLI0.onmouseout = function() {
				this.className = this.className.replace(/over/g,'');
			}
			//to give li full width with ie6
			for(var j=0; j<nodeLI0.childNodes.length; j++) {
				nodeUL1 = nodeLI0.childNodes[j];
				if(nodeUL1.nodeName == 'UL') {
					nodeUL1.style.display = 'block';
					UL1width = nodeUL1.offsetWidth;
					for(var k=0; k<nodeUL1.childNodes.length; k++) {
						nodeLI1 = nodeUL1.childNodes[k];
						if(nodeLI1.nodeName == 'LI') {
							nodeLI1.style.width = UL1width-4+'px';
						}
					}
					nodeUL1.style.display = 'none';
					nodeUL1.setAttribute('style','');
					nodeUL1.removeAttribute('style');
				}
			}
		}
	}
	navEl.style.width = navWidth+'px';
	navEl.style.visibility = 'visible';
}
window.onload=startList;