var MenuItem = ""
var MenuId = "0"
var TableBG = "images/BGPinstripes.gif" // Location of the Background image for the menu
var TableColor = "#49040B" // Color of the menu, or color of the menu border
var FontFace = "Verdana, Arial, Helvetica, sans-serif" // Font used in the menu
var FontSize = "2" // Font size used in the menu

var OuterBorder = "0"   // Border of the outermost table
var OuterSpace = "7"    // Cellspacing for the outermost table 
var OuterPad = "0"      // Cellpadding for the outermost table
var InnerBorder = "0"   // Border of the inside or second table
var InnerSpace = "7"    // Cellspacing of the inside or second table
var InnerPad = "0"      // Cellpadding of the inside or second table
var ContentBorder = "0" // Border of the table that will actually contain the menu items
var ContentSpace = "0"  // Cellspacing of the table that will actually contain the menu items
var ContentPad = "0"    // Cellpadding of the table that will actually contain the menu items

// Add Content Below;
addItemNothing("0");

addItemHead("1");
addSubItem("Classes", "#");
addSubItem("&nbsp;&nbsp;&nbsp;&nbsp;Middle School", "middle.htm");
addSubItem("&nbsp;&nbsp;&nbsp;&nbsp;High School", "high.htm");
addSubItem("&nbsp;&nbsp;&nbsp;&nbsp;Honors Program", "honors.htm");
addSubItem("Summer Assingments for Honors and AP Courses", "#");
addSubItem("&nbsp;&nbsp;&nbsp;&nbsp;8th Grade Honors English", "8h.htm");
addSubItem("&nbsp;&nbsp;&nbsp;&nbsp;9th Grade Honors English", "9h.htm");
addSubItem("&nbsp;&nbsp;&nbsp;&nbsp;10th Grade Honors English", "10h.htm");
addSubItem("&nbsp;&nbsp;&nbsp;&nbsp;AP Literature", "ap_lit.htm");
addSubItem("&nbsp;&nbsp;&nbsp;&nbsp;AP Language &amp; Composition", "ap_lang.htm");
addSubItem("&nbsp;&nbsp;&nbsp;&nbsp;SS Dept AP Summer Assignments", "9HonorsWHist-APUSH.htm");
addSubItem("&nbsp;&nbsp;&nbsp;&nbsp;AP Biology Syllabus", "ap bio syl.htm");
addSubItem("Research Information", "research.htm");
addSubItem("Student Council Online", "bylaws.htm");
addItemFoot();

addItemNothing("2");

addItemHead("3");
addSubItem("FAQ's", "faq.htm");
addSubItem("Schedules", "schedules.htm");
addSubItem("Mission", "mission.htm");
addSubItem("Governing Board", "governing_brd.htm");
addSubItem("Tax Credit Donation Form", "pdfs/taxcredit.pdf");
addItemFoot();

addItemHead("4");
addSubItem("Newsletter", "newsletter.pdf");
addSubItem("Athletics", "athletics.htm");
addItemFoot();

addItemNothing("5");
// Add Content Above;

showSubMenu();

function addItemNothing(MenuId) {
	MenuItem += "<!-- Menu Bar Item " + MenuId + " -->\n";
	MenuItem += "<div id='box" + MenuId + "' style='position: absolute; visibility: hidden'></div>\n";
}

function addItemHead(MenuId) {
	MenuItem += "<!-- Menu Bar Item " + MenuId + " -->\n";
	MenuItem += "<div id='box" + MenuId + "' style='position: absolute; visibility: hidden'>\n";
	MenuItem += "<table border='" + OuterBorder + "' cellspacing='" + OuterSpace + "' cellpadding='" + OuterPad + "' bgcolor='" + TableColor + "'><tr><td><table border='" + InnerBorder + "' cellspacing='" + InnerPad + "' cellpadding='" + InnerSpace + "'><tr><td background='" + TableBG + "'><table border='" + ContentBorder + "' cellspacing='" + ContentSpace + "' cellpadding='" + ContentPad + "'>\n";
}

function addSubItem(Label, SubLink) {
	MenuItem += "<tr><td><a href='" + SubLink + "' class='menu' onmouseover='mouseOverLayer(); clearIt()' onmouseout='mouseOutLayer(); timeIt()'><font size='" + FontSize + "' face='" + FontFace + "'>" + Label + "</font></a></td></tr>\n";
}

function addItemFoot(Label, SubLink) {
	MenuItem += "</table></td></tr></table></td></tr></table>\n";
	MenuItem += "</div>\n";
}

function showSubMenu() {document.write(MenuItem);}