/////////////////////////////////////////////////////
hovercolor   = "#507F39";	// color name/code
bgcolor      = "#000090";	// color name/code
background   = "";			// picture url
cellspacing  = "0";
cellpadding  = "2";

menu_border  = 1;			// IE only
border_color = "#FFFFFF";	// IE only

delay = 750;				//Delay of menus after a mouseout (in ms)
	
arrow_pic    = "/images/white_arrow.gif"; // url of arrow picture for submenus
print_id = false;		//only enable to find the ID of the layer you want to display
//////////////////////////////////////////////////////
No3 = (parseInt(navigator.appVersion) > 3) ? 1:0;
var timer = new Array();
layer_counter = 0;		//initializes for layer ID's (each Menu has a unique ID)
layers = new Array();
///////////////////////////////////////////////////////////////////////////////////////////////////////
function getWindowWidth()
	{
	if (navigator.userAgent.indexOf("MSIE") > 0) 
		{
		return document.body.clientWidth;
		}
	else 
		{                        
		return window.outerWidth;
		}
	}
function show(id)	//where id is the furthest layer id from the root
	{
	if (id != -1)	//if we are not at the root
		{
		clearTimeout(timer[id]);
		setVisible(true,id);
		show(layers[id].parent);
		}
	}
function hide()
	{
	for (i=0;i<layers.length;i++)
		{
		timer[i] = setTimeout("setVisible(false,"+layers[i].id+")",delay);
		}
	}
function hideNOW()
	{
	for (i=0;i<layers.length;i++)
		{
		clearTimeout(timer[i]);
		setVisible(false,layers[i].id);
		}
	}
function setVisible(visible, id)
	{
	if (visible)
		{
		//current_layer.setVisibility("visible");
		if (navigator.family == 'ie4')	//MSIE 4.x+
			{
			document.all["L"+id].style.visibility = "visible";
			}
		else if (navigator.family == 'nn4')	//Netscape 4.x
			{
			document.layers["L"+id].visibility = "visible";
			}
		else if (navigator.family == "gecko")	//Netscape 6.x and other Mozilla based.
			{
			document.getElementById('L'+id).style.visibility = "visible";
			}
		}
	else if (!visible)
		{
//		current_layer.setVisibility("hidden");
		if (navigator.family == 'ie4')	//MSIE 4.x+
			{
			document.all["L"+id].style.visibility = "hidden";
			}
		else if (navigator.family == 'nn4')	//Netscape 4.x
			{
			document.layers["L"+id].visibility = "hidden";
			}
		else if (navigator.family == "gecko")	//Netscape 6.x and other Mozilla based.
			{
			//document.write("Layer: " + id + "\n");
			document.getElementById('L'+id).style.visibility = "hidden";
			}
		}
	}