// 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 horrMenu = 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
);

horrMenu.sub[0] = new menuBox( "Poster", grcHome + "\/pages\/horr\/doc\/2010\/poster.pdf"  );
horrMenu.sub[1] = new menuBox( "Safety Briefing",  grcHome + "\/pages\/horr\/doc\/2010\/safetyBrief.pdf");
horrMenu.sub[2] = new menuBox( "Safety Plan",  grcHome + "\/pages\/horr\/doc\/2010\/safetyPlan.pdf");
horrMenu.sub[3] = new menuBox( "Course",  grcHome + "\/pages\/horr\/doc\/2010\/course.pdf");
horrMenu.sub[4] = new menuBox( "Directions",  grcHome + "\/pages\/horr\/doc\/2010\/directions.pdf");
horrMenu.sub[5] = new menuBox( "Risk Assessment",  grcHome + "\/pages\/horr\/doc\/2010\/risk-assessment.xls");
horrMenu.sub[6] = new menuBox( "Welfare Satement",  grcHome + "\/pages\/horr\/doc\/2010\/welfareStatement.pdf");
horrMenu.sub[7] = new menuBox( "Marshalls",  grcHome + "\/pages\/horr\/doc\/2010\/marshallBrief.pdf");
horrMenu.sub[8] = new menuBox( "The Draw",  grcHome + "\/pages\/horr\/doc\/2010\/draw.pdf");
horrMenu.sub[9] = new menuBox( "Results",  grcHome + "\/pages\/horr\/doc\/2010\/results.xls");

//horrMenu.sub[4] = new menuBox( "The Draw",  grcHome + "\/pages\/horr\/php\/horr_div.php");
//horrMenu.sub[5] = new menuBox( "The Results");

// Results submenu (MySQL version)
//horrMenu.sub[5].sub[0] = new menuBox("Ordered by time", grcHome + "\/pages\/horr\/php\/horr_results.php?opt=time")
//horrMenu.sub[5].sub[1] = new menuBox("Ordered by event", grcHome + "\/pages\/horr\/php\/horr_results.php?opt=event")

// Results submenu
//horrMenu.sub[5].sub[0] = new menuBox("PDF Format", grcHome + "\/pages\/horr\/doc\/2009\/results.pdf")
//horrMenu.sub[5].sub[1] = new menuBox("Excel Format", grcHome + "\/pages\/horr\/doc\/2009\/results.xls")

horrMenu.buildMenu();
