var mmItemHeight = 20; //Menu item height in pixels
var mmFontFamily = "Arial,Verdana,Tahoma"; //Font family
var mmFontSize = 12; //Font size in pixels
var mmFontColor = "#FAEFED"; //Font Color
var mmFontWeight = "bold";
var mmMouseOverFontColor = "#FAEFED"; //Mouse-over font color
var mmMenuBgColor = "#FFFFFF"; //Background color of the whole menu layer
var mmMenuBorderThickness = 1; //Thickness of menu borders
var mmMenuLiteBgColor = "#FFFFFF";
var mmMenuBorderBgColor = "#7C7C7C";
var mmBgColor = "#EC1F26"; //Menu item normal background color
var mmMouseOverBgColor = "#B2151A"; //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/arrow.gif";
	mnu.menuBorderBgColor = mmMenuBorderBgColor;
	return mnu;
}

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


	//Road Warrior Stories(Main)
	window.rwsMain = CreateMenu("root",150);
	rwsMain.addMenuItem("FRUSTRATIONS","location='"+rewriteBase+"road_warrior_stories/frustration/'");
	rwsMain.addMenuItem("SUCCESSES","location='"+rewriteBase+"road_warrior_stories/success/'");

	//Health and Travel Tips Stories(Main)
	window.httMain = CreateMenu("root", 140);
	httMain.addMenuItem("HEALTH TIPS", "location='"+rewriteBase+"health_and_travel_tips/health/'");
	httMain.addMenuItem("TRAVEL TIPS", "location='"+rewriteBase+"health_and_travel_tips/travel/'");


	writeMenus();
}
mmLoadMenus();
