function isNetscape() {

	// get browser info.
	appName = navigator.appName;
	appLongVer = navigator.appVersion;
	appVer = appLongVer.substring(0, 1);
	// check for Navigator ver 4+.
	if ((appName == "Netscape") && (appVer >= 4)) return true;

	return false;
}

function isIE() {

	// get browser info.
	appName = navigator.appName;
	appLongVer = navigator.appVersion;
	appVer = appLongVer.substring(0, 1);

	// check for IE ver 4+.
	if ((appName == "Microsoft Internet Explorer") && (appVer >= 4)) return true;

	return false;
}

// Show/Hide functions for non-pointer layer/objects
function show(id) {
	if (isNetscape()){
	    document.layers[id].visibility = "show";
		document.layers[id].height = 1;
	}
	else if (isIE()){
		 document.all[id].style.visibility = "visible";
		 document.all[id].style.height = 1;
         document.all[id].style.overflow='visible';
         document.all[id].style.position='relative';
	}
}

function hide(id) {
	if (isNetscape()) {
		document.layers[id].visibility = "hide";
    	document.layers[id].height = 1;
	}
	else if (isIE()){
		 document.all[id].style.visibility = "hidden";
		 document.all[id].style.height = 1;
	     document.all[id].style.overflow='hidden';
	     document.all[id].style.position='absolute';
	}
}

function writeDynText(id,text) {

	if (isNetscape()) {
		// only works in "absolute" positioning!
		document.layers[id].document.open();
		document.layers[id].document.write(text);
		document.layers[id].document.close();
	} else if (isIE()){
		document.all[id].innerHTML = text;
	}

}
function minimizeHeader(cookieName, minHeaderName, maxHeaderName){
   hide(maxHeaderName);
   show(minHeaderName);
}

function maximizeHeader(cookieName, minHeaderName, maxHeaderName){
   hide(minHeaderName);
   show(maxHeaderName);
}