/***********************************************************************

	(c) bxlab 2007
	==============


	some functions to toggle the visibility of blocks

***********************************************************************/
function GetObj(id){
	if (document.getElementById){  // mozilla
		return document.getElementById(id);
	}else if (document.all)	{ // iexplorer
		return document.all[id];
	}
}

function toggleInfo(){
	var x=GetObj('tableinfo');
	if(x.style.display=='block')
		x.style.display='none'
	else
		x.style.display='block';
}


/***********************************************************************

	FIX internet explorers lack of "hover". Hover might actually
	work in IE7..hurray..

***********************************************************************/
function doElements(node){
	if (node.nodeName=="LI") {
		node.onmouseover=function() {
			this.className+=" over";
		}
		node.onmouseout=function() {
			this.className=this.className.replace(" over", "");
		}
	}

	if(node.childNodes){
		for (var i=0; i<node.childNodes.length; i++) {
			doElements(node.childNodes[i]);
		}
	}
}

startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("mainmenu");
		for (var i=0; i<navRoot.childNodes.length; i++) {
			doElements(navRoot.childNodes[i]);
		}
		navRoot = document.getElementById("topmenu");
		for (var i=0; i<navRoot.childNodes.length; i++) {
			doElements(navRoot.childNodes[i]);
		}
	}
}
window.onload=startList;

