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', 'Resources::resources.html', 'ABCs of CTP::abc.html', 'Discipline Policy::discipline.html', 'Principals Goals::goals.html', 'Handbook::Handbook.html','School Improvement Plan::schoolimprovement.html', 'Plunkett Profile::plunkettprofile.html', 'Principal Particulars::principalparticulars.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', 'Letter to Parents::lettertoparents.html', 'Principal Particulars::principalparticulars.html', 'PTG Newsletter::ptgletter.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('budget', '2007 Budget Presentation', 'budget.html'),new toolbar('links', '<center>Lunch Menus and Other Links</center>', 'links.html'),  new toolbar('faculty', '<center>Faculty and Staff</center>', 'faculty.html'), new toolbar('map', '<center>Map/Directions</center>', 'directions.html'), new toolbar('weather', '<center>Weather Station<br>(Current and Webcam!)</center>', 'weather.html'));

thezero = 0;
drawsubmenu(106, 20, menuvals, 'submenu', 'subcolor');
drawsubmenu((thezero+18), 18, lowermenu, 'lowersubmenu', 'lowersubcolor');