
function wrap_parent (text, width) {
	return [
	['<table cellpadding=0 cellspacing=0 border=0 width="', width,'"><tr><td class="TM0o0" width="100%" align="left">', text, '</td></tr></table>'].join(''),
	['<table cellpadding=0 cellspacing=0 border=0 width="', width,'"><tr><td class="TM0o1" width="100%" align="left">', text, '</td></tr></table>'].join(''),
	['<table cellpadding=0 cellspacing=0 border=0 width="', width,'"><tr><td class="TM0o1" width="100%" align="left">', text, '</td></tr></table>'].join('')	

	];
}

function wrap_child (text, width, icon) {
	return [
	['<table cellpadding=0 cellspacing=0 border=0 width="', width,'"><tr><td class="child" width="100%" align="left">', text, '<td><img height=11 src=', icon !=null ? '/images/' + icon: '/images/pixel.gif width=1', '></td></td></tr></table>'].join(''),
	['<table cellpadding=0 cellspacing=0 border=0 width="', width,'"><tr><td class="child_hover" width="100%" align="left">', text, '</td></tr></table>'].join(''),
	['<table cellpadding=0 cellspacing=0 border=0 width="', width,'"><tr><td class="child_hover" width="100%" align="left">', text, '</td></tr></table>'].join('')	

	];
}

var MENU_ITEMS = [

	[wrap_parent('Home', 68), "/home", {'sw' : 68}],

	[wrap_parent('About Us', 85), '/about', {'sw' : 85,  'bw' : 110},
		[wrap_child('Customers', 100), '/about/customers', null],
		[wrap_child('Licenses and Certifications', 100), '/about/certifications', null],
		[wrap_child('Media Center', 100), '/about/media', null],
		[wrap_child('Photo Gallery', 100), '/about/gallery', null],
		[wrap_child('Safety', 100), '/about/safety', null],
		[wrap_child('Video Introduction', 100), '/about/intro', null],
		[wrap_child('Mission Statement', 100), '/about/mission', null],
	],

	[wrap_parent('Services', 80), '/services', {'sw' : 80, 'bw' : 100},
		[wrap_child('Crane/Rigging', 100), '/services/crane', null],
		[wrap_child('Ductwork', 100), '/services/ductwork', null],
		[wrap_child('Electrical', 100, 'arr.gif'), '/services/electrical', {'bw' : 100}, 				
				[wrap_child('High-Voltage', 100), "/services/electrical/skyline", null],
				[wrap_child('Instrumentation, Controls and Automation', 100), "/services/electrical/instrumentation", null],
				[wrap_child('Thermography', 100), "/services/electrical/thermography", null],
			],						
		[wrap_child('Fabrication', 100, 'arr.gif'), '/services/fabrication', {'bw' : 100}, 				
				[wrap_child('CNC Machining', 100), "/services/fabrication/machining", null],
			],
		[wrap_child('Foundation Drilling', 100), '/services/drilling', null],
		[wrap_child('HVAC', 100), '/services/hvac', null],
		[wrap_child('Mechanical', 100), '/services/mechanical', null],
		[wrap_child('Millwright', 100), '/services/millwright', null],
		[wrap_child('Plumbing Services', 100, 'arr.gif'), '/services/airworks', {'bw' : 100},
			[wrap_child('Backflow Prevention', 100), "/services/airworks#backflow", null],
			[wrap_child('Sustainability', 100), "/services/airworks#green", null],
			[wrap_child('Tip of the Month', 100), "/services/airworks/tips", null],
			],
		[wrap_child('Plumbing and Process Piping', 100), '/services/plumbing', null],
		[wrap_child('Welding', 100), '/services/welding', null],
	],
	
	[wrap_parent('Careers', 82), '/careers', {'sw' : 82}],

	[wrap_parent('Contact', 73), "/contact", {'sw' : 73}],

];

