// Create a vertical menu 
// This menu is placed below the main menu. 
// Note:
//    It uses the menuTree array length

// Number of divisions
var numDivs = 3

//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 regattaMenu = 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
);

// 2008, just the Results:
// regattaMenu.sub[0] = new menuBox( "Saturday Results", grcHome + "\/pages\/regatta\/doc\/2008\/Sat_Results.pdf"  );
// regattaMenu.sub[1] = new menuBox( "Sunday Results", grcHome + "\/pages\/regatta\/doc\/2008\/Sun_Results.pdf"  );

// This is the menu as should be
// regattaMenu.sub[0] = new menuBox( "Draw", grcHome + "\/pages\/regatta\/doc\/2007\/draw.php"  );
// regattaMenu.sub[0] = new menuBox( "Draw", grcHome + "\/pages\/regatta\/doc\/2007\/draw.php"  );
// regattaMenu.sub[1] = new menuBox( "Notes", grcHome + "\/pages\/regatta\/doc\/notes.pdf"  );
// regattaMenu.sub[2] = new menuBox( "Safety Plan", grcHome + "\/pages\/regatta\/doc\/safety_plan.pdf"  );
// regattaMenu.sub[3] = new menuBox( "Directions", grcHome + "\/pages\/regatta\/doc\/directions.pdf"  );
// regattaMenu.sub[4] = new menuBox( "Course map", grcHome + "\/pages\/regatta\/doc\/course_map.pdf"  );
// regattaMenu.sub[5] = new menuBox( "Poster", grcHome + "\/pages\/regatta\/doc\/2007\/regatta_poster.pdf"  );
// regattaMenu.sub[6] = new menuBox( "Covering Letter", grcHome + "\/pages\/regatta\/doc\/2006\/covering_letter.pdf"  );


regattaMenu.buildMenu();
