var MENU_ITEMS = [
	[wrap_root('&nbsp;<b>Home</b>'), 'http://www.gastro.vcu.edu'],
	[wrap_root('&nbsp;<b>Search</b>'), 'http://www.gastro.vcu.edu/search'],
	[wrap_root_with_sub_item('&nbsp;<b>Leadership</b>'), 'http://www.gastro.vcu.edu/leadership', {'bw' : 250}, 
		[wrap_child('A Message from the Division Chair', 'note16x16.gif'), 'http://www.gastro.vcu.edu/leadership/welcome.html'],
		[wrap_child('Mission Statement', 'missionstatement16x16.gif'), 'http://www.gastro.vcu.edu/leadership/mission.html'],
	    [wrap_child('Division Objectives', 'note16x16.gif'), 'http://www.gastro.vcu.edu/leadership/objectives.html']
	],
	[wrap_root_with_sub_item('&nbsp;<b>Patients</b>'), 'http://www.gastro.vcu.edu/patients', {'bw' : 200}, 
		[wrap_child('Endoscopy'), 'http://www.gastro.vcu.edu/patients/endoscopy'],
		[wrap_child('Faculty', 'faculty16x16.gif'), 'http://www.gastro.vcu.edu/faculty'],
		[wrap_child('Clinical Programs'), 'http://www.gastro.vcu.edu/patients/clinicalprograms'],
		[wrap_child('Research'), 'http://www.gastro.vcu.edu/research'],
		[wrap_parent('Education'), 'http://www.gastro.vcu.edu/patients/education/', {'bw' : 200},
		    [wrap_child('Digestive Disorders', 'folder16x16.gif'), 'http://www.gastro.vcu.edu/patients/education/digestivedisorders']
		]
	],
	[wrap_root_with_sub_item('&nbsp;<b>Faculty</b>'), 'http://www.gastro.vcu.edu/faculty', {'bw' : 220}, 
		[wrap_child('Faculty by Name', 'faculty16x16.gif'), 'http://www.gastro.vcu.edu/faculty'],
		[wrap_child('Faculty by Section', 'faculty16x16.gif'), 'http://www.gastro.vcu.edu/faculty/facultybysection.html'],
	    [wrap_child('Organizational Chart', 'OrgChart16x16.gif'), 'http://www.gastro.vcu.edu/faculty/orgchart.html'],
	    [wrap_child('Publications', 'publications16x16.gif'), 'http://www.gastro.vcu.edu/faculty/publications']
	],
	[wrap_root_with_sub_item('&nbsp;<b>Nursing</b>'), 'http://www.gastro.vcu.edu/nursing', {'bw' : 200}, 
		[wrap_child('All Nurses', 'faculty16x16.gif'), 'http://www.gastro.vcu.edu/nursing/nurses']
	],
	[wrap_root_with_sub_item('&nbsp;<b>Research</b>'), 'http://www.gastro.vcu.edu/research', {'bw' : 200},
			[wrap_child('Clinical Research', 'research16x16.gif'), 'http://www.gastro.vcu.edu/research/clinical'],
			[wrap_child('Liver Diseases', 'folder16x16.gif'), 'http://www.gastro.vcu.edu/research/liverdiseases'],
			[wrap_child('Gastroenterology', 'folder16x16.gif'), 'http://www.gastro.vcu.edu/research/gastro'],
			[wrap_child('Hepatology', 'folder16x16.gif'), 'http://www.gastro.vcu.edu/research/hepatology'],
			[wrap_child('Nutrition', 'folder16x16.gif'), 'http://www.gastro.vcu.edu/research/nutrition'],
			[wrap_child('Obesity Center', 'house16x16.gif'), 'http://www.gastro.vcu.edu/research/obesitycenter'],
			[wrap_child('NIH Research', 'folder16x16.gif'), 'http://www.gastro.vcu.edu/research/nih']
	],
	[wrap_root_with_sub_item('&nbsp;<b>Education</b>'), 'http://www.gastro.vcu.edu/education', {'bw' : 300},
			[wrap_child('Fellowship Program'), 'http://www.gastro.vcu.edu/education/fellowshipprogram'],
			[wrap_child('Transplant/Hepatology Fellowship Program'), 'http://www.gastro.vcu.edu/education/fellowshipprogram/th'],
			[wrap_child('Academic Calendar'), 'http://www.gastro.vcu.edu/education/academiccalendar']
	],
	[wrap_root('&nbsp;<b>Practice Sites</b>'), 'http://www.gastro.vcu.edu/practicesites'],
	[wrap_root_with_sub_item('&nbsp;<b>Events</b>'), 'http://www.gastro.vcu.edu/events', {'bw' : 200}, 
		[wrap_parent('<b>Academic &nbsp;Calendar</b>'), 'http://www.gastro.vcu.edu/events/academic_calendar', {'bw' : 200},
		    [wrap_child('Conference', 'folder16x16.gif'), 'http://www.gastro.vcu.edu/events/academic_calendar/conference']
		],
		[wrap_child('Summer Programs'), 'http://www.gastro.vcu.edu/events/summerprograms/'],
		[wrap_child('Visiting Professors', 'faculty16x16.gif'), 'http://www.gastro.vcu.edu/events/visitingprofessors/']
	]
]; 

