var MENU_ITEMS_XP = [
	
	[wrap_root('General Info'), null, {'bw' : 150},			

		[wrap_parent('Partners'), null, null, 
			[wrap_child('Operational'), 'operational.html'],
			[wrap_child('Supporting'), 'supporting.html'],
		],
		
		[wrap_parent('About Us'), null, null,
			[wrap_child('About Us'), 'about.html'],	
			[wrap_child('Facility Usage'), 'facility.html'], 
		],
			[wrap_child('Announcements'), 'announcement.html'],
			[wrap_child('Calendar'), 'calendar.html'],
			[wrap_child('Map to BBSC'), 'map_bbsc.html'],
			[wrap_child('Contact Us'), 'contactus.html'],
			[wrap_child('Home Page', '../images/icon_home.gif'), 'index.html']		
	],

	[wrap_root('Education'), null, {'bw' : 150},

		[wrap_parent('Shark Programs'), null, {'bw' : 180}, 
			[wrap_child('Sharkmobile'), 'sharkmobile.html'],
			[wrap_child('Shark Camp'), 'sharkcamp.html'],
		],
			[wrap_child('School Programs'), 'schoolprograms.html'],
			[wrap_child('Marine Life Inventory'),'marinelife.html'],
	],
	
	[wrap_root('Research'), null, {'bw' : 150},

		    [wrap_child('Phytoplankton'), 'fieldguidePhyto.html'],
	],
	
	[wrap_root('Opportunities'), null, {'bw' : 150},			

		[wrap_parent('Volunteer at BBSC'), null, null, 
			[wrap_child('Volunteer Service'), 'volunteer.html'],
			[wrap_child('Volunteer Forms'), 'volunteer_forms.html'],
			
		],
			[wrap_child('Community Service'), 'communityservice.html'],			
			[wrap_child('Internships'), 'interns.html'],
			[wrap_child('Eagle Scout Projects'), 'scouts.html'],
			[wrap_child('Research'), 'research.html'],		
	],

	[wrap_root('Events/Tours'), null, {'bw' : 155},
			[wrap_child('Coastal Clean Up'), 'coastalcleanup.html'],
			[wrap_child('Earth Day'), 'earthday.html'],
			[wrap_child('Shellmaker Tours'), 'discovery.html'],
			[wrap_child('Community Day Tour'), 'communityday.html'],
			[wrap_child('Lecture Series'), 'lectureseries.html'],
			[wrap_child('Summer Camp'), 'summercamp.html'],
			[wrap_child('Estuary Awareness Day'), 'estuaryaware.html'],
			
	],
	
		[wrap_root('UNBER'), null, {'bw' : 150},			
			[wrap_child('Current Projects'), 'projects.html'],
			[wrap_child('Restoration'), 'restoration.html'],
			[wrap_child('FAQ'), 'faq.html'],
			[wrap_child('Bird Count'), 'birdcount.html'],			
			[wrap_child('Maps'), 'maps.html'],
	],
		[wrap_root('Photo Album'), null, {'bw' : 150},			
			[wrap_child('Marine Life Inventory'), 'mli.html'],
			[wrap_child('Watershed'), 'watershed.html'],
			[wrap_child('General Photos'), 'general.html'],			
			[wrap_child('Open House 2008'), 'openhouse.html'],
			[wrap_child('Eagle Scout'), 'eaglescout.html'],			
			[wrap_child('Shark Mobile'), 'sharkmobile2.html'],
			[wrap_child('Wildlife'), 'wildlife.html'],			
			[wrap_child('Osprey'), 'osprey.html'],
	],
	
	[wrap_root('Video Channel'), null, {'bw' : 150},			
			[wrap_child('BBSC Video Channel'), 'http://www.youtube.com/user/backbays', {'tw':'_blank'}],
	],

	[wrap_root('Resources/Links'), null, {'bw' : 260},
			[wrap_child('California Fish and Game Resources'), 'http://www.dfg.ca.gov', {'tw':'_blank'}],
			[wrap_child('California Coastal Commission'), 'http://www.coastal.ca.gov', {'tw':'_blank'}],			
			[wrap_child('Orange County Parks'), 'http://www.ocparks.com', {'tw':'_blank'}],
			[wrap_child('Newport Bay Naturalists and Friends'), 'http://www.newportbay.org', {'tw':'_blank'}],
			[wrap_child('Recommended Links'), 'recommended.html'],
	],

];
 
