nMaxItem = 4;
NameIndex = 0;
DefaultState = 1;

MouseOverState = 2;
MouseDownState = 3;
imgCounter = 0;

ImageList = new Array();

bIsSupportOK = (
	((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 3 )) ||
	((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 ))
);

function AddImageToImageList(name, Default, MouseOver, MouseDown)
{
	ImageList[imgCounter] = new Array(nMaxItem);
	ImageList[imgCounter][NameIndex] = name;
	ImageList[imgCounter][DefaultState] = new Image();
	ImageList[imgCounter][DefaultState].src = Default;
	if (MouseOver != "") {
		ImageList[imgCounter][MouseOverState] = new Image();
		ImageList[imgCounter][MouseOverState].src = MouseOver;
	}
	if (MouseDown != "") {
		ImageList[imgCounter][MouseDownState] = new Image();
		ImageList[imgCounter][MouseDownState].src = MouseDown;
	}

	imgCounter++;
}

function ReplaceImage(name, state)
{
	for (i = 0; i < imgCounter; i++) {
		if (document.images[ImageList[i][NameIndex]] != null) {
			if ((name == ImageList[i][NameIndex]) && (ImageList[i][state] != null))
				document.images[name].src = ImageList[i][state].src;
		}
	}
}

function fnLoadMenus() {
	
	if (window.fw_menu_0) return;
	window.fw_menu_0 = new Menu("root", menuItemWidth, menuItemHeight, menuFontName, menuFontSize, fgcolor, hfgcolor, bgcolor, hbgcolor);
	fw_menu_0.addMenuItem("Visual Community Kiosk Plus", "fnGoto('./VCKiosk.htm')");
	fw_menu_0.addMenuItem("Activity Management", "fnGoto('VCKioskAct.htm')");
	fw_menu_0.addMenuItem("Dining Room Management", "fnGoto('VCKioskDin.htm')");
	fw_menu_0.addMenuItem("Visual Community 2000 Plus&copy;", "fnGoto('VC2000.htm')");
	fw_menu_0.addMenuItem("General Product Information", "fnGoto('GenProd.htm')");
	fw_menu_0.fontWeight="bold";
	fw_menu_0.hideOnMouseOut=true;

	window.fw_menu_1 = new Menu("root", menuItemWidth, menuItemHeight, menuFontName, menuFontSize, fgcolor, hfgcolor, bgcolor, hbgcolor);
	fw_menu_1.addMenuItem("Custom Development", "fnGoto('Custom.htm')");
	fw_menu_1.addMenuItem("Web Site Development", "fnGoto('WebDev.htm')");
	fw_menu_1.addMenuItem("Graphic Design", "fnGoto('Graphics.htm')");
	fw_menu_1.addMenuItem("Technology Consulting", "fnGoto('Consult.htm')");
	fw_menu_1.fontWeight="bold";
	fw_menu_1.hideOnMouseOut=true;

	window.fw_menu_2 = new Menu("root", menuItemWidth, menuItemHeight, menuFontName, menuFontSize, fgcolor, hfgcolor, bgcolor, hbgcolor);
	fw_menu_2.addMenuItem("Support Information", "fnGoto('Support.htm')");
	//fw_menu_2.addMenuItem("Product FAQs", "fnGoto('Faq.htm')");
	fw_menu_2.fontWeight="bold";
	fw_menu_2.hideOnMouseOut=true;

	window.fw_menu_3 = new Menu("root", menuItemWidth, menuItemHeight, menuFontName, menuFontSize, fgcolor, hfgcolor, bgcolor, hbgcolor);
	fw_menu_3.addMenuItem("Home", "fnGoto('VES.htm')");
	fw_menu_3.addMenuItem("About...", "fnGoto('About.htm')");
	//fw_menu_3.addMenuItem("Strategies", "fnGoto('Strategies.htm')");
	fw_menu_3.addMenuItem("Contact Us", "fnGoto('Contact.htm')");
	fw_menu_3.fontWeight="bold";
	fw_menu_3.hideOnMouseOut=true;

	
	fw_menu_3.writeMenus();
	
}

function fnGoto(page)
{
	window.location.href = page;
}

//////////////////////////////////////////////////////////////////////////////
// Menu Colors / Fonts / Settings
//////////////////////////////////////////////////////////////////////////////
var fgcolor = "#00007f";
var bgcolor = "#cfcf8a";
var hfgcolor = "#00007f";
var hbgcolor = "#dfdfdf";
var menuFontName = "Arial, Helvetica, sans-serif";
var menuFontSize = 13;
var menuItemWidth = 200;
var menuItemHeight = 18;
//////////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////////////////
// Add Images
//////////////////////////////////////////////////////////////////////////////
AddImageToImageList("Products", "images/Products.gif", "images/ProductsOvr.gif", "images/Products.gif");
AddImageToImageList("Services", "images/Services.gif", "images/ServicesOvr.gif", "images/Services.gif");
AddImageToImageList("Support", "images/Support.gif", "images/SupportOvr.gif", "images/Support.gif");
AddImageToImageList("Company", "images/Company.gif", "images/CompanyOvr.gif", "images/Company.gif");
//////////////////////////////////////////////////////////////////////////////