// var ii0 = new Image(); ii0.src = 'images/icons/arr.gif';
// var ii1 = new Image(); ii1.src = 'images/icons/i.gif';
// var ii2 = new Image(); ii2.src = 'images/icons/n7.gif';
// var ii3 = new Image(); ii3.src = 'images/icons/m12.gif';
// var ii4 = new Image(); ii4.src = 'images/icons/o.gif';
// var ii5 = new Image(); ii5.src = 'images/icons/email.gif';
// var ii6 = new Image(); ii6.src = 'images/icons/icq.gif';
// var ii7 = new Image(); ii7.src = 'images/icons/yahoo.gif';
// var ii8 = new Image(); ii8.src = 'images/icons/aol.gif';
// var ii9 = new Image(); ii9.src = 'manu_files/pixel.gif';

function wrap_parent (text,icon) {
	return [['<table cellpadding=1 cellspacing=0 border=0 width=100% bgcolor=#EFEDDE><tr><td bgcolor=#EFEDDE><img height=16 src=', icon !=null ? 'images/icons/' + icon: 'menu_files/pixel.gif width=16', ' hspace=3></td><td width=100%><table cellpadding=1 cellspacing=0 border=0 width=100% height=22><tr><td class=MenuCurrentUnselectedItem bgcolor=#EFEDDE>', text, '</td></tr></table></td><td class=MenuCurrentUnselectedItem><img src=images/icons/arr.gif width=4 height=7 align="middle" align=absmiddle hspace=3></td></tr></table>'].join(''),
	['<table cellpadding=1 cellspacing=0 border=0 width=100% bgcolor=#93A070><tr><td><table cellpadding=1 cellspacing=0 border=0 width=100% height=22><tr><td bgcolor=#FBE3A3><img height=16 src=', icon !=null ? 'images/icons/' + icon: 'menu_files/pixel.gif width=16', ' hspace=3></td><td width=100% class=MenuCurrentUnselectedItem bgcolor=#FBE3A3>', text, '</td><td bgcolor=#FBE3A3><img src=images/icons/arr.gif width=4 height=7 align="middle" align=absmiddle hspace=3></td></tr></table></td></tr></table>'].join(''),
	['<table cellpadding=1 cellspacing=0 border=0 width=100% bgcolor=#93A070><tr><td><table cellpadding=1 cellspacing=0 border=0 width=100% height=22><tr><td bgcolor=#FBE3A3><img height=16 src=', icon !=null ? 'images/icons/' + icon: 'menu_files/pixel.gif width=16', ' hspace=3></td><td width=100% class=MenuCurrentUnselectedItem bgcolor=#FBE3A3>', text, '</td><td bgcolor=#FBE3A3><img src=images/icons/arr.gif width=4 height=7 align="middle" align=absmiddle hspace=3></td></tr></table></td></tr></table>'].join('')
	];
}

