// Create a vertical menu 
// This menu is placed below the main menu. 
// Note:
//    It uses the menuTree array length

//create parents before children
//PUT THE EXTERNAL SCRIPT TAGS FIRST!!
var grcHome       = window.location.protocol + "\/\/" + window.location.hostname;
if (window.location.hostname == "localhost") {
	grcHome = grcHome + "\/grc";
}
 
var myalternative = "alternative.html"; //location of alternative page (or omit line if none - only write once)

var squadMenu = new autoMenu(
	100,                          //width of menu items (remember not to use up too much screen width!)
	[5,5,grcHome + "/img/nextarrowActive.gif",grcHome + "/img/nextarrowActive.gif"], //dimensions and location of right arrow (width,height,normal src,highlight src)
	[], // [15,15,"arrowdown.gif","arrowdownhigh.gif"], //dimensions and location of down arrow (width,height,normal src,highlight src)
	                              //(just put [] for down arrows if menu is vertically orientated)
	'#ffffff',                    //normal background colour of menu
	'#eeeeee',                    //highlight background colour of menu
	'#0033CC',                    //normal link colour of menu
	'#0033CC',                    //highlight link colour of menu
	'#dddddd',                    //border colour of menu
	1,                            //border thickness of menu
	'font-family: verdana; font-size: x-small; font-style: normal;', //stylesheet for the links - do not define colours here
	500,                          //length of time (ms) to keep menu open when mouse is not over it
	10,                            //initial left position
	230+20*menuTree.sub.length,   //initial top position
	true,                        //orientation: true for vertical, false for horizontal
	false                         //scroll: true for scroll with page, false for not
);

// squadMenu.sub[0] = new menuBox( "Erg Times", grcHome + "\/pages\/squads\/ergs.php"  );
// squadMenu.sub[1] = new menuBox( "Race Fees 2009 a/c",  grcHome + "\/pages\/membership\/race_fees.html");
// squadMenu.sub[2] = new menuBox( "Senior Race fees 2008 a/c",  grcHome + "\/pages\/membership\/senior_2008.html");
// squadMenu.sub[3] = new menuBox( "Junior Race fees 2008 a/c",  grcHome + "\/pages\/membership\/junior_2008.html");

// squadMenu.buildMenu();
