/* height formula: h = (n * 15) + 13 + 13

   n  = number of menu items 
   15 = line height of each menu item
   13 = height of the menu's top image
   13 = height of the menu's bottom image
*/

var menuData =
{
	'menus': {
		'company': {
			'height':126,
			'width':194,
			'trigger':'companyBtn',
			'offsetX':-16,
			'offsetY':14,
			'direction': 'down',
			'items':[ {type: 'link', text: 'About EnSky', href: '/company/index.php'},
					  {type: 'link', text: 'Our Process', href: '/company/process/index.php'},
					  {type: 'link', text: 'Current News', href: '/company/press/index.php'},
					  {type: 'link', text: 'Help and FAQs', href: '/company/faq/index.php'},
					  {type: 'link', text: 'Jobs', href: '/company/jobs.php'},
					  {type: 'link', text: 'Founders', href: '/company/founders.php'}
					] 
				},
		'services': {
			'height':136,
			'width':194,
			'trigger':'servicesBtn',
			'offsetX':-16,
			'offsetY':14,
			'direction': 'down',
			'items':[ {type: 'link', text: 'Marketing/Communications', href: '/services/marketing/index.php'},
					  {type: 'link', text: 'Website Design', href: '/services/design/index.php'},
					  {type: 'link', text: 'Web Application Development', href: '/services/develop/index.php'},
					  {type: 'link', text: 'Website Maintenance', href: '/services/skymaster/index.php'},
					  {type: 'link', text: 'Website Marketing', href: '/services/promote/index.php'},
					  {type: 'link', text: 'Flash and Multimedia', href: '/services/flash_multimedia/index.php'},
					  {type: 'link', text: 'Hi-Def Film Production', href: '/services/broadcast_film-video_production/hi-def-dv-filming.php'}
					  
					] 
				},
		'results': {
			'height':101,
			'width':194,
			'trigger':'resultsBtn',
			'offsetX':-16,
			'offsetY':14,
			'direction': 'down',
			'items':[ {type: 'link', text: 'By Industry', href: '/results/industry.php'},
					  {type: 'link', text: 'By Solution', href: '/results/solution.php'},
					  {type: 'link', text: 'Portfolio', href: '/results/portfolio.php'},
					  {type: 'link', text: 'Client List', href: '/results/clients.php'},
					  {type: 'link', text: 'References', href: '/results/quotes.php'}
					] 
				},
		'contact': {
			'height':56,
			'width':194,
			'trigger':'contactBtn',
			'offsetX':-16,
			'offsetY':14,
			'direction': 'down',
			'items':[ {type: 'link', text: 'Directions', href: '/contact/directions.php'},
					  {type: 'link', text: 'Request A Quote', href: '/contact/rfq.php'}
					] 
				}
			},
	'nomenus': ['loginBtn']
}

var menuObj = new menuObject(menuData)
menuObj.isSupported = function () {
	var ret = false
	// set a baseline that includes DOM-capable browsers and MSIE
	if (browser.isDOM1 || document.all) {
		ret = true
	}
	// now, disinclude browsers that match above rule, but are known to be wonky
	if (browser.isOpera && (browser.versionMajor < 6)) {
		ret = false
	}
	return ret
}