function wrap_child (text,icon) {
	return [['<table cellpadding=1 cellspacing=0 border=0 width=100% bgcolor=#EFEDDE><tr><td bgcolor=#EFEDDE><img height=16 src=', icon !=null ? 'images/' + icon: 'menu_files/pixel.gif width=15', ' hspace=3></td><td width=100%><table cellpadding=1 cellspacing=0 border=0 width=100% height=22><tr><td class=MenuCurrentUnselectedItem bgcolor=#EFEDDE>', text, '</td></tr></table></td></tr></table>'].join(''),
	['<table cellpadding=1 cellspacing=0 border=0 width=100% bgcolor=#93A070><tr><td><table cellpadding=1 cellspacing=0 border=0 width=100% height=22><tr><td bgcolor=#FBE3A3><img height=16 src=', icon !=null ? 'images/' + icon: 'menu_files/pixel.gif width=16', ' hspace=3></td><td width=99% class=MenuCurrentUnselectedItem bgcolor=#FBE3A3>', text, '</td></tr></table></td></tr></table>'].join(''),
	['<table cellpadding=1 cellspacing=0 border=0 width=100% bgcolor=#93A070><tr><td><table cellpadding=1 cellspacing=0 border=0 width=100% height=22><tr><td bgcolor=#FBE3A3><img height=16 src=', icon !=null ? 'images/' + icon: 'menu_files/pixel.gif width=16', ' hspace=3></td><td width=99% class=MenuCurrentUnselectedItem bgcolor=#FBE3A3>', text, '</td></tr></table></td></tr></table>'].join('')
	];
}
/*
function wrap_root (text) {
	return [
	'<table cellpadding=1 cellspacing=0 border=0 width=100%><tr><td><table cellpadding=1 cellspacing=0 border=0 width=100% height=21><tr><td width=100% class=MenuCurrentUnselectedItem align="left">' + text + ' &nbsp;</td></tr></table></td></tr></table>',
	'<table cellpadding=1 cellspacing=0 border=0 width=100% bgcolor=#93A070><tr><td><table cellpadding=1 cellspacing=0 border=0 width=100% height=21><tr><td width=100% class=MenuCurrentUnselectedItem align="left">' + text + ' &nbsp;</td></tr></table></td></tr></table>',
	'<table cellpadding=1 cellspacing=0 border=0 width=100% bgcolor=#93A070><tr><td><table cellpadding=1 cellspacing=0 border=0 width=100% height=21><tr><td width=100% class=MenuCurrentUnselectedItem align="left">' + text + ' &nbsp;</td></tr></table></td></tr></table>'
	];
}
*/
function wrap_root (text) {
	return [
	'<table cellpadding=1 cellspacing=0 border=0 width=98><tr><td><table cellpadding=1 cellspacing=0 border=0 width=100% height=30><tr><td width=100% class=MenuCurrentUnselectedItemNoBackColor align="left">' + text + ' &nbsp;</td></tr></table></td></tr></table>',
	'<table cellpadding=1 cellspacing=0 border=0 width=98><tr><td><table cellpadding=1 cellspacing=0 border=0 width=100% height=30><tr><td width=100% class=MenuCurrentUnselectedItemNoBackColor align="left">' + text + ' &nbsp;</td></tr></table></td></tr></table>',
	'<table cellpadding=1 cellspacing=0 border=0 width=98><tr><td><table cellpadding=1 cellspacing=0 border=0 width=100% height=30><tr><td width=100% class=MenuCurrentUnselectedItemNoBackColor align="left">' + text + ' &nbsp;</td></tr></table></td></tr></table>'
	];
}

function wrap_right_menu_root (text) {
	return [
	'<table cellpadding=1 cellspacing=0 border=0 width=100><tr><td><table cellpadding=1 cellspacing=0 border=0 width=100% height=16><tr><td width=100% class=RightMenuCurrentUnselectedItem align="left">' + text + '</td></tr></table></td></tr></table>',
	'<table cellpadding=1 cellspacing=0 border=0 width=100><tr><td><table cellpadding=1 cellspacing=0 border=0 width=100% height=16><tr><td width=100% class=RightMenuCurrentUnselectedItem align="left">' + text + '</td></tr></table></td></tr></table>',
	'<table cellpadding=1 cellspacing=0 border=0 width=100><tr><td><table cellpadding=1 cellspacing=0 border=0 width=100% height=16><tr><td width=100% class=RightMenuCurrentUnselectedItem align="left">' + text + '</td></tr></table></td></tr></table>'
	];
}


function wrap_root_with_sub_item (text) {
	return [
	'<table cellpadding=1 cellspacing=0 border=0 width=98><tr><td><table cellpadding=1 cellspacing=0 border=0 width=100% height=30><tr><td width=100% class=MenuCurrentUnselectedItemNoBackColor align="left">' + text + ' &nbsp;</td></tr></table></td><td><img src=images/icons/arr.gif width=4 height=7 align="right" align=absmiddle hspace=3></td></tr></table>',
	'<table cellpadding=1 cellspacing=0 border=0 width=98><tr><td><table cellpadding=1 cellspacing=0 border=0 width=100% height=30><tr><td width=100% class=MenuCurrentUnselectedItemNoBackColor align="left">' + text + ' &nbsp;</td></tr></table></td><td><img src=images/icons/arr.gif width=4 height=7 align="right" align=absmiddle hspace=3></td></tr></table>',
	'<table cellpadding=1 cellspacing=0 border=0 width=98><tr><td><table cellpadding=1 cellspacing=0 border=0 width=100% height=30><tr><td width=100% class=MenuCurrentUnselectedItemNoBackColor align="left">' + text + ' &nbsp;</td></tr></table></td><td><img src=images/icons/arr.gif width=4 height=7 align="right" align=absmiddle hspace=3></td></tr></table>'
	];
}


