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; align:right; 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', 'Program of Studies::programofstudies.html', 'Student Handbook::studenthandbook.html')), new toolbar('events', 'Events / Athletics', 'events.html', new Array('Events Main Page::events.html', 'Calendar of Events::calendarofevents.html', 'Athletics::sports.html')), new toolbar('activities', 'Activities', 'activities.html', new Array('Activities Main Page::activities.html', 'List of Activities::activitylist.html', 'Activity Handbook::activitybook.html', 'HVHS Band Website::http://www.hvhsband.org/Home.html')), new toolbar('calendar', 'Calendar', 'calendarofevents.html', new Array('Calendar Main Page::calendarofevents.html')), new toolbar('parents', 'For Parents', 'parents.html', new Array('Parent Welcome Page::parents.html', 'Parent Handbook::parenthandbook.html', 'Letter From the Principal::lettertoparents.html', 'Health and Human Services Resources::http://www.acrsd.net/humanservices.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', 'http://www.acrsd.net/ace/index.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', 'ACRSD eTools for Faculty::http://etools.acrsd.net')), new toolbar('etools', 'ACRSD eTools', 'http://etools.acrsd.net'));
;

lowermenu = new Array(new toolbar('teacherpages', '<center>Teacher Websites</center>', 'teacherwebsites.html'), new toolbar('survey', '<center>After-School Activities Survey</center>', 'http://www.surveymonkey.com/s/XDB6Q6D'), new toolbar('old', '<center>Old Headlines</center>', 'old.html'), new toolbar('classes', '<center>Information for Classes</center>', 'classes.html'), new toolbar('facebook', '<center>Join the HVHS Alumni Facebook Group</center>', 'http://www.facebook.com/home.php?#/group.php?gid=35143641917'), new toolbar('links', '<center>Lunch Menus and Other Links</center>', 'links.html'), new toolbar('contactinfo', '<center>Contact Information</center>', 'contact.html', new Array('Contact Information::contact.html', 'Faculty & Staff::facultystaff.html', 'Advisors & Coaches::advisors.html')), new toolbar('handbook', '<center>Student Handbook</center>', 'studenthandbook.html'), new toolbar('schoolimprovement', '<center>School Improvement Plan</center>', 'schoolimprovement.html'), new toolbar('Forms', '<center>Forms</center>', 'forms.html'), new toolbar('guidance', '<center>Guidance</center>', 'guidance.html', new Array('Guidance Main Page::guidance.html', 'Guidance Links::guidancelinks.html', 'Guidance Program ::objectives.html', 'Outside Scholarships::outsidescholarships.html')));

thezero = 0;
drawsubmenu(106, 20, menuvals, 'submenu', 'subcolor');
drawsubmenu((thezero+18), 18, lowermenu, 'lowersubmenu', 'lowersubcolor');