var frontx, fronty;
var pagex, pagey;

if (document.all) // IE 4+
{
	frontx = 195; pagex = 195;
/*	fronty = 321; pagey = 71+8; */
	fronty = 321; pagey = 71;
}
else if (document.layers) // Netscape 4.5+
{
	frontx = 194; pagex = 194;
/*	fronty = 314; pagey = 64+8; */
	fronty = 314; pagey = 64;
}
else // Netscape 6+ and Mozilla 1+
{
	frontx = 194; pagex = 194;
/*	fronty = 314; pagey = 64+8; */
	fronty = 314; pagey = 64;
}

if (section == 'front')
{
	var menux 	= frontx;
	var menuy 	= fronty;
	var menuOn 	= '_btn_on';
}
else
{
	var menux 	= pagex;
	var menuy 	= pagey;

	if (section == 'hub')
		var menuOn = '_btn_on2';
	else if (section == 'scc')
		var menuOn = '_btn_on3';
	else if (section == 'sauf')
		var menuOn = '_btn_on';
}

/***********************************************************************************
*	(c) Ger Versluis 2000 version 5.411 24 December 2001 (updated Jan 31st, 2003 by Dynamic Drive for Opera7)
*	For info write to menus@burmees.nl		          *
*	You may remove all comments for faster loading	          *
***********************************************************************************/

	var NoOffFirstLineMenus=3;			// Number of first level items
	var LowBgColor='#ffffff';			// Background color when mouse is not over
	var LowSubBgColor='#EDF4F5';			// Background color when mouse is not over on subs
	var HighBgColor='#D0DBE1';			// Background color when mouse is over
	var HighSubBgColor='#D0DBE1';			// Background color when mouse is over on subs
	var FontLowColor='#000000';			// Font color when mouse is not over
	var FontSubLowColor='#000000';			// Font color subs when mouse is not over
	var FontHighColor='#000000';			// Font color when mouse is over
	var FontSubHighColor='#000000';			// Font color subs when mouse is over
	var BorderColor='#000000';			// Border color
	var BorderSubColor='#000000';			// Border color for subs
	var BorderWidth=0;				// Border width
	var BorderBtwnElmnts=0;			// Border between elements 1 or 0
	var FontFamily="arial,comic sans ms,technical"	// Font family menu items
	var FontSize=9;				// Font size menu items
	var FontBold=1;				// Bold menu items 1 or 0
	var FontItalic=0;				// Italic menu items 1 or 0
	var MenuTextCentered='left';			// Item text position 'left', 'center' or 'right'
	var MenuCentered='left';			// Menu horizontal position 'left', 'center' or 'right'
	var MenuVerticalCentered='top';		// Menu vertical position 'top', 'middle','bottom' or static
	var ChildOverlap=.2;				// horizontal overlap child/ parent
	var ChildVerticalOverlap=.2;			// vertical overlap child/ parent
	var StartTop=menuy;				// Menu offset x coordinate
	var StartLeft=menux;				// Menu offset y coordinate
	var VerCorrect=0;				// Multiple frames y correction
	var HorCorrect=0;				// Multiple frames x correction
	var LeftPaddng=3;				// Left padding
	var TopPaddng=2;				// Top padding
	var FirstLineHorizontal=1;			// SET TO 1 FOR HORIZONTAL MENU, 0 FOR VERTICAL
	var MenuFramesVertical=1;			// Frames in cols or rows 1 or 0
	var DissapearDelay=500;			// delay before menu folds in
	var TakeOverBgColor=1;			// Menu frame takes over background color subitem frame
	var FirstLineFrame='navig';			// Frame where first level appears
	var SecLineFrame='space';			// Frame where sub levels appear
	var DocTargetFrame='space';			// Frame where target documents appear
	var TargetLoc='';				// span id for relative positioning
	var HideTop=0;				// Hide first level when loading new document 1 or 0
	var MenuWrap=1;				// enables/ disables menu wrap 1 or 0
	var RightToLeft=0;				// enables/ disables right to left unfold 1 or 0
	var UnfoldsOnClick=0;			// Level 1 unfolds onclick/ onmouseover
	var WebMasterCheck=0;			// menu tree checking on or off 1 or 0
	var ShowArrow=1;		// Uses arrow gifs when 1
	var KeepHilite=1;				// Keep selected path highligthed
	var Arrws=[baseImgUrl+'tri.gif',5,10,baseImgUrl+'tridown.gif',10,5,baseImgUrl+'trileft.gif',5,10];	// Arrow source, width and height

function BeforeStart(){return}
function AfterBuild(){return}
function BeforeFirstOpen(){return}
function AfterCloseAll(){return}


