menuBase = '/about/';

menuText[0] = 'About Us';
menuURL[0] = 'index.html';
menuLevel[0] = '';

menuText[1] = 'Press Room';
menuURL[1] = 'press.html';
menuLevel[1] = '';

menuText[2] = 'Partnerships &amp; Industry Associations';
menuURL[2] = 'partnerships.html';
menuLevel[2] = '';

menuText[3] = 'Events Calendar';
menuURL[3] = 'events.html';
menuLevel[3] = '';

menuText[4] = 'Notifications';
menuURL[4] = 'notifications.html';
menuLevel[4] = '';

menuText[5] = 'UPS MI Videos';
menuURL[5] = 'upsmi_video.html';
menuLevel[5] = '';

menuText[6] = 'We Move Mail';
menuURL[6] = 'we_move_mail.html';
menuLevel[6] = 'sub';

menuText[7] = 'Video Overview of UPS Mail Innovations';
menuURL[7] = 'about_upsmi_vid.html';
menuLevel[7] = 'sub';

menuText[8] = 'Services and Industries';
menuURL[8] = 'service_industry_vid.html';
menuLevel[8] = 'subsub';

menuText[9] = 'Parcel Sorting';
menuURL[9] = 'parcel_sorting_vid.html';
menuLevel[9] = 'subsub';

menuText[10] = 'Automated Processing System';
menuURL[10] = 'aps.html';
menuLevel[10] = 'subsub';

menuText[11] = 'Contact UPS Mail Innovations';
menuURL[11] = 'contact_vid.html';
menuLevel[11] = 'subsub';

function buildMenu(pageID) {
	switch (pageID) {
		case "index":
			inPage = 0;
			menuItems = [1,2,3,4,5,6,7];
			headerPrefix = '<h2 class="darkBrown">';
			headerSuffix = '</h2>';
			break;
		case "press":
			inPage = 1;
			menuItems = [1,2,3,4,5,6,7];
			break;
		case "partnerships":
			inPage = 2;
			menuItems = [1,2,3,4,5,6,7];
			break;
		case "events":
			inPage = 3;
			menuItems = [1,2,3,4,5,6,7];
			break;
		case "notifications":
			inPage = 4;
			menuItems = [1,2,3,4,5,6,7];
			break;				
		case "upsmi_video":
			inPage = 5;
			menuItems = [1,2,3,4,5,6,7,8,9,10,11];
			break;			
		case "we_move_mail":
			inPage = 6;
			menuItems = [1,2,3,4,5,6,7,8,9,10,11];
			break;
		case "about_upsmi_vid":
			inPage = 7;
			menuItems = [1,2,3,4,5,6,7,8,9,10,11];
			break;
		case "service_industry_vid":
			inPage = 8;
			menuItems = [1,2,3,4,5,6,7,8,9,10,11];
			break;
		case "parcel_sorting_vid":
			inPage = 9;
			menuItems = [1,2,3,4,5,6,7,8,9,10,11];
			break;
		case "aps":
			inPage = 10;
			menuItems = [1,2,3,4,5,6,7,8,9,10,11];
			break;
		case "contact_vid":
			inPage = 11;
			menuItems = [1,2,3,4,5,6,7,8,9,10,11];
			break;
					
}

	writeMenu();
}