// JavaScript Document

startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			//alert (node.nodeName);
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
		navRoot2 = document.getElementById("subnav");
			for (i=0; i<navRoot2.childNodes.length; i++) {
				node = navRoot2.childNodes[i];
				//alert (node.nodeName);
				if (node.nodeName=="LI") {
					node.onmouseover=function() {
						this.className+=" over";
					}
					node.onmouseout=function() {
						this.className=this.className.replace(" over", "");
					}
				}
			}
		}
	}
window.onload=startList;


/**
 * O-Reilly CSS-Kochbuch 3-89721-397-4
 *
 *
 *
 *
 */


function kadabra(zap) {
	if (document.getElementById) {
		var abra = document.getElementById(zap).style;
		if (abra.display == "block") {
			abra.display = "none";
			} else {
			abra.display = "block"
			} 
		return false
		} else {
		return true
		}
}

