

/************************        ypSlideOutMenus        *************************
*                        \                             /
*                         -----------------------------
*
*   Copyright            : (c) 2002 Aaron Boodman
*   Location             : http://www.youngpup.net/
*                          http://ypslideoutmenus.sourceforge.net/
*
*   Current Version      : 29 August 2002
*
*********************************************************************************
*  A nice little script to create exclusive, slide-out menus for NS4, NS6,
*  Mozilla, Opera, IE4, IE5 on Mac and Win32.  I don't have Linux or Unix to
*  test on but it should(?) work...
********************************************************************************/



/*
   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': {
		'AboutKCU': {
			'height':161,
			'width':194,
			'trigger':'yp_about',
			'offsetX':200,
			'offsetY':-2,
			'direction': 'right',
			'items':[ {type: 'link', text: 'History',			id: 'mm_yp_ab_history',		href: sitedir + 'about_history.html'},
				  {type: 'link', text: 'Board of Directors',		id: 'mm_yp_ab_board_directors',	href: sitedir + 'about_board.html'},
				  {type: 'link', text: 'Mission &amp; Values',		id: 'mm_yp_ab_mission_values',	href: sitedir + 'about_mission_values.html'},
				  {type: 'link', text: 'Speakers Bureau',		id: 'mm_yp_ab_speakers_bureau',	href: sitedir + 'about_speakers_bureau.html'},
				  {type: 'link', text: 'Career Opportunities',		id: 'mm_yp_ab_careers',		href: sitedir + 'about_careers.html'},
				  {type: 'link', text: 'Policies',			id: 'mm_yp_ab_policies',	href: sitedir + 'about_policies.html'},
				  {type: 'link', text: 'Frequently Asked Questions',	id: 'mm_yp_ab_faqs',		href: sitedir + 'about_faqs.html'},
				  {type: 'link', text: 'Annual Report',	id: 'mm_yp_ab_ar',		href: sitedir + 'about_annual_report.html'}
				] 
				},
		'CheckingSavings': {
			'height':77,
			'width':194,
			'trigger':'yp_checking_savings',
			'offsetX':200,
			'offsetY':-2,
			'direction': 'right',
			'items':[ {type: 'link', text: 'Checking Accounts',		id: 'mm_yp_cs_checking',	href: sitedir + 'cs_checking.html'},
				  {type: 'link', text: 'Savings Accounts',		id: 'mm_yp_cs_savings',		href: sitedir + 'cs_savings.html'},
				  {type: 'link', text: 'Share Certificates',		id: 'mm_yp_cs_share_cert',	href: sitedir + 'cs_share_certificates.html'},
				  {type: 'link', text: 'IRAs',				id: 'mm_yp_cs_ira',		href: sitedir + 'cs_iras.html'}
				] 
				},
		'Mortgages': {
			'height':39,
			'width':194,
			'trigger':'yp_mortgages',
			'offsetX':200,
			'offsetY':-2,
			'direction': 'right',
			'items':[ {type: 'link', text: 'Mortgage Information &amp; Rates',
				 							id: 'mm_yp_mo_info',		href: 'https://kohlercu.mortgagewebcenter.com/'},
				  {type: 'link', text: 'Representatives\' Bios',	id: 'mm_yp_mo_bios',		href: sitedir + 'mortgages_bios.html'}
				] 
				},
		'Loans': {
			'height':96,
			'width':194,
			'trigger':'yp_loans',
			'offsetX':200,
			'offsetY':-2,
			'direction': 'right',
			'items':[ {type: 'link', text: 'Vehicle',			id: 'mm_yp_lo_vehicle',		href: sitedir + 'loans_auto.html'},
				  {type: 'link', text: 'Mortgage',			id: 'mm_yp_lo_mortgage',	href: 'https://kohlercu.mortgagewebcenter.com/'},
				/* {type: 'link', text: 'Home Equity',			id: 'mm_yp_lo_home_equity',	href: sitedir + 'loans_equity.html'}, */
				  {type: 'link', text: 'Personal',			id: 'mm_yp_lo_personal',	href: sitedir + 'loans_personal.html'},
				  {type: 'link', text: 'Student',			id: 'mm_yp_lo_student',		href: sitedir + 'loans_student.html'}
				] 
				},
		/*'CreditCards': {
			'height':96,
			'width':194,
			'trigger':'yp_loans',
			'offsetX':200,
			'offsetY':-2,
			'direction': 'right',
			'items':[ {type: 'link', text: 'FOO BAR',			id: 'mm_yp_cc_foobar',		href: sitedir + ''},
				  {type: 'link', text: 'FOO BAR',			id: 'mm_yp_cc_foobar',		href: sitedir + ''},
				  {type: 'link', text: 'FOO BAR',			id: 'mm_yp_cc_foobar',		href: sitedir + ''}
				] 
				},*/
		'BusinessServices': {
			'height':146,
			'width':194,
			'trigger':'yp_business',
			'offsetX':200,
			'offsetY':-2,
			'direction': 'right',
			'items':[ {type: 'link', text: 'The Way We Do Business',	id: 'mm_yp_bs_way_we_do',	href: sitedir + 'business_do_business.html'},
				  {type: 'link', text: 'Savings Options',		id: 'mm_yp_bs_savings',		href: sitedir + 'business_savings.html'},
				  {type: 'link', text: 'Checking Options /<br />Merchant Card Services',
				  							id: 'mm_yp_bs_checking',	href: sitedir + 'business_checking.html'},
				  {type: 'link', text: 'Business Lending',		id: 'mm_yp_bs_lending',		href: sitedir + 'business_lending.html'},
				  {type: 'link', text: 'Electronic Services',		id: 'mm_yp_bs_eservices',	href: sitedir + 'business_eservices.html'},
				  {type: 'link', text: 'Business Directory',		id: 'mm_yp_bs_directory',	href: sitedir + 'business_directory.html'},
				  {type: 'link', text: 'Featured Business',		id: 'mm_yp_bs_featured',	href: sitedir + 'business_featured.html'}
				] 
				},
		'MFS': {
			'height':89,
			'width':194,
			'trigger':'yp_membersfin',
			'offsetX':200,
			'offsetY':-2,
			'direction': 'right',
			'items':[ {type: 'link', text: 'Members Financial Services<br />Information',
				 							id: 'mm_yp_mf_mfs_info',	href: sitedir + 'mfs.html'},
				  {type: 'link', text: 'Representatives\' Bios',	id: 'mm_yp_mf_rep_bios',	href: sitedir + 'mfs_bios.html'},
				  {type: 'link', text: 'Brokerage Center',		id: 'mm_yp_mf_brokerate',	href: 'http://members.cunamutual.com/Brokerage/default.asp?SITE=04801865'},
				  {type: 'link', text: 'Investment Education Center',	id: 'mm_yp_mf_education',	href: 'http://members.cunamutual.com/EducationCenter/default.asp?SITE=04801865'}
				] 
				},
		'MobileBranch': {
			'height':39,
			'width':194,
			'trigger':'yp_mobile_branch',
			'offsetX':200,
			'offsetY':-2,
			'direction': 'right',
			'items':[ {type: 'link', text: 'What is it?',			id: 'mm_yp_mb_what',		href: sitedir + 'mobile_branch.html'},
				  {type: 'link', text: 'Calendar of Events',		id: 'mm_yp_mb_calendar',	href: sitedir + 'wh_events.html'}
				] 
				},
		'CurrentSpecials': {
			'height':39,
			'width':194,
			'trigger':'yp_specials',
			'offsetX':200,
			'offsetY':-2,
			'direction': 'right',
			'items':[ {type: 'link', text: 'Current Specials',			id: 'mm_yp_cu_current_specials',		href: sitedir + 'specials.html'},
				  {type: 'link', text: 'Vehicles for Sale',			id: 'mm_yp_cu_vehicle_sale',		href: sitedir + 'specials_vehicle.html'}				  
				] 
				},
		'Calculators': {
			'height':155,
			'width':194,
			'trigger':'yp_calculators',
			'offsetX':200,
			'offsetY':-2,
			'direction': 'right',
			'items':[ /*{type: 'link', text: 'Loan',				id: 'mm_yp_ca_loan',		href: 'https://www.loanliner.com/ICE/presenter/default.asp?CuIdNr=04801865&amp;ProtPkgIdNr=0948005603069174240&amp;ORIGIN_CHANNEL_ID=2947535601024145124&amp;ORIGIN_LOCATION_ID=2947535601024145124%22%3eSecured'},*/
				  {type: 'link', text: 'Loan Comparison',		id: 'mm_yp_ca_comparison',	href: sitedir + 'calculators_loan_one.html'},
				  {type: 'link', text: 'Mortgage',			id: 'mm_yp_ca_mortgage',	href: 'https://kohlercu.mortgagewebcenter.com/ResourceCenter/Calculators/Default.asp?PID=76'},
				 /* {type: 'link', text: 'Retirement',			id: 'mm_yp_ca_retirement',	href: sitedir + 'calculators_retirement.html'},
				  {type: 'link', text: 'Savings',			id: 'mm_yp_ca_savings',		href: sitedir + 'calculators_savings.html'}, */
				  {type: 'link', text: 'Kids',				id: 'mm_yp_ca_kids',		href: sitedir + 'calculators_kids.html'}
				] 
				},
		'WhatsHappening': {
			'height':116,  //77
			'width':194,
			'trigger':'yp_happening',
			'offsetX':200,
			'offsetY':-2,
			'direction': 'right',
			'items':[ {type: 'link', text: 'In the News (Press Releases)',	id: 'mm_yp_wh_pr',		href: sitedir + 'wh_itn.html'},
				  {type: 'link', text: 'Community Involvement',		id: 'mm_yp_wh_community',	href: sitedir + 'wh_community.html'},
				  {type: 'link', text: 'Member Newsletter',		id: 'mm_yp_wh_newsletter',	href: sitedir + 'wh_newsletter.html'},
				  {type: 'link', text: 'Events',			id: 'mm_yp_wh_events',		href: sitedir + 'wh_events.html'},
				  {type: 'link', text: 'Rachel&rsquo;s Desk',			id: 'mm_yp_wh_rachel',		href: sitedir + 'wh_rachel.html'},
				  {type: 'link', text: 'Employee Spotlight',			id: 'mm_yp_wh_employee',		href: sitedir + 'wh_employee_spot.html'}
				] 
				},
		'RelocationResources': {
			'height':134,
			'width':194,
			'trigger':'yp_relocate',
			'offsetX':200,
			'offsetY':-2,
			'direction': 'right',
			'items':[ {type: 'link', text: 'Weather',			id: 'mm_yp_rr_weather',		href: sitedir + 'relocate_weather.html'},
				  {type: 'link', text: 'School Districts',		id: 'mm_yp_rr_schools',		href: sitedir + 'relocate_school_districts.html'},
				  {type: 'link', text: 'Higher Education',		id: 'mm_yp_rr_higher_ed',	href: sitedir + 'relocate_higher_education.html'},
				  {type: 'link', text: 'Chambers of Commerce',		id: 'mm_yp_rr_chamber',		href: sitedir + 'relocate_chambers.html'},
				  {type: 'link', text: 'Realtors',			id: 'mm_yp_rr_realtors',	href: sitedir + 'relocate_realtors.html'},
				  {type: 'link', text: 'Places of Worship',		id: 'mm_yp_rr_worship',		href: sitedir + 'relocate_worship.html'},
				  {type: 'link', text: 'Healthcare',			id: 'mm_yp_rr_healthcare',	href: sitedir + 'relocate_healthcare.html'}
				] 
				}/*,
		'AdditionalServices': {
			'height':155,
			'width':194,
			'trigger':'yp_additional_services',
			'offsetX':200,
			'offsetY':-2,
			'direction': 'right',
			'items':[ {type: 'link', text: 'Safe Deposit Box',		id: 'mm_yp_as_safe_deposit',	href: sitedir + 'as_safe_deposit.html'},
				  {type: 'link', text: 'Gift Cards',			id: 'mm_yp_as_gift_cards',	href: sitedir + ''},
				  {type: 'link', text: 'Travelers Cheques',		id: 'mm_yp_as_travelers',	href: sitedir + ''},
				  {type: 'link', text: 'Attraction Tickets',		id: 'mm_yp_as_attraction',	href: sitedir + ''},
				  {type: 'link', text: 'Savings Bonds',			id: 'mm_yp_as_savings_bonds',	href: sitedir + ''},
				  {type: 'link', text: 'Notary Services',		id: 'mm_yp_as_notary',		href: sitedir + ''},
				  {type: 'link', text: 'Legal Services',		id: 'mm_yp_as_legal',		href: sitedir + ''},
				  {type: 'link', text: 'Night Deposit',			id: 'mm_yp_as_night_deposit',	href: sitedir + ''}
				] 
				}*/
			},
	'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;
}