var MENU_ITEMS = [
	[wrap_root('&nbsp;<b>Home</b>'), 'http://www.chirocenters.com'],
	[wrap_root('&nbsp;<b>Search</b>'), 'http://www.chirocenters.com/search'],
	[wrap_root_with_sub_item('&nbsp;<b>Patients</b>'), 'http://www.chirocenters.com/patients', {'bw' : 200}, 
		[wrap_child('Chiropractic 101', 'icon-documents16x16.gif'), 'http://www.chirocenters.com/patients/chiropractic101'],
		[wrap_child('Doctors', 'icon-people16x16.gif'), 'http://www.chirocenters.com/doctors'],
		[wrap_child('Finances and Insurance', 'icon-documents16x16.gif'), 'http://www.chirocenters.com/patients/finances-insurance']
	],
	[wrap_root_with_sub_item('&nbsp;<b>Locations</b>'), 'http://www.chirocenters.com/locations', {'bw' : 400}, 
		[wrap_child('Harbour Pointe Chiropractic and Wellness Center', 'icon-home16x16.gif'), 'http://www.chirocenters.com/locations/harbour-pointe'],
		[wrap_child('Short Pump - Innsbrook', 'icon-home16x16.gif'), 'http://www.chirocenters.com/locations/short-pump'],
	    [wrap_child('Bell Creek Chiropractic and Wellness Center', 'icon-home16x16.gif'), 'http://www.chirocenters.com/locations/bell-creek'],
	    [wrap_child('Courthouse Commons Chiropractic and Wellness Center', 'icon-home16x16.gif'), 'http://www.chirocenters.com/locations/courthouse-commons'],
	    [wrap_child('Sommerville Chiropractic and Wellness Center', 'icon-home16x16.gif'), 'http://www.chirocenters.com/locations/sommerville'],
	    [wrap_child('Westhampton Chiropractic Center', 'icon-home16x16.gif'), 'http://www.chirocenters.com/locations/westhampton'],
	    [wrap_child('Victorian Square Chiropractic Center', 'icon-home16x16.gif'), 'http://www.chirocenters.com/locations/victorian-square']
	],
	[wrap_root_with_sub_item('&nbsp;<b>Doctors</b>'), 'http://www.chirocenters.com/doctors', {'bw' : 400}, 
		[wrap_child('Kate Brus, D.C. (Harbour Pointe CWC)', 'icon-people16x16.gif'), 'http://www.chirocenters.com/doctors/brus'],
		[wrap_child('David C. Donofrio, B.S., D.C. (Sommerville CWC)', 'icon-people16x16.gif'), 'http://www.chirocenters.com/doctors/donofrio'],
		[wrap_child('Ryan Heid, D.C. (Sommerville CWC)', 'icon-people16x16.gif'), 'http://www.chirocenters.com/doctors/heid'],
		[wrap_child('Ron Herrsche, D.C. (Westhampton CWC)', 'icon-people16x16.gif'), 'http://www.chirocenters.com/doctors/herrsche'],
		[wrap_child('Joseph Kennedy, B.S., D.C., C.S.C.S. (Courthouse Commons CWC)', 'icon-people16x16.gif'), 'http://www.chirocenters.com/doctors/kennedy'],
		[wrap_child('Jason King, D.C. (Westhampton CWC)', 'icon-people16x16.gif'), 'http://www.chirocenters.com/doctors/king'],
		[wrap_child('Michael McCarney, B.S., D.C. (Courthouse Commons CWC)', 'icon-people16x16.gif'), 'http://www.chirocenters.com/doctors/mccarney'],
		[wrap_child('James D. McLelland, D.C. (Short Pump CWC)', 'icon-people16x16.gif'), 'http://www.chirocenters.com/doctors/mclelland'],
		[wrap_child('Mike Placide, B.S., D.C. (Harbour Pointe CWC)', 'icon-people16x16.gif'), 'http://www.chirocenters.com/doctors/placide'],
		[wrap_child('Paul E. Tschetschot, D.C. (Victorian Square CC)', 'icon-people16x16.gif'), 'http://www.chirocenters.com/doctors/tschetschot'],
		[wrap_child('Cheri Williamson, M.P.T. (Bell Creek CWC)', 'icon-people16x16.gif'), 'http://www.chirocenters.com/doctors/cheriwilliamson'],
		[wrap_child('Dana C. Williamson, B.A., D.C. (Bell Creek CWC)', 'icon-people16x16.gif'), 'http://www.chirocenters.com/doctors/williamson']
	],
	[wrap_root_with_sub_item('&nbsp;<b>Staff</b>'), 'http://www.chirocenters.com/staff', {'bw' : 270}, 
		[wrap_child('Alex G. (Westhampton CWC)', 'icon-people16x16.gif'), 'http://www.chirocenters.com/staff/alex_g'],
		[wrap_child('Amber H. (Short Pump CWC)', 'icon-people16x16.gif'), 'http://www.chirocenters.com/staff/amber_h'],
		[wrap_child('Brian U. (Harbour Pointe CWC)', 'icon-people16x16.gif'), 'http://www.chirocenters.com/staff/brian_u'],
		[wrap_child('Dallas C. (Sommerville CWC)', 'icon-people16x16.gif'), 'http://www.chirocenters.com/staff/dallas_c'],
		[wrap_child('Jean S. (Sommerville CWC)', 'icon-people16x16.gif'), 'http://www.chirocenters.com/staff/jean_s'],
		[wrap_child('JoAnna (Courthouse Commons CWC)', 'icon-people16x16.gif'), 'http://www.chirocenters.com/staff/joanna'],
		[wrap_child('Joie W. (Harbour Pointe CWC)', 'icon-people16x16.gif'), 'http://www.chirocenters.com/staff/joie_w'],
		[wrap_child('Kari K. (Harbour Pointe CWC)', 'icon-people16x16.gif'), 'http://www.chirocenters.com/staff/kari_k'],
		[wrap_child('Lisa F. (Sommerville CWC)', 'icon-people16x16.gif'), 'http://www.chirocenters.com/staff/lisa_f'],
		[wrap_child('Nikki M. (Bell Creek CWC)', 'icon-people16x16.gif'), 'http://www.chirocenters.com/staff/nikki_m'],
		[wrap_child('Pamela W. (Harbour Pointe CWC)', 'icon-people16x16.gif'), 'http://www.chirocenters.com/staff/pamela_w'],
		[wrap_child('Silvana M. (Short Pump CWC)', 'icon-people16x16.gif'), 'http://www.chirocenters.com/staff/silvana_m']
	],
	[wrap_root_with_sub_item('&nbsp;<b>Virtual<br>&nbsp;Tours</b>'), 'http://www.chirocenters.com/virtualtours', {'bw' : 400},
		[wrap_child('Harbour Pointe Chiropractic and Wellness Center', 'icon-pictures16x16.gif'), 'http://www.chirocenters.com/virtualtours/harbour-pointe'],
		[wrap_child('Short Pump Chiropractic and Wellness Center', 'icon-pictures16x16.gif'), 'http://www.chirocenters.com/virtualtours/short-pump'],
	    [wrap_child('Bell Creek Chiropractic, Physical Therapy and Wellness Center', 'icon-pictures16x16.gif'), 'http://www.chirocenters.com/virtualtours/bell-creek'],
   	    [wrap_child('Courthouse Commons Chiropractic, Physical Therapy and Wellness Center', 'icon-pictures16x16.gif'), 'http://www.chirocenters.com/virtualtours/courthouse-commons'],
   	    [wrap_child('Westhampton Chiropractic Center', 'icon-pictures16x16.gif'), 'http://www.chirocenters.com/virtualtours/westhampton'],
   	    [wrap_child('Sommerville Chiropractic and Wellness Center', 'icon-pictures16x16.gif'), 'http://www.chirocenters.com/virtualtours/sommerville'],
   	    [wrap_child('Victorian Square Chiropractic Center', 'icon-pictures16x16.gif'), 'http://www.chirocenters.com/virtualtours/victorian-square']
	],
    [wrap_root('&nbsp;<b>Treatment<br>&nbsp;Hours</b>'), 'http://www.chirocenters.com/hours'],
	[wrap_root('&nbsp;<b>Contact Us</b>'), 'http://www.chirocenters.com/contact']
]; 

// 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/icon-arror-right.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/icon-arror-right.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/icon-arror-right.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/icon-arror-right.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/icon-arror-right.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/icon-arror-right.gif width=4 height=7 align="right" align=absmiddle hspace=3></td></tr></table>'
	];
}


