var mmItemHeight = 24; //Menu item height in pixels
var mmFontFamily = "Verdana,Arial"; //Font family
var mmFontSize = 12; //Font size in pixels
var mmFontColor = "#FFFFFF"; //Font Color
var mmFontWeight = "bold";
var mmMouseOverFontColor = "#3E3E3E"; //Mouse-over font color
var mmMenuBgColor = "#525252"; //Background color of the whole menu layer
var mmMenuBorderThickness = 1.5; //Thickness of menu borders
var mmMenuLiteBgColor = "#EAEAEA";
var mmMenuBorderBgColor = "#525252";
var mmBgColor = "#8B8B8B"; //Menu item normal background color
var mmMouseOverBgColor = "#AFAFAF"; //Menu item mouse-over background color
var mmHorizontalAlign = "left"; //Menu item horizontal alignment
var mmVerticalAlign = "middle"; //Menu item vertical alignment
var mmCellPadding = 0;
var mmCellSpacing = 0;
var mmHideDelay = 200;
var mmChildOffsetX = 0;
var mmChildOffsetY = 0;
var mmShowDividers = true;
var mmVerticalMenu = true; //true: Vertical menu, false: Horizontal Menu
var mmLeftIndent = 3;

function CreateMenu(menuText, menuWidth)
{
	mnu = new Menu(menuText, menuWidth,mmItemHeight,mmFontFamily,mmFontSize,mmFontColor,mmMouseOverFontColor
				  ,mmBgColor,mmMouseOverBgColor,mmHorizontalAlign,mmVerticalAlign,mmCellPadding,mmCellSpacing
				  ,mmHideDelay,mmChildOffsetX,mmChildOffsetY,true,mmShowDividers,mmVerticalMenu,mmLeftIndent,true,true);
	mnu.fontWeight = mmFontWeight;
	mnu.bgColor = mmMenuBgColor;
	mnu.menuBorder = mmMenuBorderThickness;
	mnu.menuLiteBgColor = mmMenuLiteBgColor;
	mnu.childMenuIcon="images/child_menu_icon.gif";
	mnu.menuBorderBgColor = mmMenuBorderBgColor;
	return mnu;
}

function mmLoadMenus()
{
	if (window.about) return;

	//About Us (Main)
	window.auMain = CreateMenu("root",220);
	auMain.addMenuItem("Management Team And Advisors","location='management_team_advisors.php'");

	//Community(Main)
	window.comMain = CreateMenu("root",130);
	comMain.addMenuItem("Past Events","location='events.php?type=1'");
	comMain.addMenuItem("Upcoming Events","location='events.php?type=2'");

	//Workshops(Main)
	window.woMain = CreateMenu("root",150);
	woMain.addMenuItem("Upcoming Workshops","location='workshops.php?type=1'");
	woMain.addMenuItem("Business Killers","location='business_killers.php'");
	woMain.addMenuItem("Career Opportunity","location='career_opportunities.php'");

	//Services(Main)
	window.srMain = CreateMenu("root",190);
	srMain.addMenuItem("Life Insurance","location='life_insurance.php'");
	srMain.addMenuItem("Disability Income Insurance","location='disability_insurance.php'");
	srMain.addMenuItem("Long Term Care Insurance","location='long_term_insurance.php'");
	srMain.addMenuItem("Investment Services","location='investment_services.php'");
	srMain.addMenuItem("Business Planning","location='business_planning.php'");
	srMain.addMenuItem("Retirement Strategies","location='retirement_planning.php'");
	srMain.addMenuItem("Employee Benefits","location='employee_benefits.php'");
	srMain.addMenuItem("Brokerage Contracts","location='brokerage_contracts.php'");

	//Career Opportunity(Main)
	window.coMain = CreateMenu("root",204);
	coMain.addMenuItem("New to the Industry","location='career.php?mode=New'");
	coMain.addMenuItem("Established Professionals","location='career.php?mode=EstProf'");

	writeMenus();
}
mmLoadMenus();