// Menu tree
// MenuX=new Array(Text to show, Link, [background image], number of sub elements, height, width,
//		[BgColor, BgHiColor, FontColor, FontHiColor, BorderColor]);
// For rollover images set "Text to show" to:  "rollover:Image1.jpg:Image2.jpg"

Menu1 = new Array("rollover:"+baseImgUrl+"hub_btn_off.gif:"+baseImgUrl+"hub" + menuOn + ".gif", baseUrl+"hub/", "", 10, 60, 200);

	Menu1_1=new Array("Services","javascript:void(0)", "", 16, 20, 195);

		Menu1_1_1=new Array("Banking", baseUrl+"hub/banking.php", "", 0, 20, 195);
		Menu1_1_2=new Array("CampusLink", baseUrl+"hub/campuslink.php", "", 0, 20, 195);
		Menu1_1_3=new Array("Cashier", baseUrl+"hub/cashier.php", "", 0, 20, 195);	
		Menu1_1_4=new Array("Commuter Info", baseUrl+"hub/commuterinfo.php", "", 0, 20, 195);
		Menu1_1_5=new Array("Computer & Study Lounge", baseUrl+"hub/complab.php", "", 0, 20, 195);
		Menu1_1_6=new Array("Dining", baseUrl+"hub/huskyden.php", "", 0, 20, 195);
		Menu1_1_7=new Array("HUB Event Services", baseUrl+"hub/hubres.php", "", 0, 20, 195);
		Menu1_1_8=new Array("Information Desk", baseUrl+"hub/infodesk.php", "", 0, 20, 195);
		Menu1_1_9=new Array("Newsstand", baseUrl+"hub/newsstand.php", "", 0, 20, 195);	
		Menu1_1_10=new Array("Resource Center", baseUrl+"hub/source.php", "", 0, 20, 195);
		Menu1_1_11=new Array("Postage/Mail Drop", baseUrl+"hub/mail.php", "", 0, 20, 195);		
		Menu1_1_12=new Array("Scissor's Edge", baseUrl+"hub/salon.php", "", 0, 20, 195);
		Menu1_1_13=new Array("Ticket Office", baseUrl+"hub/ticketoffice.php", "", 0, 20, 195);
		Menu1_1_14=new Array("Tickets On Sale Now!", baseUrl+"hub/tixevents.php", "", 0, 20, 195);
		Menu1_1_15=new Array("TV Lounge", baseUrl+"hub/tvlounge.php", "", 0, 20, 195);
		Menu1_1_16=new Array("UW Police", baseUrl+"hub/police.php", "", 0, 20, 195);
		
	Menu1_2=new Array("ASUW Services","javascript:void(0)", "", 5, 20, 195);

		Menu1_2_1=new Array("Bike Shop", "http://bike.asuw.org", "", 0, 20, 195);
		Menu1_2_2=new Array("CORE", "http://core.asuw.org", "", 0, 20, 195);
		Menu1_2_3=new Array("Experimental College", "http://experimental.asuw.org", "", 0, 20, 195);
		Menu1_2_4=new Array("Off-Campus Housing Affairs", "http://housing.asuw.org", "", 0, 20, 195);
		Menu1_2_5=new Array("Rainy Dawg Radio", "http://www.rainydawg.org/", "", 0, 20, 195);

	Menu1_3=new Array("About the HUB","javascript:void(0)", "", 8, 20, 195);

		Menu1_3_1=new Array("Building Hours", baseUrl+"hub/hours.php", "", 0, 20, 195);
		Menu1_3_2=new Array("Custodial Services", baseUrl+"hub/custodial.php", "", 0, 20, 195);
		Menu1_3_3=new Array("Employment", baseUrl+"hub/employment.php", "", 0, 20, 195);
		Menu1_3_4=new Array("Floor Plans", baseUrl+"hub/floors.php", "", 0, 20, 195);
		Menu1_3_5=new Array("Getting Here", baseUrl+"hub/directions.php", "", 0, 20, 195);
		Menu1_3_6=new Array("History of the HUB", baseUrl+"hub/hubhistory.php", "", 0, 20, 195);
		Menu1_3_7=new Array("HUB Trivia", baseUrl+"hub/hubtrivia.php", "", 0, 20, 195);
		Menu1_3_8=new Array("In Case of Emergency", baseUrl+"hub/emergency.php", "", 0, 20, 195);

	Menu1_4=new Array("Entertainment","javascript:void(0)", "", 12, 20, 195);

		Menu1_4_1=new Array("Art Gallery", baseUrl+"hub/artgallery.php", "", 0, 20, 195);
		Menu1_4_2=new Array("Fall Fling", baseUrl+"hub/fallfling.php", "", 0, 20, 195);
		Menu1_4_3=new Array("Film Series", baseUrl+"hub/film_series.php", "", 0, 20, 195);
		Menu1_4_4=new Array("Games Area", baseUrl+"hub/games/", "", 0, 20, 195);
		Menu1_4_5=new Array("HUB Crawl", baseUrl+"hub/hubcrawl.php", "", 0, 20, 195);
		Menu1_4_6=new Array("HUB Events Listing", baseUrl+"hub/hubevents.php", "", 0, 20, 195);
		Menu1_4_7=new Array("HUB Hall of Fame", baseUrl+"hub/hhof.php", "", 0, 20, 195);
		Menu1_4_8=new Array("HUB Lawnapalooza", baseUrl+"hub/lawnapalooza.php", "", 0, 20, 195);
		Menu1_4_9=new Array("Leadership Dialogues", baseUrl+"hub/leadership_dialogues.php", "", 0, 20, 195);
		Menu1_4_10=new Array("Permanent Art Collection", baseUrl+"hub/hubart.php", "", 0, 20, 195);
		Menu1_4_11=new Array("SAO Events Calendar", saoUrl+"calendar.php", "", 0, 20, 195);
		Menu1_4_12=new Array("Soundbites", baseUrl+"hub/soundbites.php", "", 0, 20, 195);

	Menu1_5=new Array("Who's In the HUB","javascript:void(0)", "", 19, 20, 195);

		Menu1_5_1=new Array("HUB Directory", baseUrl+"hub/directory.php", "", 0, 20, 195);
		Menu1_5_2=new Array("SAUF Administration", baseUrl+"hub/admin.php", "", 0, 20, 195);
		Menu1_5_3=new Array("ASUW", baseUrl+"hub/asuw.php", "", 0, 20, 195);
		Menu1_5_4=new Array("Community Standards &<br>&nbsp;&nbsp;&nbsp;&nbsp;Student Conduct", baseUrl+"hub/cssc.php", "", 0, 30, 195);
		Menu1_5_5=new Array("Event Services", baseUrl+"hub/hubres.php", "", 0, 20, 195);
		Menu1_5_6=new Array("FIUTS", baseUrl+"hub/fiuts.php", "", 0, 20, 195);
		Menu1_5_7=new Array("Games Area", baseUrl+"hub/games/", "", 0, 20, 195);
		Menu1_5_8=new Array("GPSS", baseUrl+"hub/gpss.php", "", 0, 20, 195);
		Menu1_5_9=new Array("Greek Relations", baseUrl+"hub/greek.php", "", 0, 20, 195);
		Menu1_5_10=new Array("IFC/Panhellenic", baseUrl+"hub/ifcph.php", "", 0, 20, 195);
		Menu1_5_11=new Array("Ombudsman", baseUrl+"hub/ombudsman.php", "", 0, 20, 195);
		Menu1_5_12=new Array("Q Center", baseUrl+"hub/qcenter.php", "", 0, 20, 195);
		Menu1_5_13=new Array("Resource Center", baseUrl+"hub/source.php", "", 0, 20, 195);
		Menu1_5_14=new Array("&nbsp;Sexual Assault & Relationship<br>&nbsp;&nbsp;&nbsp;&nbsp;Violence Information Service", baseUrl+"hub/saris.php", "", 0, 30, 195);
		Menu1_5_15=new Array("Scissor's Edge", baseUrl+"hub/salon.php", "", 0, 20, 195);
		Menu1_5_16=new Array("Student Activities Office", saoUrl, "", 0, 20, 195);
		Menu1_5_17=new Array("Student Legal Services", baseUrl+"hub/sls.php", "", 0, 20, 195);
		Menu1_5_18=new Array("Student Organizations", saoUrl+"rso_offices.php", "", 0, 20, 195);
		Menu1_5_19=new Array("UW Bookstore", baseUrl+"hub/bookstore.php", "", 0, 20, 195);

	Menu1_6=new Array("", "javascript:void(0)", "", 0, 20, 195);
	Menu1_7=new Array("Make a Reservation", "http://depts.washington.edu/hubres/res_form.php", "", 0, 20, 195);
	Menu1_8=new Array("HUB Events Listing", baseUrl+"hub/hubevents.php", "", 0, 20, 195);
	Menu1_9=new Array("", "javascript:void(0)", "", 0, 20, 195);
	Menu1_10=new Array("Contact SAUF", baseUrl+"contact.php", "", 0, 20, 195);

