function nowyouseeit(x)
{
	if(x.style.display == "")
	{
		x.style.display = "none";
	}
	else
	{
		x.style.display = "";
	}
}

function drawsubmenu(a, b, c, e, f)
{
	for(x=0; x<c.length; x++, a+=(b+2))
	{
		if(c[x].submenu != null)
		{
			document.write("<span id='" + c[x].localname + "' class='" + f + "' style='color:white; position: absolute; left: 152; display: none;top:" + a + "' onmouseover='this.style.display=&quot;&quot;' onmouseout='nowyouseeit(this)'>");
			for(t=0; t<c[x].submenu.length; t++)
			{
				temparray = c[x].submenu[t].split("::");
				document.write("<a class='" + e + "' href='" + temparray[1] + "'>" + temparray[0] + "</a><br>");
			}
			document.write("</span>");
		}
	}
	thezero += a;
}

menuvals = new Array;

function toolbar(localname, text, link, submenu)
{
	this.localname = localname;
	this.text = text;
	this.link = link;
	this.submenu = submenu;
}

menuvals = new Array(new toolbar('curriculum', 'Curriculum', 'curriculum.html', new Array('Curriculum Main Page::curriculum.html', 'HVMS Beliefs and Values::BeliefsMain.html','Curriculum Scope::scopesequence.html','School Improvement Plan::improvementplan.html', 'Student Handbook::handbook.html', 'Exploratory Arts Program::explore.html','MCAS Testing Resources::MCASMain.html')), new toolbar('events', 'Events', 'events.html', new Array('Events Main Page::events.html')), new toolbar('activities', 'Activities', 'activities.html', new Array('Activities Main Page::activities.html')), new toolbar('calendar', 'Calendar', 'calendar.html', new Array('Calendar Main Page::calendar.html')), new toolbar('parents', 'For Parents', 'parents.html', new Array('Parent Welcome Page::parents.html', 'Comments from the Principal::comments.html')),new toolbar('policy', 'ACRSD Policies', 'http://www.acrsd.net/policies.html', new Array('ACRSD Policies Main Page::http://www.acrsd.net/policies.html')), new toolbar('nclb', 'No Child Left Behind', 'http://www.acrsd.net/nclb.html', new Array('NCLB Main Page::http://www.acrsd.net/nclb.html')), new toolbar('StrategicD', 'ACRSD Strategic Plan', 'http://www.acrsd.net/strategic.html', new Array('ACRSD Strategic Plan: <i>Strategic Direction</i> Main Page::http://www.acrsd.net/strategic.html',  'ACRSD Strategic Plan: <i>Strategic Direction</i> Document::http://www.acrsd.net/sdplan.html', 'ACRSD Strategic Plan: Status::http://www.acrsd.net/sdstatus.html')), new toolbar('ACEtext', 'ACE Partnership', 'ace.html', new Array('ACE Partnership Main Page::http://www.acrsd.net/ace/index.html')), new toolbar('etools', 'ACRSD Webmail', 'http://webmail.acrsd.net/gw/webacc', new Array('ACRSD Webmail::http://webmail.acrsd.net/gw/webacc')), new toolbar('ACRSD eTools', 'ACRSD eTools', 'http://etools.acrsd.net', new Array('ACRSD eTools Page::http://etools.acrsd.net')))

lowermenu = new Array(new toolbar('lunch', '<center>Lunch Menus and Other Links</center>', 'links.html'),new toolbar('faculty', '<right>Faculty & Staff</right>', 'faculty.html'), new toolbar('contact', 'Contact Information', 'contact.html'),  new toolbar('teacher', 'Teacher Resources', 'teacher_res.html'), new toolbar('student', 'Student Resources', 'student_res.html'), new toolbar('improvement', 'School Improvement Plan', 'improvementplan.html'), new toolbar('guidance', 'Guidance Department', 'Guidance.html', new toolbar('announce', 'Important Announcements', 'AnnouncementsMain.html')))

thezero = 0;
drawsubmenu(106, 20, menuvals, 'submenu', 'subcolor');
drawsubmenu((thezero+18), 18, lowermenu, 'lowersubmenu', 'lowersubcolor');