
	function showSub(nb, s) {
		clearTimeout(eval(s + nb));
		if (s=="sub") {
			for (i = 0; i < arSub.length; i++) {
				if (nb != arSub[i]) {
					hideSubExec(arSub[i], "sub");
				}
			}
		}
		if (s=="subsub") {
			hideAllSubSub(nb);
		}
		showSubExec(nb, s);
	}
	function showSubExec(nb, s) {
		if (document.getElementById("nv_lvl_" + nb + "_" + s)) {
			document.getElementById("nv_lvl_" + nb + "_" + s).style.visibility = "visible";
		}
	}
	function hideSub(nb, s) {
		if (document.getElementById("nv_lvl_" + nb + "_" + s)) {
			eval(s + nb + " = setTimeout(\"hideSubExec('" + nb + "', '" + s + "')\", 1000)");
		}
	}
	function hideAllSubSub(nb) {
		for (i = 0; i < arSubSub.length; i++) {
			if (nb != arSubSub[i]) {
				hideSubExec(arSubSub[i], "subsub");
			}
		}
	}
	function hideSubExec(nb, s) {
		if (document.getElementById("nv_lvl_" + nb + "_" + s)) {
			document.getElementById("nv_lvl_" + nb + "_" + s).style.visibility = "hidden";
		}
	}

	var arColBG = Array();
	function doSelect(n) {
		arColBG[n] = document.getElementById(n).style.backgroundColor;
		document.getElementById(n).style.backgroundColor = "#FEEAD5";

	}
	function doDeselect(n) {
		document.getElementById(n).style.backgroundColor = arColBG[n];
	}

	var arColFn = Array();
	function doSelectRoot(n) {
		arColFn[n] = document.getElementById(n + "_link").style.color;
		document.getElementById(n + "_link").style.color  = sColRootSelect;
		document.getElementById(n + "_block").src = "img/nv_block_selected.gif";

	}
	function doDeselectRoot(n) {
		document.getElementById(n + "_link").style.color  = arColFn[n];
		document.getElementById(n + "_block").src = "img/nv_block.gif";
	}
