var MENU_ITEMS_XP = [
	[wrap_root('Home'), 'Index.html', {'sw':75, 'bw':120}],
	[wrap_root('Schedules'), null, {'sw' : 100, 'bw':220, 'bl':10, 'bt':0},
		[wrap_child('Soccer Schedule'), 'SoccerSchedules.html'],
		[wrap_child('Basketball Schedule'), 'BasketballSchedules.html'],
		[wrap_child('Batting Cage Schedule'), 'cages/FS02_Default.htm']
	],
	[wrap_root('Leagues'), null, {'sw' : 100, 'bw':220, 'bl':10, 'bt':0},
		[wrap_child('Soccer League Info'), 'SoccerLeagueInfo.html'],
		[wrap_child('Basketball League Info'), 'BasketballLeagueInfo.html'],
		[wrap_child('Forms'), 'Forms.html']
	],
	[wrap_root('Events'), null, {'sw' : 95, 'bw':170, 'bl':10, 'bt':0},
		[wrap_child('Soccer Tots'), 'SoccerTots.html'],
		[wrap_child('Tournaments'), 'Tournaments.html'],
		[wrap_child('Other Events'), 'MoreEvents.html']
	],
	[wrap_root('About Us'), null, {'sw' : 95, 'bw':170, 'bl':10, 'bt':0},
		[wrap_child('Facilities'), 'Facilities.html'],
		[wrap_child('Links'), 'Links.html'],
		[wrap_child('Contact Us'), 'ContactUs.html']
	]
]; 

function wrap_parent (text,icon) {
	return [['<table cellpadding=1 cellspacing=0 border=0 width=100%><tr><td bgcolor=#ff6601><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=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=#ff6601><tr><td><table cellpadding=1 cellspacing=0 border=0 width=100% height=22 bgcolor=#ff6601><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=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=#ff6601><tr><td><table cellpadding=1 cellspacing=0 border=0 width=100% height=22 bgcolor=#ff6601><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=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%><tr><td bgcolor=#ff6601><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=#ff6601><tr><td><table cellpadding=1 cellspacing=0 border=0 width=100% height=22 bgcolor=#ff6601><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=#ff6601><tr><td><table cellpadding=1 cellspacing=0 border=0 width=100% height=22 bgcolor=#ff6601><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=#ff6601><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=#ff6601><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>'
	];
}


