var mmItemHeight = 20; //Menu item height in pixels
var mmFontFamily = "Trebuchet MS, Tahoma, Arial"; //Font family
var mmFontSize = 12; //Font size in pixels
var mmFontColor = "#FFFFFF"; //Font Color
var mmFontWeight = "normal";
var mmMouseOverFontColor = "#000000"; //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 = "#003366";
var mmBgColor = "#283769"; //Menu item normal background color
var mmMouseOverBgColor = "#869FD1"; //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;

	//Wireless Semicon Information(Main)
	window.wsiMain = CreateMenu("root",190);
	wsiMain.addMenuItem(" Market Growth CAGR%","location='market_growth.html'");
	wsiMain.addMenuItem("Top 5 Suppliers","location='top_5_suppliers.html'");
	wsiMain.addMenuItem("Reports","location='reports.html'");
	wsiMain.addMenuItem("Products & Services","location='products_services.html'");
	wsiMain.addMenuItem("Selected Target Companies","location='selected_target_companies.html'");
	wsiMain.addMenuItem("Links","location='links.html'");

	writeMenus();
}
mmLoadMenus();
