function init()
{
	var w, menu_width, start, vert;
	if (screen.innerWidth)
	{
  		w = window.innerWidth;
	}
	else
	{
  		w = document.body.clientWidth;
	}
	if (navigator.appName == "Netscape")
	{
		vert = 140;
	}
	else
	{
		vert = 150;
	}

	menu_width = 120 + 90 + 90 + 90 + 90 + 110 + 20 + 1 + 100;
	if (menu_width < w)
	{
  		start = (w - menu_width) / 2;
	}
	else
	{
  		start = 20;
	}

	//Main Menu items:
	menus[0] = new menu(
		22, // height
		"horizontal", // horizontal or vertical
		start, // horizontal coordinate of starting point
		vert, // vertial coordinate of starting point
		-2, // horiz offset for new menu
		-2, // vertical offset for new menu
		"#990033", // normal background color
		"#000000", // mouse over background
		"Verdana,Helvetica", // font
		9, // font size
		"bold", // style for text
		"bold", // style for text on mouseover
		"white", // foreground for text
		"white", // forground for text on mouseover
		1, // size of border
		"gray", // color of border
		2, // padding from side for each item
		"rollover:tridown.gif:tridown.gif", // far right side of item
		false, // true opens submenu with mouse click
		true, // separate each item with divider
		true, // is main menu?
		true, // use transitional effect
		12, // transitional effect type
		true, // create shadow for menu?
		4, // how far from menu shadow displays (horiz)
		4, // how far from menu shadow displays (vert)
		"black"); // color of the shadow

	menus[0].addItem(
		"http://www.myholyfamilyschool.org", // link
		"", // optional target (NEWWIN = new window)
		100, // size of each item (width)
		"center", // center, left, or right
		"Home", // title
		0); // number of sub menu
	menus[0].addItem("#", "", 120, "center", "HFS Online", 1);
	menus[0].addItem("#", "", 90, "center", "News", 2);
	menus[0].addItem("#", "", 90, "center", "Info", 3);
	menus[0].addItem("#", "", 90, "center", "Forms", 4);
	menus[0].addItem("#", "", 90, "center", "Links", 5);
	menus[0].addItem("#", "", 110, "center", "About HFS", 6);

//Sub Menu "HFS Online"
	menus[1] = new menu(165, "vertical", 0, 0, 0, 0, "#990033", "#0000A0",
			    "Verdana,Helvetica", 9, "bold", "bold", "white",
			    "white", 1, "gray", 2, 0, false, true, false, true,
			    6, true, 4, 4, "black");
	menus[1].addItem("http://www.myholyfamilyschool.org/public/TeacherDisplay.aspx", "", 22, "left", "Teachers Online", 0);
	menus[1].addItem("http://www.myholyfamilyschool.org/MyHFS", "", 22, "left", "MyHFS", 0);
	menus[1].addItem("https://www.edline.net/Index.page", "", 22, "left", "Edline", 0);
	// Below uses drop down list
	//menus[1].addItem("http://www.myholyfamilyschool.org/public/News.aspx?Page=Summer%20Enrichment&TopicLabel=Select", "", 22, "left", "Summer Assignments", 0);
	// Below uses tabs
	menus[1].addItem("http://www.myholyfamilyschool.org/public/HomeworkDisplay.aspx?Teacher=Summer+Enrichment", "", 22, "left", "Summer Enrichment", 0);
	menus[1].addItem("http://www.myholyfamilyschool.org/FamEnv/DisplayItems.aspx", "", 22, "left", "Family Envelope", 0);
	menus[1].addItem("http://www.myholyfamilyschool.org/public/News.aspx?Page=Lunch%20Info&Title=Lunch%20Info&TopicLabel=Invisible", "", 22, "left", "Lunch Info", 0);
	menus[1].addItem("http://www.myholyfamilyschool.org/lunch/HolyFamilyLunchMenu.pdf", "", 22, "left", "Lunch Menu", 0);
	menus[1].addItem("http://www.myholyfamilyschool.org/email.shtml", "", 22, "left", "E-Mail/Phone Directory", 0);
	menus[1].addItem("http://www.myholyfamilyschool.org/FamilyDirectory", "", 22, "left", "Family Directory", 0);
//	menus[1].addItem("http://www.myholyfamilyschool.org/public/News.aspx?Page=HFS%20Literary%20Magazine&Title=HFS%20Literary%20Magazine&TopicLabel=Select%20an%20Article", "", 22, "left", "Literary Magazine", 0);
	menus[1].addItem("http://www.myholyfamilyschool.org/gallery/", "", 22, "left", "Photo/Media Gallery", 0);

//Sub Menu for "News"
	menus[2] = new menu(220, "vertical", 0, 0, 0, 0, "#990033", "#0000A0", "Verdana,Helvetica", 9, "bold", 
		"bold", "white", "white", 1, "gray", 2, 0, false, true, false, true, 6, true, 4, 4, "black");
	menus[2].addItem("http://www.myholyfamilyschool.org/public/News.aspx?Page=School%20News&Title=School%20News", "", 22, "left", "School News", 0);
	menus[2].addItem("http://www.myholyfamilyschool.org/public/News.aspx?Page=Mrs.%20Braca&Title=Principal's%20Page", "", 22, "left", "Principal's Page", 0);
	menus[2].addItem("http://www.myholyfamilyschool.org/public/News.aspx?Page=Fundraising&Title=Fundraising", "", 22, "left", "Fundraising", 0);
	menus[2].addItem("http://www.myholyfamilyschool.org/calendar.htm", "", 22, "left", "Calendar", 0);
	menus[2].addItem("http://www.myholyfamilyschool.org/public/News.aspx?Page=Health&Title=Health%20News", "", 22, "left", "Health", 0);
	menus[2].addItem("http://www.myholyfamilyschool.org/public/News.aspx?Page=Home%20and%20School&Title=Home%20and%20School", "", 22, "left", "Home and School", 0);
	menus[2].addItem("http://www.myholyfamilyschool.org/public/News.aspx?Page=Financial%20Advisory%20Committee&Title=Financial%20Advisory%20Committee&TopicLabel=Select", "", 22, "left", "Financial Advisory Committee", 0);


//Sub Menu "Info":
	menus[3] = new menu(185, "vertical", 0, 0, 0, 0, "#990033", "#0000A0", "Verdana,Helvetica", 9, "bold", "bold", "white", "white", 1, "gray", 2, 0, false, true, false, false, 0, true, 4, 4, "black");
	menus[3].addItem("http://www.myholyfamilyschool.org/public/HomeworkDisplay.aspx?Teacher=Volunteer+Guide", "", 22, "left", "Volunteer Guide", 0);
	menus[3].addItem("http://www.myholyfamilyschool.org/public/News.aspx?Page=Shepherd+a+Student&Title=Shepherd+a+Student", "", 22, "left", "Shepherd a Student", 0);
	//menus[3].addItem("http://www.myholyfamilyschool.org/HolyFamilySchool_files/TuitionAssistanceProgram.pdf", "", 22, "left", "Tuition Assistance", 0);
	menus[3].addItem("http://www.myholyfamilyschool.org/public/News.aspx?Page=Alumni&Title=Alumni%20%26%20Development", "", 22, "left", "Alumni & Development", 0);
	menus[3].addItem("http://www.myholyfamilyschool.org/religious_ed.shtml", "", 22, "left", "Parish Religious Education", 0);
	menus[3].addItem("http://www.myholyfamilyschool.org/public/News.aspx?Page=Stationery&Title=School%20Supplies&TopicLabel=Invisible", "", 22, "left", "School Supplies", 0);
	menus[3].addItem("http://www.myholyfamilyschool.org/public/News.aspx?Page=Uniforms&Title=Uniforms%20&%20Shoes", "", 22, "left", "Uniforms & Shoes", 0);
	menus[3].addItem("http://www.myholyfamilyschool.org/public/News.aspx?Page=Safe%20Environment&Title=Safe%20Environment", "", 22, "left", "Safe Environment", 0);
	menus[3].addItem("http://www.hfscyo.com","", 22, "left", "CYO Sports", 0);
	menus[3].addItem("http://www.myholyfamilyschool.org/public/News.aspx?Page=Organizations&Title=Organizations&TopicLabel=Invisible", "", 22, "left", "Organizations", 0);

//Sub Menu "Forms":
	menus[4] = new menu(150, "vertical", 0, 0, 0, 0, "#990033", "#0000A0", "Verdana,Helvetica", 9, "bold", "bold", "white", "white", 1, "gray", 2, 0, false, true, false, false, 0, true, 4, 4, "black");
	menus[4].addItem("http://www.myholyfamilyschool.org/medical.shtml", "", 22, "left", "Medical", 0);
	menus[4].addItem("http://www.myholyfamilyschool.org/admission.shtml", "", 22, "left", "Admission", 0);
	//menus[4].addItem("http://www.myholyfamilyschool.org/cares.shtml", "", 22, "left", "CARES (Child Care)", 0);
	menus[4].addItem("http://www.myholyfamilyschool.org/public/News.aspx?Page=CARES&Title=CARES&TopicLabel=Invisible", "", 22, "left", "CARES (Child Care)", 0);
	menus[4].addItem("http://www.myholyfamilyschool.org/files/HFSTAP.pdf", "", 22, "left", "Tuition Assistance", 0);

//Sub Menu "Links":
	menus[5] = new menu(120, "vertical", 0, 0, 0, 0, "#990033", "#0000A0", "Verdana,Helvetica", 9, "bold", "bold", "white", "white", 1, "gray", 2, 0, false, true, false, false, 0, true, 4, 4, "black");
	menus[5].addItem("http://www.myholyfamilyschool.org/parishes.shtml", "", 22, "left", "Parishes", 0);
	menus[5].addItem("http://www.myholyfamilyschool.org/highschls.shtml", "", 22, "left", "High Schools", 0);

//Sub Menu "About HFS":
	menus[6] = new menu(130, "vertical", 0, 0, 0, 0, "#990033", "#0000A0", "Verdana,Helvetica", 9, "bold", "bold", "white", "white", 1, "gray", 2, 0, false, true, false, false, 0, true, 4, 4, "black");
	menus[6].addItem("http://www.myholyfamilyschool.org/handbook.shtml", "", 22, "left", "Handbook", 0);
	menus[6].addItem("http://www.myholyfamilyschool.org/curriculum.shtml", "", 22, "left", "Curriculum", 0);
	menus[6].addItem("http://www.myholyfamilyschool.org/public/News.aspx?Page=Tuition&Title=Tuition%20Schedule", "", 22, "left", "Tuition Schedule", 0);
	menus[6].addItem("http://www.myholyfamilyschool.org/finreport.shtml", "", 22, "left", "Financial Report", 0);
} //OUTER CLOSING BRACKET. EVERYTHING ADDED MUST BE ABOVE THIS LINE.
window.onload=init;