Menu2 = new Array("rollover:"+baseImgUrl+"scc_btn_off.gif:"+baseImgUrl+"scc" + menuOn + ".gif", baseUrl+"scc/", "", 9, 60, 200);

	Menu2_1 = new Array("Services", "javascript:void(0)", "", 13, 20, 195);

		Menu2_1_1=new Array("ATMs", baseUrl+"scc/atms.php", "", 0, 20, 195);
		Menu2_1_2=new Array("Bus Schedules", baseUrl+"scc/businfo.php", "", 0, 20, 195);
		Menu2_1_3=new Array("Fax Services", baseUrl+"scc/fax.php", "", 0, 20, 195);
		Menu2_1_4=new Array("Flair for Hair", baseUrl+"scc/hair.php","", 0, 20, 195);
		Menu2_1_5=new Array("Lost & Found", baseUrl+"scc/lostfound.php", "", 0, 20, 195);
		Menu2_1_6=new Array("Meeting/Event Rooms", baseUrl+"scc/sccres/rooms.php", "", 0, 20, 195);
		Menu2_1_7=new Array("Newsstand", baseUrl+"scc/newsstand.php", "", 0, 20, 195);
		Menu2_1_8=new Array("Postage/Mail Drop", baseUrl+"scc/mail.php", "", 0, 20, 195);
		Menu2_1_9=new Array("Postings in SCC", baseUrl+"scc/lostfound.php", "", 0, 20, 195);
		Menu2_1_10=new Array("Study Area", baseUrl+"scc/study.php", "", 0, 20, 195);
		Menu2_1_11=new Array("TV Lounge", baseUrl+"scc/tvlounge.php", "", 0, 20, 195);
		Menu2_1_12=new Array("UW Bookstore", baseUrl+"scc/bookstore.php", "", 0, 20, 195);
		Menu2_1_13=new Array("WiFi Access", baseUrl+"scc/wifi.php", "", 0, 20, 195);
		
