//*---------------------------------------------------
// DHTML MENUS
// Re-purposed Fireworks' dynamic menu system with
// better use of settings controls.
//--------------------------------------------------*/


/*------------- Global Vars -------------*/

var menuUpStateText = "#000000";
var menuOverStateText = "#993311";
var menuUpStateCell = "#BC994D";
var menuOverStateCell = "#EFEFCE";
var menuLiteBgColor = "#BC994D";
var menuBorderBgColor = "#993311";
var menuBGColor = "#BC994D";

var menuCellWidth = 185;
var menuCellHeight = 17;

var menuFontFace = "Verdana, Geneva, sans-serif";
var menuFontSize = "10";

var menuTextAlign = "left";
var menuTextVAlign = "top";
var menuCellPadding = 1;
var menuCellSpacing = 0;
var menuDelay = 800;
var menuSubXOffset = -5;
var menuSubYOffset = 7;
var menuSubRelativeToItem = true;
var menuShowBorders = true;
var menuVertical = true;
var menuTextIndent = 0;
var menuTF1 = false;
var menuTF2 = false;

var menuFontWeight = "";				// bold
var menuFontStyle = "";					// italic
var menuHideOnMouseOut = true;
var menuChildMenuIcon = "images/arrow.gif";
var menuBorderWidth = 1;


//POSITIONING THE MENUS
var screenWidth;
var correction;
var menuHoriz;

var isDom = (document.getElementById) ? true : false;
var isNS4 = (document.layers) ? true : false;
var isIE = (document.all) ? true : false;
var isIE4 = isIE && !isDom;
var isMac = (navigator.appVersion.indexOf("Mac") != -1);
var isIE4M = isIE4 && isMac;

function setMenuPos() {
	if (isDom || isIE || isIE4M) {
	  screenWidth = document.body.offsetWidth;
	  correction = 220;
	} else if (isNS4) {
	  screenWidth = window.innerWidth;
	  correction = 220;
	} else {
	  screenWidth = document.body.offsetWidth;
	  correction = 220;
	}
	menuHoriz = (screenWidth / 2) - correction;
}