var MENU_ITEMS_XP = [
	[wrap_root('Home'),'index.html', {sb : "Home", 'sw' : 125}],

	[wrap_root('About Sportvision'), 'about.htm', {sb : "About Sportvison", 'sw' : 125}],

	[wrap_root('Methodology'), 'methodology.htm', {sb : "Methodology", 'sw' : 125}],

	[wrap_root('Vision In Sports'), null, {sb : "Vision in Sports", 'sw' : 125},
			[wrap_child('Rugby', 'ball.gif'), 'rugby.htm'],
			[wrap_child('Racquet Sports', 'tennis.gif'), 'racquetsports.htm'],
			[wrap_child('Shooting', 'target.gif'), 'shooting.htm'],
			[wrap_child('Eye Protection', 'protect.gif'), 'eyeprotection.htm']
			],
			
	[wrap_root('Find a Practitioner'), 'practitioners.aspx', {'sb' : "Find A Practitioner", 'sw' : 125},],
		
	[wrap_root('Contact Us'), 'contact.htm', {sb : "Contact Us", 'sw' : 125}],
	
		[wrap_root('Web Links'), null, {sb : "External Links", 'sw' : 125},
			[wrap_child('GOC Web Site', 'i.gif'), "javascript:NewWin=window.open('http://www.optical.org/','NWin');window['NewWin'].focus()"],
			[wrap_child('Schoolvision', 'i.gif'), "javascript:NewWin=window.open('http://www.schoolvision.info/','NWin');window['NewWin'].focus()"],
			[wrap_child('Sight Care', 'i.gif'), "javascript:NewWin=window.open('http://www.sightcare.co.uk/','NWin');window['NewWin'].focus()"],
			[wrap_child('Sportvision.co.uk', 'i.gif'), "javascript:NewWin=window.open('http://www.sportvision.co.uk/','NWin');window['NewWin'].focus()"],
			[wrap_child('Vision Aid Overseas', 'i.gif'), "javascript:NewWin=window.open('http://www.vao.org.uk/','NWin');window['NewWin'].focus()"]
			]

]; 
var ii0 = new Image(); ii0.src = 'icons/i.gif';
var ii1 = new Image(); ii1.src = 'icons/tennis.gif';
var ii2 = new Image(); ii2.src = 'icons/target.gif';
var ii3 = new Image(); ii3.src = 'icons/email.gif';
var ii4 = new Image(); ii4.src = 'icons/ball.gif';
var ii5 = new Image(); ii5.src = 'icons/protect.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=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 bgcolor=#CED1C3><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=#93A070><tr><td><table cellpadding=1 cellspacing=0 border=0 width=100% height=22 bgcolor=#CED1C3><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=#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=#93A070><tr><td><table cellpadding=1 cellspacing=0 border=0 width=100% height=22 bgcolor=#CED1C3><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=#93A070><tr><td><table cellpadding=1 cellspacing=0 border=0 width=100% height=22 bgcolor=#CED1C3><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=#93A070><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=#93A070><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>'
	];
}