function init()
{
	//Main Menu items:
	menus[0] = new menu(15, "horizontal", 10, 105, 0, 0, 
						"#2987CC", "#E1E1E9", "Verdana,Helvetica", 8, "bold", "bold", 
						"white", "black", 1, "black", 2, "rollover:images/Bluearrow.jpg:images/Blackarrow.jpg",
						false, true, true, true, 12, true, 
						4, 4, "#B0B0B1");
	menus[0].addItem("default.htm", "", 50, "left", "Home", 0);
	menus[0].addItem("History.htm", "", 80, "center", "About us", 1);
	menus[0].addItem("default.htm", "", 70, "center", "Teams", 7);
	menus[0].addItem("default.htm", "", 80, "center", "e-Folder", 2);
	menus[0].addItem("InvestmentStrategy.htm", "", 85, "center", "Portfolio", 4);
	menus[0].addItem("Press.htm", "", 65, "center", "Press", 5);
	menus[0].addItem("Library.htm", "", 130, "center", "Learning Zone", 6);
	menus[0].addItem("xmas_dinner.htm", "", 60, "center", "Photos", 0);
	menus[0].addItem("Link.htm", "", 55, "center", "Links", 0);
	menus[0].addItem("ContactUs.htm", "", 95, "center", "Contact us", 0);

//Sub Menu for 2nd Main Menu Item ("About us"):
	menus[1] = new menu(210, "vertical", 0, 0, -5, -5, "#E1E1E9", "#2987CC", "Verdana,Helvetica", 9, "bold", 
		"bold", "black", "white", 1, "gray", 2, 62, false, true, false, true, 6, true, 4, 4, "#A1A3A5");
	menus[1].addItem("history.htm", "", 22, "left", "History", 0);
	menus[1].addItem("clubrules.htm", "", 22, "left", "Club Profile", 0);
	menus[1].addItem("ClubVision1.htm", "", 22, "left", "Goals, vision and values", 0);
	menus[1].addItem("members (4).htm", "", 22, "left", "Members profile", 0);
	//menus[1].addItem("default.htm", "NEWWIN", 22, "left", "Core values", 0);

//Sub Menu for 3rd Main Menu Item ("Club fundamentals"):
	menus[2] = new menu(180, "vertical", 0, 0, 0, 0, "#E1E1E9", "#2987CC", "Verdana,Helvetica", 9, "bold", 
		"bold", "black", "white", 1, "gray", 2, "rollover:images/tri-right1.gif:images/tri-right2.gif", 
		false, true, false, false, 0, true, 4, 4, "#A1A3A5");
	
	menus[2].addItem("Constitution and Rules.htm", "", 22, "left", "Constitution & Rules", 0);
	menus[2].addItem("default.htm", "", 22, "left", "Meeting Minutes", 0);
	menus[2].addItem("default.htm", "", 22, "left", "Templates", 0);
    menus[2].addItem("default.htm", "", 22, "left", "Accounts", 3);
	menus[2].addItem("default.htm", "", 22, "left", "Newsletter", 0);

//Sub Menu for Sub Menu "Club fundamentals->Constitution & Rules":
	menus[3] = new menu(180, "vertical", 0, 0, 0, 0, "#E1E1E9", "black", "Verdana,Helvetica", 9, "bold", 
	"bold", "black", "white", 1, "gray", 2, 62, false, true, false, false, 0, true, 4, 4, "#A1A3A5");
	menus[3].addItem("Clubconstitution.htm", "", 22, "left", "Constitution", 0);
	menus[3].addItem("clubrules.htm", "", 22, "left", "Club Rules", 0);


//Sub Menu for Sub Menu "Club fundamentals->Meetings":
	menus[3] = new menu(180, "vertical", 0, 0, 0, 0, "#E1E1E9", "black", "Verdana,Helvetica", 9, "bold", 
	"bold", "black", "white", 1, "gray", 2, 62, false, true, false, false, 0, true, 4, 4, "#A1A3A5");
	menus[3].addItem("Agenda.htm", "", 22, "left", "Cash Account", 0);
	menus[3].addItem("Agenda.htm", "", 22, "left", "Capital Account", 0);
	menus[3].addItem("Agenda.htm", "", 22, "left", "Asset Statements", 0);

//Sub Menu for 4th Main Menu Item ("Investments"):
	menus[4] = new menu(170, "vertical", 0, 0, 0, 0, "#E1E1E9", "#2987CC", "Verdana,Helvetica", 9, "bold", 
	"bold", "black", "white", 1, "gray", 2, ">>", false, true, false, false, 0, true, 4, 4, "#A1A3A5");
	menus[4].addItem("InvestmentStrategy.htm", "", 22, "left", "Strategy", 0);
	menus[4].addItem("Portfolio1.htm", "", 25, "left", "Portfolio Overview", 0);
	menus[4].addItem("AssetStatement.htm", "", 25, "left", "Current Holdings", 0);
	menus[4].addItem("pastholding.htm", "", 25, "left", "Previous Holdings", 0);
	menus[4].addItem("Portfolio.htm", "", 25, "left", "Stats & Graphs", 0);
	menus[4].addItem("AssetStatement.htm", "", 25, "left", "Asset Statement", 0);
	menus[4].addItem("AssetStatement.htm", "", 25, "left", "Share Reports", 0);
//	menus[4].addItem("InvestmentReview.htm", "", 22, "left", "Asset Review", 0);

//Sub Menu for 6th Main Menu Item ("Library"):

	menus[5] = new menu(190, "vertical", 0, 0, -5, -5, "#E1E1E9", "#2987CC", "Verdana,Helvetica", 9, "bold", 
		"bold", "black", "white", 1, "gray", 2, 62, false, true, false, true, 6, true, 4, 4, "#A1A3A5");
	menus[5].addItem("Press 1.htm", "", 22, "left", "Proshare Award 04", 0);
	menus[5].addItem("share magazine.htm", "", 22, "left", "Shares Magazine", 0);
	menus[5].addItem("daily mail.htm", "", 22, "left", "Daily Mail", 0);


	menus[6] = new menu(200, "vertical", 0, 0, -5, -5, "#E1E1E9", "#2987CC", "Verdana,Helvetica", 9, "bold", 
		"bold", "black", "white", 1, "gray", 2, 62, false, true, false, true, 6, true, 4, 4, "#A1A3A5");
	menus[6].addItem("club_materials.htm", "", 26, "left", "In-house presentations", 0);
	menus[6].addItem("club_materials.htm", "", 26, "left", "In-house workshops", 0);
	menus[6].addItem("club_materials.htm", "", 26, "left", "Research Efforts", 0);

    menus[7] = new menu(180, "vertical", 0, 0, -5, -5, "#E1E1E9", "#2987CC", "Verdana,Helvetica", 9, "bold", 
		"bold", "black", "white", 1, "gray", 2, 62, false, true, false, true, 6, true, 4, 4, "#A1A3A5");
	menus[7].addItem("default.htm", "", 30, "left", " Club Operation Team", 0);
	menus[7].addItem("default.htm", "", 30, "left", "Investment Management Team", 0);
	menus[7].addItem("default.htm", "", 30, "left", "Investment Research Team", 0);
	
	//menus[5] = new menu(170, "vertical", 0, 0, 0, 0, "#E1E1E9", "#2987CC", "Verdana,Helvetica", 9, "bold", 
	//"bold", "black", "white", 1, "gray", 2, ">>", false, true, false, false, 0, true, 4, 4, "#A1A3A5");
	//menus[5].addItem("default.htm", "", 22, "left", "Catalogue", 0);
	//menus[5].addItem("default.htm", "", 22, "left", "Documents", 0);
	//menus[4].addItem("AssetStatement.htm", "", 22, "left", "Asset Statement", 0);
//	menus[4].addItem("InvestmentReview.htm", "", 22, "left", "Asset Review", 0);


	//menus[4].addItem("javascript:alert('hi')", "", 22, "left", "Teoma", 0);
} 
//size, orientation, x, y, offsetX, offsetY, 
//bgOut, bgOver, fontFace, fontSize, fontStyleOut, fontStyleOver, 
//textColorOut, textColorOver, borderSize, borderColor, margin, showChar, 
//showOnClick, sepItems, isMainMenu, hasAnimations, animationType, hasShadow, 
//sOffX, sOffY, shadowColor
// additem (link, target, iSize, alignment, content, menuToShow)


// value1 = 3; value2 = 4;
// messageBox("text message %s and %s", value1, value2);
// this message box will display the text "text message 3 and 4"
function messageBox()
{
  var i, msg = "", argNum = 0, startPos;
  var args = messageBox.arguments;
  var numArgs = args.length;
  if(numArgs)
  {
    theStr = args[argNum++];
    startPos = 0;  endPos = theStr.indexOf("%s",startPos);
    if(endPos == -1) endPos = theStr.length;
    while(startPos < theStr.length)
    {
      msg += theStr.substring(startPos,endPos);
      if (argNum < numArgs) msg += args[argNum++];
      startPos = endPos+2;  endPos = theStr.indexOf("%s",startPos);
      if (endPos == -1) endPos = theStr.length;
    }
    if (!msg) msg = args[0];
  }
  alert(msg);
}