var MENU_ITEMS_XP = [
	[wrap_root('Home'), '/index.jsp', {'sw' : 49}],
	[wrap_root('Buyers'), null, {'sw' : 53}, 
		[wrap_child('Overview', null), '/buyers/index.jsp'],
		[wrap_parent('Why <span class=\'sunbelt\'>SUNBELT</span>?', null), '/buyers/why-sunbelt.jsp', null,
			[wrap_child('Our Brokers Offer You...', null), '/buyers/why-use-a-broker.jsp'],
			[wrap_child('Targeted Acquisition Program', null), '/buyers/tap.jsp']
		],
		[wrap_parent('Business Owner Types', null), null, null,
			[wrap_child('Are You an Entrepreneur?', null), '/buyers/entrepreneur.jsp'],
			[wrap_child('Are You a Franchisee?', null), '/buyers/franchisee.jsp']
		],
		[wrap_child('Buying an Existing Business', null), '/buyers/walk-through.jsp'],
		[wrap_child('Steps to Success', null), '/buyers/steps-to-success.jsp'],
		[wrap_child('Buying Fundamentals', null), '/buyers/fundamentals.jsp'],
		[wrap_parent('<span class=\'search\'>Find a Business</span>', null), '/buyers/search.jsp', null,
			[wrap_child('Advanced Search', null), '/buyers/search.jsp?action=new'],
			[wrap_child('Search By Listing ID', null), '/buyers/search.jsp#sli'],
			[wrap_parent('Quick Search', null), null, null,
				[wrap_child('Million Dollar Businesses', null), '/buyers/search.jsp?quicksearch=million']
			],
			[wrap_parent('Browse Listings', null), '/buyers/search.jsp#bbc', null,
				[wrap_child('Top Industries', null), '/buyers/search.jsp#tt'],
				[wrap_child('Country', null), '/buyers/search.jsp#bbc'],
				[wrap_child('US Regions', null), '/buyers/search.jsp#bbr'],
				[wrap_child('US States', null), '/buyers/search.jsp#bbs1'],
				[wrap_child('Canadian Provinces', null), '/buyers/search.jsp#bbs2']
			]
		],
		[wrap_parent('Tools & Resources', null), null, null,
			[wrap_child('Amortization Calculator', null), '/tools/amortization.jsp'],
			[wrap_child('SBA Loan Requirements', null), '/buyers/sba-requirements.jsp'],
			[wrap_child('Asset vs. Stock Purchase', null), '/buyers/asset-vs-stock.jsp'],
			[wrap_child('Sample Due Diligence List', null), '/buyers/sample-due-diligence.jsp'],
			[wrap_child('Buy a Business Flow Chart', null), '/BAFlowChart.pdf'],
			[wrap_child('Confidentiality Form', null), '/ConfidentialityAgreement.pdf']
		]
	],
	[wrap_root('Sellers'), null, {'sw' : 52}, 
		[wrap_child('Overview', null), '/sellers/index.jsp'],
		[wrap_parent('Why <span class=\'sunbelt\'>SUNBELT</span>?', null), '/sellers/why-sunbelt.jsp', null,
			[wrap_child('Our Brokers Offer You...', null), '/sellers/why-use-a-broker.jsp'],
			[wrap_child('Our Network', null), '/sellers/our-network.jsp'],
			[wrap_child('Our Technology', null), '/sellers/our-technology.jsp'],
			[wrap_child('Reap The Benefits', null), '/sellers/reap-the-benefits.jsp']
		],
		[wrap_child('How We Earn Our Fees', null), '/sellers/how-we-earn-our-fees.jsp'],
		[wrap_child('Questions to Ask a Broker', null), '/sellers/broker-questions.jsp'],
		[wrap_child('Sellers Walk-Through', null), '/sellers/walk-through.jsp'],
		[wrap_child('Steps to Success', null), '/sellers/steps-to-success.jsp'],
		[wrap_child('Valuing Your Business', null), '/sellers/valuing-your-business.jsp'],
		[wrap_child('FAQ', null), '/sellers/faq.jsp'],
		[wrap_child('<img src=\'/images/sold.gif\'> Businesses', null), '/sellers/sold.jsp'],
		[wrap_child('Seller Inquiry', null), '/sellers/inquiry.jsp']
	],
	[wrap_root('Franchises'), null, {'sw' : 71}, 
		[wrap_child('Overview', null), '/franchises/index.jsp'],
		[wrap_child('<span class=\'search\'>Find a Franchise</span>', null), '/franchises/search.jsp'],
		[wrap_child('The ABC\'s of Franchising', null), '/franchises/abc-of-franchising.jsp'],
		[wrap_child('Our Program', null), '/franchises/our-program.jsp'],
		[wrap_child('Types of Agreements', null), '/franchises/types-of-agreements.jsp'],
		[wrap_child('The Buying Process', null), '/franchises/the-buying-process.jsp'],
		[wrap_child('FAQ', null), '/franchises/faq.jsp']
	],
	[wrap_root('Locations'), null, {'sw' : 66},
		[wrap_child('Browse Locations', null), '/locations/index.jsp'],
		[wrap_child('Broker Search', null), '/locations/broker-search.jsp']
	],
	[wrap_root('<span class=\'sunbelt\'>SUNBELT</span> Franchise'), null, {'sw' : 123},
		[wrap_child('Overview', null), '/join-sunbelt/index.jsp'],
		[wrap_child('A Letter From Our Founder', null), '/join-sunbelt/letter.jsp'],
		[wrap_child('Why Business Brokerage?', null), '/join-sunbelt/why-business-brokerage.jsp'],
		[wrap_child('Why Buy a Franchise?', null), '/join-sunbelt/why-buy-a-franchise.jsp'],
		[wrap_child('Why <span class=\'sunbelt-sm\'>SUNBELT</span>?', null), '/join-sunbelt/why-sunbelt.jsp'],
		[wrap_child('Five Steps to Owning', null), '/join-sunbelt/five-steps.jsp'],
		[wrap_child('Available Territories', null), '/join-sunbelt/territories.jsp'],
		[wrap_child('Franchise Inquiry', null), '/join-sunbelt/inquiry.jsp']
	],
	[wrap_root('Events'), null, {'sw' : 52}, 
		[wrap_child('Overview', null), '/events/index.jsp'],
		[wrap_child('Seminars', null), '/events/seminars.jsp'],
		[wrap_child('2005 Annual Meeting', null), '/events/annual-meeting.jsp']
	],
	[wrap_root('Company'), null, {'sw' : 66},
		[wrap_child('Overview', null), '/company/index.jsp'],
		[wrap_parent('Press Room', null), '/company/press-room.jsp', null,
			[wrap_child('Overview', null), '/company/press-room.jsp'],
			[wrap_child('Company News', null), '/company/news.jsp'],
			[wrap_child('Articles', null), '/company/pr-hits.jsp'],
			[wrap_child('Awards', null), '/company/awards.jsp']
		],
		[wrap_child('Company History', null), '/company/history.jsp'],
		[wrap_child('About Us', null), '/company/about-us.jsp'],
		[wrap_child('Contact Us', null), '/company/contact-us.jsp']
	]
]; 
var ii0 = new Image(); ii0.src = '/images/arr.gif';
var ii1 = new Image(); ii1.src = '/images/i.gif';
var ii2 = new Image(); ii2.src = '/images/n7.gif';
var ii3 = new Image(); ii3.src = '/images/m12.gif';
var ii4 = new Image(); ii4.src = '/images/o.gif';
var ii5 = new Image(); ii5.src = '/images/email.gif';
var ii6 = new Image(); ii6.src = '/images/icq.gif';
var ii7 = new Image(); ii7.src = '/images/yahoo.gif';
var ii8 = new Image(); ii8.src = '/images/aol.gif';
var ii9 = new Image(); ii9.src = '/images/pixel.gif';
var ii10 = new Image(); ii10.src = '/images/Find16.gif';
var ii11 = new Image(); ii11.src = '/images/Zoom16.gif';
var ii12 = new Image(); ii12.src = '/images/jump-to-16.gif';
var ii13 = new Image(); ii13.src = '/images/search-16.gif';
var ii14 = new Image(); ii14.src = '/images/exec-16.gif';
var ii15 = new Image(); ii15.src = '/images/prefs-16.gif';
var ii16 = new Image(); ii16.src = '/images/little-logo2.gif';

function wrap_parent (text,icon) {
	return [['<table cellpadding=1 cellspacing=0 border=0 width=100%><tr><td bgcolor=#E5E7EA><img height=16 src=', icon !=null ? '/images/' + icon: '/images/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=#CCCCCC><tr><td><table cellpadding=1 cellspacing=0 border=0 width=100% height=22 bgcolor=#FBFBB1><tr><td><img height=16 src=', icon !=null ? '/images/' + icon: '/images/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=#CCCCCC><tr><td><table cellpadding=1 cellspacing=0 border=0 width=100% height=22 bgcolor=#FBFBB1><tr><td><img height=16 src=', icon !=null ? '/images/' + icon: '/images/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=#E5E7EA><img height=16 src=', icon !=null ? '/images/' + icon: '/images/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=#CCCCCC><tr><td><table cellpadding=1 cellspacing=0 border=0 width=100% height=22 bgcolor=#FBFBB1><tr><td><img height=16 src=', icon !=null ? '/images/' + icon: '/images/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=#CCCCCC><tr><td><table cellpadding=1 cellspacing=0 border=0 width=100% height=22 bgcolor=#FBFBB1><tr><td><img height=16 src=', icon !=null ? '/images/' + icon: '/images/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%><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%><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>'
	];
}