function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

var ns4 = (document.layers)?true:false;
var dom = (document.getElementById)?true:false;
var ie4 = ((dom == false) && document.all)?true:false;
var currentNav = null;
var timer = null;
var currentSection = null;

function overNav(navId){
	clearTimeout(timer);
	currentNav = navId;
	showNav(navId);
	return true;
}

function offNav(navId){
	timer = setTimeout("hideNav("+navId+")",100);
	return true;
}

function overItem(navId,itemId){
	clearTimeout(timer);
	return true;
}
function offItem(navId,itemId){
	var tmplayer = 'nav'+navId;
	timer = setTimeout("hideNav("+navId+")",100);
	return true;
}

function showNav(menu){
	hideAll(menu)
	return true;
}

function hideNav(navId){
	if (dom) 
	{
		eval("document.getElementById(\"nav"+navId+"\").style.visibility = \"hidden\";");
	}
	else if (ns4)
	{
		eval("document.layers[\"nav"+navId+"\"].visibility = \"hide\";");
	}
	else if (ie4)
	{
		eval('document.all["nav'+navId+'"].style.visibility = "hidden"');
	}
	currentNav = null;
	return true;
}

function hideAll(menu){
    if (dom){
	var id_count = 0;
	while (document.getElementById("nav"+id_count)) {
		if (id_count == menu) {
			eval('node = document.getElementById("nav'+menu+'")');
			node.style.visibility = 'visible';
		} else {
			document.getElementById("nav"+id_count).style.visibility = "hidden";
		}
		id_count++;
	}
    }
    else if (ns4) 
	{
	var id_count = 0;
	while (document.layers["nav"+id_count]) {
		if (id_count == menu) {
			eval('document.layers["nav'+menu+'"].visibility = "show"');
		} else {
			document.layers["nav1"+id_count].visibility = "hide";
		} 
		id_count++;
	}
    }
    else if (ie4)
	{
	var id_count = 0;
	while (document.all["nav1"+id_count]) {
		if (id_count == menu) {
			eval('document.all["nav'+menu+'"].style.visibility = "visible"');
		} else {
			document.all["nav1"+id_count].style.visibility = "hidden";
		}
		id_count++;
	}
    }
    return true;
}

function setStatus(str){
    window.status = str;
    return true;
}

function clearStatus(){
    window.status = '';
    return true;
}

function setCurrent(tmp){
    currentSection = tmp; 
    return true;
}