var ii0 = new Image(); ii0.src = 'images/arr.gif';
var ii1 = new Image(); ii1.src = 'icons/i.gif';
var ii2 = new Image(); ii2.src = 'icons/n7.gif';
var ii3 = new Image(); ii3.src = 'icons/m12.gif';
var ii4 = new Image(); ii4.src = 'icons/o.gif';
var ii5 = new Image(); ii5.src = 'icons/email.gif';
var ii6 = new Image(); ii6.src = 'icons/icq.gif';
var ii7 = new Image(); ii7.src = 'icons/yahoo.gif';
var ii8 = new Image(); ii8.src = 'icons/aol.gif';
var ii9 = new Image(); ii9.src = 'menu_files/pixel.gif';

function wrap_parent (text,icon) {
	return [['<table cellpadding=1 cellspacing=0 border=0 width=100%><tr><td bgcolor=#EFEDDE><img height=16 src=', icon !=null ? '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=a0>&nbsp; ', text, '</td></tr></table></td><td><img src=images/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=#FFFFFF><tr><td><table cellpadding=1 cellspacing=0 border=0 width=100% height=22 bgcolor=#4682B4><tr><td><img height=16 src=', icon !=null ? 'icons/' + icon: 'menu_files/pixel.gif width=16', ' hspace=3></td><td width=100% class=a0>&nbsp; ', text, '</td><td><img src=images/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=#FFFFFF><tr><td><table cellpadding=1 cellspacing=0 border=0 width=100% height=22 bgcolor=#4682B4><tr><td><img height=16 src=', icon !=null ? 'icons/' + icon: 'menu_files/pixel.gif width=16', ' hspace=3></td><td width=100% class=a0>&nbsp; ', text, '</td><td><img src=images/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%><tr><td bgcolor=#EFEDDE><img height=16 src=', icon !=null ? 'icons/' + 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=a0>&nbsp; ', text, '</td></tr></table></td></tr></table>'].join(''),
	['<table cellpadding=1 cellspacing=0 border=0 width=100% bgcolor=#FFFFFF><tr><td><table cellpadding=1 cellspacing=0 border=0 width=100% height=22 bgcolor=#4682B4><tr><td><img height=16 src=', icon !=null ? 'icons/' + icon: 'menu_files/pixel.gif width=16', ' hspace=3></td><td width=99% class=a0>&nbsp; ', text, '</td></tr></table></td></tr></table>'].join(''),
	['<table cellpadding=1 cellspacing=0 border=0 width=100% bgcolor=#FFFFFF><tr><td><table cellpadding=1 cellspacing=0 border=0 width=100% height=22 bgcolor=#4682B4><tr><td><img height=16 src=', icon !=null ? 'icons/' + icon: 'menu_files/pixel.gif width=16', ' hspace=3></td><td width=99% class=a0>&nbsp; ', 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=0 cellspacing=0 border=0 width=100% height=21><tr><td width=100% class=a0 align="center">&nbsp; ' + text + ' &nbsp;</td></tr></table></td></tr></table>',
	'<table cellpadding=1 cellspacing=0 border=0 width=100% bgcolor=#FFFFFF><tr><td><table cellpadding=0 cellspacing=0 border=0 width=100% height=21><tr><td width=100% class=a1 align="center">&nbsp; ' + text + ' &nbsp;</td></tr></table></td></tr></table>',
	'<table cellpadding=1 cellspacing=0 border=0 width=100% bgcolor=#FFFFFF><tr><td><table cellpadding=0 cellspacing=0 border=0 width=100% height=21><tr><td width=100% class=a1 align="center">&nbsp; ' + text + ' &nbsp;</td></tr></table></td></tr></table>'
	];
}
