// define menu look and feel 
fontFamily				= "arial, helvetica, sans-serif"
fontSize				= 10
fontWeight				= "bold"
fontColor				= "yellow"
fontHighlightColor		= "#444444"
bgColor					= "#444444"
bgHighlightColor		= "yellow"
hAlign					= "left"
vAlign					= "middle"
itemPadding				= 5
itemSpacing				= 0
itemIndent				= 0
menuLightBorderColor	= "white"
menuDarkBorderColor		= "black"
menuLineColor			= "white"
menuBorder				= 1 		// 1=yes, 0=no
hideMenuTime			= 1000		// time until menu dissapears when not in use; in milliseconds


function setMenu(width,height) {
	this.width	= width 	// width of menu
	this.height	= height 	// height of menu items
}

function formatMenu(menu) {
	menu.fontWeight = fontWeight
	menu.hideOnMouseOut = true
	menu.menuBorder = menuBorder
	menu.menuLiteBgColor = menuLightBorderColor
	menu.menuBorderBgColor = menuDarkBorderColor
	menu.bgColor = menuLineColor
}

function loadMenus() {
	/*********************************************************************************************/
	/*
	/*		This is where the menu items are located
	/*
	/*********************************************************************************************/
	
	// PRODUCTS
	menuProducts = new setMenu(160,20) //set menu width and menu item height
	window.menuProducts = new Menu(menuProducts.width,menuProducts.height,fontFamily,fontSize,fontColor,fontHighlightColor,bgColor,bgHighlightColor,hAlign,vAlign,itemPadding,itemSpacing,hideMenuTime,true,true,itemIndent,0,0,true,"root")
	
	/* 
		to add a menu item, paste the following line in a new line under the menu items area below, replace TEXT and URL:
		menuProducts.addMenuItem("TEXT","location='URL'")
	*/
	
	// menu items
	menuProducts.addMenuItem("All Products","location='/products/'")
	menuProducts.addMenuItem("Government/Fleet Products","location='/products/PF-PF5P-001.html'")
	menuProducts.addMenuItem("Consumer Products","location='/products/PF-PF1P-001.html'")
	
	//--------------------------
	
	// ABOUT
	menuAbout = new setMenu(160,20) //set menu width and menu item height
	window.menuAbout = new Menu(menuAbout.width,menuAbout.height,fontFamily,fontSize,fontColor,fontHighlightColor,bgColor,bgHighlightColor,hAlign,vAlign,itemPadding,itemSpacing,hideMenuTime,true,true,itemIndent,0,0,true,"root")
	
	/* 
		to add a menu item, paste the following line in a new line under the menu items area below, replace TEXT and URL:
		menuAbout.addMenuItem("TEXT","location='URL'")
	*/
	
	menuAbout.addMenuItem("About the Company","location='/about/'")
	menuAbout.addMenuItem("Frequently Asked Questions","location='/help/'")
	menuAbout.addMenuItem("Downloads","location='/about/downloads.html'")

	/*********************************************************************************************/
	
	// write menus
	formatMenu(menuProducts)
	formatMenu(menuAbout)
	menuProducts.writeMenus()
}
