var MENU_ITEMS_XP = [
	[wrap_root('Services', 'd'), null, {'bw' : 140}, 
			[wrap_child('Specialty Market', 'icons/special.gif'), 'specialty.html', {'sb' :'Specialty Market'}],
			[wrap_child('Digital Photography', 'camera.gif'), 'photography.html', {'sb' :'Digital Photography'}],
			[wrap_child('Package Concepts', 'boxes.gif'), 'concepts.html', {'sb' :'Packaging Concepts and Mockups'}],
			[wrap_child('Digital Assets', 'comp.gif'), 'assets.html', {'sb' :'Digital Asset Management'}],
			[wrap_child('Gravure', 'gravure.gif'), 'gravure.html', {'sb' :'Gravure Cylinder Engravings'}],
			[wrap_child('Flexo', 'flexo.gif'), 'flexo.html', {'sb' :'Flexography'}],
			[wrap_child('Offset', 'offset.gif'), 'offset.html', {'sb' :'Offset Printing'}]
	],

	[wrap_root('About Us', 'd'), null, {'bw' : 100}, 
			[wrap_child('Locations', 'home.gif'), 'locations.html'],
			[wrap_child('Contacts', 'contact.gif'), 'contacts.html'],
			[wrap_child('Mission', 'clip.gif'), 'mission.html'],
			[wrap_child('Profile', 'profile.gif'), 'profile.html']
	],
	[wrap_root('Client Access', 'd'), null, {'bw' : 120},
			[wrap_child('Digital Assets', 'dir.gif'), 'loginassets.html'],
			[wrap_child('Client Schedules', 'dir.gif'), 'loginschedules.html'],
			[wrap_child('Client Billing', 'dir.gif'), 'loginbilling.html']
	],
	[wrap_root('Help Files', 'd'), null, {'bw' : 95},
			[wrap_child('Upc Codes', 'dir.gif'), 'upccodes.html'],
			[wrap_child('Kosher Logo', 'dir.gif'), 'kosher.html'],
			[wrap_child('Recycling', 'dir.gif'), 'recycle.html'],
			[wrap_child('Nutritionals', 'dir.gif'), 'nutritional.html']
	]
]; 
var ii0 = new Image(); ii0.src = './menu_files/icons/special.gif';
var ii1 = new Image(); ii1.src = './menu_files/icons/i.gif';
var ii2 = new Image(); ii2.src = './menu_files/icons/n7.gif';
var ii3 = new Image(); ii3.src = './menu_files/icons/m12.gif';
var ii4 = new Image(); ii4.src = './menu_files/icons/o.gif';
var ii5 = new Image(); ii5.src = './menu_files/icons/email.gif';
var ii6 = new Image(); ii6.src = './menu_files/icons/icq.gif';
var ii7 = new Image(); ii7.src = './menu_files/icons/yahoo.gif';
var ii8 = new Image(); ii8.src = './menu_files/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=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>'
	];
}
