
hdrFontFamily="Verdana";
hdrFontSize="2";
hdrFontColor="#666666";
hdrBGColor="white";
linkFontFamily="Verdana";
linkFontSize="2";
linkBGColor="#EFEFEF";
linkOverBGColor="#2A429B";
linkTarget="_top";
YOffset=140;
staticYOffset=20;
menuBGColor="#EFEFEF";
menuIsStatic="no";
menuHeader="Main Index"
menuWidth=220; // Must be a multiple of 5!
staticMode="advanced"
barBGColor="#2A429B";		// Menu bar background
barFontFamily="Verdana";
barFontSize="2";
barFontColor="a2a2a2";
barText="MENU";
barWidth=50;

var idTimeout = 0;
var direction = 0;
var bIsNetscape = false;

if (navigator.appName == "Netscape")
	bIsNetscape = true;

function menuOpen () {
	var bIsShowing = false;
	
	if (bIsNetscape == true)
		bIsShowing = (document.ocg_menu.left < 0 ? true : false);
	else
		bIsShowing = (ocg_menu.style.pixelLeft < 0 ? true : false);
		
	if (direction >= 0) {
		if (bIsShowing == true) {
			if (bIsNetscape == true)
				document.ocg_menu.left += 10;
			else
				ocg_menu.style.pixelLeft += 10;
				
			direction = 1;
			idTimeout = setTimeout ("menuOpen()", 10);
		} else {
			clearTimeout (idTimeout);
			direction = 0;
		}
	}
}

function menuClose () {
	var bIsShowing = false;
	
	if (bIsNetscape == true)
		bIsShowing = (document.ocg_menu.left > -menuWidth ? true : false);
	else
		bIsShowing = (ocg_menu.style.pixelLeft > -menuWidth ? true : false);

	if (direction <= 0) {
		if (bIsShowing == true) {
			if (bIsNetscape == true)
				document.ocg_menu.left -= 10;
			else
				ocg_menu.style.pixelLeft -= 10;

			idTimeout = setTimeout ("menuClose()", 20);
			direction = -1;
		} else {
			clearTimeout (idTimeout);
			direction = 0;
		}
	}
}

function init() {
	if (bIsNetscape == false) {
		ocg_menu.style.pixelLeft = -menuWidth;
		ocg_menu.style.visibility = "visible";
	}
}

