<!-- // hide this script from non-javascript-enabled browsers

function Get_Cookie(name) {
    var start = document.cookie.indexOf(name+"=");
    var len = start+name.length+1;
    if ((!start) && (name != document.cookie.substring(0,name.length))) return null;
    if (start == -1) return null;
    var end = document.cookie.indexOf(";",len);
    if (end == -1) end = document.cookie.length;
    return unescape(document.cookie.substring(len,end));
}

function Set_Cookie(name,value,expires,path,domain,secure) {
    document.cookie = name + "=" +escape(value) +
        ( (expires) ? ";expires=" + expires.toGMTString() : "") +
        ( (path) ? ";path=" + path : "") + 
        ( (domain) ? ";domain=" + domain : "") +
        ( (secure) ? ";secure" : "");
}

function Delete_Cookie(name,path,domain) {
    if (Get_Cookie(name)) document.cookie = name + "=" +
       ( (path) ? ";path=" + path : "") +
       ( (domain) ? ";domain=" + domain : "") +
       ";expires=Thu, 01-Jan-70 00:00:01 GMT";
}

/* show/hide form elements: */
var ie4 = (document.all) ? true : false;
var ns6 = (!document.all && document.getElementById) ? true : false;

function toggle( targetId ){
    if (ie4){
	target = document.all[targetId];
	if (target.style.display == "none"){
	    target.style.display = "";
	} 
	else {
	    target.style.display = "none";
	}
    }
    else if (ns6){
	target = document.getElementById(targetId);
	if (target.style.display == "none"){
	    target.style.display = "";
	} 
	else {
	    target.style.display = "none";
	}
    }
}

function show( targetId ){
    if (ie4){
	target = document.all[targetId];
	target.style.display = "";
    }
    else if (ns6){
	target = document.getElementById(targetId);
	target.style.display = "";
    }
}

function hide( targetId ){
    if (ie4){
	target = document.all[targetId];
	target.style.display = "none";
    }
    else if (ns6){
	target = document.getElementById(targetId);
	target.style.display = "none";
    }
}
var loggedIn = 0;

function fixupNav() {

    loggedIn = parseInt(Get_Cookie("loggedin"));

    if(loggedIn == 1) {
      hide("logindiv"); show("logoutdiv"); show("intflwlink"); hide("nointflwlink"); show("forumlink"); hide("noforumlink");
    } else {
      show("logindiv"); hide("logoutdiv"); hide("intflwlink"); show("nointflwlink"); hide("forumlink"); show("noforumlink");
    }

    var isAdmin = parseInt(Get_Cookie("isAdmin"));
    if (isAdmin) {
	document.links[0].href="/cgi-bin/admin.cgi"; 
    }
}



// End hiding -->

