/* SHOW HIDE TOP-LEVEL NAVIGATION DROP-DOWN MENUS
--------------------------------------------------------*/
startList = function() {
	if (navigator.appVersion.indexOf("MSIE 5.0") == -1 && navigator.userAgent.indexOf('Opera') == -1) {
		navRoot = document.getElementById("toplevel");
		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 = "";
				}
			}
		}
	}
}

window.onload = startList;

/* SHOW HIDE SITEMAP
------------------------------------*/
function showSM(close, set) {
	document.getElementById('sitemap').style.display = "block";
	if (!(set == 1)) {
		var c_topmargin = parseFloat(document.getElementById('container').style.marginTop);
		if (!(c_topmargin > 0)) {
			document.getElementById('container').style.marginTop = 0;
		}
	}
	sm_height = document.getElementById('sitemap').style.height;
	sm_topmargin = document.getElementById('sitemap').style.marginTop;
	sm_topmargin = parseFloat(sm_topmargin);
	c_topmargin = document.getElementById('container').style.marginTop;
	c_topmargin = parseFloat(c_topmargin);
	if (document.getElementById('sitemap').style.marginTop == "1px" || close == 1) {
		if (sm_topmargin > -300) {
			new_sm_topmargin = sm_topmargin - 50;
			new_c_topmargin = c_topmargin - 50;
			document.getElementById('sitemap').style.marginTop = new_sm_topmargin + "px";
			if (c_topmargin > 0) {
				document.getElementById('container').style.marginTop = new_c_topmargin + "px";
			}
			sm_timer = setTimeout('showSM(1, 1)', 1);
		} else {
			document.getElementById('sitemap').style.marginTop = "-300px";
			document.getElementById('sitemap').style.display = "none";
			clearTimeout(sm_timer);
		}
	} else {
		if (sm_topmargin < 0) {
			new_sm_topmargin = sm_topmargin + 50;
			new_c_topmargin = c_topmargin + 50;
			document.getElementById('sitemap').style.marginTop = new_sm_topmargin + "px";
			document.getElementById('container').style.marginTop = new_c_topmargin + "px";
			sm_timer = setTimeout('showSM(0, 1)', 1);
		} else {
			document.getElementById('sitemap').style.marginTop = "1px";
			clearTimeout(sm_timer);
		}

	}
}