/* --- menu items --- */
var MENU_ITEMS_left = [
	['Checking & Savings',mylink('/checking/index.asp'), null,
		['Checking',mylink('/checking/index.asp'), null],
		['Savings',mylink('/savings/index.asp'), null],
		['Order Checks','javascript:thirdpartydisc(\'http://www.deluxe-check-order.com/?url=www.apgfcu.com&urltext=Return%20to%20APGFCU.com\')', null]
	],
	['Loans',mylink('/Loans/index.asp'), null,
		['Home Loans',mylink('/Loans/home.asp'),null,
			['Mortgages',mylink('/Loans/home_mortgages.asp'),null,
				['Apply for Mortgage','http://www.apgfcumortgages.com/','tw:_blank'],
				['Apply for Special Products Mortgage','https://www.apgfcu.com/other/fma_a.asp', {'sh':34}]
			],
			['Home Equity',mylink('/Loans/home_equity.asp'),null,
				['Apply for Home Equity Loan or Line of Credit',mylink('/Loans/home_equity_discl.asp'), {'sh':34}]
			],
		],
		['Consumer Loans',mylink('/Loans/consumer.asp'),null,
			['Apply for a Loan','https://www.apgfcu.com/cdapps/loanap.asp',null],
			['Check Current Rates',mylink('/rates/loan_rates.asp#other'),null],
			['Calculate Your Payment',mylink('/other/calculators.asp'),null],
		],
		['Auto Loans',mylink('/Loans/cars.asp'),null]/*
			['Vehicle Loans','/Loans/cars_bps.asp?t=vl',null],
			['Other Types of vehicles','/Loans/othertransport.asp',null],
			['Get Pre-Approved','/Loans/cars_bps.asp?t=pa',null],
			['Apply for a Car Loan','https://www.apgfcu.com/cdapps/loanap.asp',null],
			['Check Out Your Deal','http://www.mvcp.com',null],
			['Refinance & Save','/Loans/cars_bps.asp?t=rf',null],
			['CU Financing at the Dealer','/Loans/cars_art_AtTheDealer1.asp',null],
			['Research & Compare','http://www.nadaguides.com/',null],
			['Consumer Information',null,null,
				['Rebate or Financing?','/Loans/cars_art_rebateVSfinancing.asp',null],
				['Is your loan upside down?','/Loans/cars_art_upsidedown.asp',null],
				['Five tips...','/Loans/cars_art_5tips.asp',null],
			]
		]*/,
		['Other Vehicle Loans',mylink('/Loans/othertransport.asp'),null]
	],
	['Rates',mylink('/rates/index.asp'), null,
		['Savings Rates',mylink('/rates/savings_rates.asp')],
		['Checking Rates',mylink('/rates/savings_rates.asp#checking')],
		['Loan Rates',mylink('/rates/loan_rates.asp')]
	],
	['Visa&reg; Cards',mylink('/visa/index.asp'), null,
		['Cards &amp; Options',mylink('/visa/index.asp')],
		['Apply for a Visa','https://www.apgfcu.com/cdapps/visaap.asp'],
		['Balance Transfer',mylink('/visa/transfer_debt.asp')],
			/*['Visa Gift Cards',mylink('/visa/giftcards/index.asp')],*/
		['Visa Rewards&#8482;','http://usa.visa.com/specialOffers/APGFCU_O_Shopping/offers.jsp']
	],
	['Other Services', mylink('/aboutus/other.asp'), null,
		['Seniors',mylink('/other/seniors.asp')],
		['Convenience Services',mylink('/other/convenience.asp')],
		['Video Tellers',mylink('/other/video_tellers.asp')],
		['Personal Investment Services',mylink('/other/golesinfo.asp'), {'sh':34}]
	],
	['Mortgages', 'http://www.apgfcumortgages.com/', null
	],
];


var MENU_ITEMS_top = [
	['Home',mylink('/index.asp'), {'sw':47}],
	/*[[wraptop('home',47),wraptopover('home',47),wraptopover('home',47)], '/index.asp', {'sw':47}],*/
	['News&Events',mylink('/aboutus/pr/pr_index.asp'), {'sw':96}
	/*[[wraptop('news',96),wraptopover('news',96),wraptopover('news',96)], '/aboutus/pr/pr_index.asp', {'sw':96},
		['News','/aboutus/pr/pr_index.asp', null],
		['Events','/aboutus/events.asp', null]*/
	],
	['Employment',mylink('/aboutus/employment.asp'), {'sw':83}/*,
	[[wraptop('emp',83),wraptopover('emp',83),wraptopover('emp',83)],'/aboutus/employment.asp', {'sw':83},
		['Working for APGFCU', null],
		['Current Openings','/aboutus/openings.asp']*/
	],
	['Advice & Education',mylink('/other/edu_re.asp'), {'sw':130}/*,
	[[wraptop('edu',130),wraptopover('edu',130),wraptopover('edu',130)], '/other/edu_re.asp', {'sw':130},
		['Financial Counceling','/other/financial.asp'],
		['Financial Planning','http://members.cunamutual.com/home/mfn.asp?01900125'],
		['Moola Moola','/other/youth.asp#moola'],
		['STARSS','/other/youth.asp#starss'],
		['Y.E.S. Team','/other/youth.asp#yes']*/
	],
	['About Us',mylink('/aboutus/index.asp'), {'sw':65}/*
	[[wraptop('about',65),wraptopover('about',65),wraptopover('about',65)], '/aboutus/index.asp', {'sw':65}*/
	],
	['Contact Us',mylink('/aboutus/contactus.asp'), {'sw':75}/*,
	[[wraptop('contact',75),wraptopover('contact',75),wraptopover('contact',75)], '/aboutus/contactus.asp', {'sw':75},
		['General Information',null],
		['ATM & Branch Locations','/atm/index.asp', {'sh':36}],
		['Holiday Schedule','/aboutus/holidays.asp']*/
	]
];

//alert(myhost)
//alert(mylink('/index.asp'))
function mylink(l){
	var build = 'http://'+myhost+l
	return build
}

function wraptop(t,w){
	var build = '<table width="'+w+'" border="0" cellpadding="0" cellspacing="0"><tr><td align="center" valign="middle">';
	build = build + '/images/menu_top_'+t+'.gif" width="'+w+'" height="17">';
	build = build + '</td></tr></table>';
	return build;
}

function wraptopover(t,w){
	//var build = '<table width="'+w+'" border="0" cellpadding="0" cellspacing="1" bgcolor="#000000"><tr><td>';
	//build = build + '</td></tr></table>';
	var build = '<table width="'+w+'" border="0" cellpadding="0" cellspacing="0"><tr><td align="center" valign="middle">';
	build = build + '<img src="/images/menu_top_'+t+'-over.gif" width="'+w+'" height="17">';
	build = build + '</td></tr></table>';
	return build;
}