//		Menu2_1_7=new Array("Portage Bay Dining", baseUrl+"scc/pbd.php", "", 0, 20, 195);	
	
	Menu2_2 = new Array("Facilities", "javascript:void(0)", "", 5, 20, 195);

		Menu2_2_1=new Array("Building Hours", baseUrl+"scc/hours.php", "", 0, 20, 195);
		Menu2_2_2=new Array("Custodial Services", baseUrl+"scc/custodial.php", "", 0, 20, 195);
		Menu2_2_3=new Array("Employment", baseUrl+"scc/employment.php", "", 0, 20, 195);
		Menu2_2_4=new Array("In Case of Emergency", baseUrl+"scc/emergency.php", "", 0, 20, 195);
		Menu2_2_5=new Array("SCC Reservations", baseUrl+"scc/sccres/", "", 0, 20, 195);

	Menu2_3 = new Array("Activities", "javascript:void(0)", "", 2, 20, 195);

		Menu2_3_1=new Array("SCC Events Listings", baseUrl+"scc/sccevents.php", "", 0, 20, 195);
		Menu2_3_2=new Array("SAO Events Calendar", saoUrl+"calendar.php", "", 0, 20, 195);

	Menu2_4 = new Array("About the SCC", "javascript:void(0)", "", 6, 20, 195);

		Menu2_4_1=new Array("Administration", baseUrl+"scc/admin.php", "", 0, 20, 195);
		Menu2_4_2=new Array("Directions to the SCC", baseUrl+"scc/directions.php", "", 0, 20, 195);
		Menu2_4_3=new Array("Directory", baseUrl+"scc/directory.php", "", 0, 20, 195);
		Menu2_4_4=new Array("Floor Plans", baseUrl+"scc/floors.php", "", 0, 20, 195);
		Menu2_4_5=new Array("History of the SCC", baseUrl+"scc/scchistory.php", "", 0, 20, 195);
		Menu2_4_6=new Array("SCC Trivia", baseUrl+"scc/scctrivia.php", "", 0, 20, 195);

	Menu2_5 = new Array("", "javascript:void(0)", "", 0, 20, 195);
	Menu2_6 = new Array("Make a Reservation", baseUrl+"scc/sccres/request.php", "", 0, 20, 195);
	Menu2_7 = new Array("SCC Events Listings", baseUrl+"scc/sccevents.php", "", 0, 20, 195);
	Menu2_8 = new Array("", "javascript:void(0)", "", 0, 20, 195);
	Menu2_9 = new Array("Contact SCC", baseUrl+"scc/contactscc.php", "", 0, 20, 195);

Menu3 = new Array("rollover:"+baseImgUrl+"sao_btn_off.gif:"+baseImgUrl+"sao" + menuOn + ".gif", saoUrl, "", 4, 60, 206);

	Menu3_1 = new Array("About SAO", saoUrl+"about.php", "", 0, 20, 200);
	Menu3_2 = new Array("SAO Events Calendar", saoUrl+"calendar.php", "", 0, 20, 200);
	Menu3_3 = new Array("Club Directory", saoUrl+"rso_search.php", "", 0, 20, 200);
	Menu3_4 = new Array("Club Registration", saoUrl+"rso_register.php", "", 0, 20, 200);
	
var hubMenu = 'Menu1';
var sccMenu = 'Menu2';
var saoMenu = 'Menu3';