			function popWin(strURL)
		{
			window.open(strURL,"newWin");
		}
		
		function linkto_externalSite(strURL)
{
	if(confirm("You are leaving the Empower Credit Union Website.\n\nThe website you are linking to is not operated by Empower Credit Union.\n\nWe are not responsible for any content or information posted to this external web site.\n\nEmpower Credit Union is not responsible for, nor do we represent you or the External web site if you enter into any agreements.\n\nPrivacy and Security policies may differ between our web site and this external site."))
	{
		window.open(strURL,"","");
	}
}
	
	// set up drop downs anywhere in the body of the page. I think the bottom of the page is better.. 
	// but you can experiment with effect on loadtime.
	if (TransMenu.isSupported()) {

		//==================================================================================================
		// create a set of dropdowns
		//==================================================================================================
		// the first param should always be down, as it is here
		//
		// The second and third param are the top and left offset positions of the menus from their actuators
		// respectively. To make a menu appear a little to the left and bottom of an actuator, you could use
		// something like -5, 5
		//
		// The last parameter can be .topLeft, .bottomLeft, .topRight, or .bottomRight to inidicate the corner
		// of the actuator from which to measure the offset positions above. Here we are saying we want the 
		// menu to appear directly below the bottom left corner of the actuator
		//==================================================================================================
		var ms = new TransMenuSet(TransMenu.direction.down, -1, 0, TransMenu.reference.bottomLeft);

		//==================================================================================================
		// create a dropdown menu
		//==================================================================================================
		// the first parameter should be the HTML element which will act actuator for the menu
		//==================================================================================================
		var menu1 = ms.addMenu(document.getElementById("About"));
		menu1.addItem("History", "History.asp");
		menu1.addItem("Current News", "News.asp?161");
		menu1.addItem("Staff Contacts", "ContactUs.asp");
		menu1.addItem("Who Can Join?", "Join.asp");
		menu1.addItem("Location", "Location.asp");
		menu1.addItem("Newsletters", "Newsletters.asp");
		menu1.addItem("Privacy Policy", "PrivacyPolicy.asp");
		//menu1.addItem("Mortgage", "javascript:linkto_externalSite('http://mortgage.purdueefcu.com/default2.asp?siteId=F554D3B7-96FC-42DC-9070-D9DB74033E79')");
		

		//==================================================================================================

		//==================================================================================================
		var menu2 = ms.addMenu(document.getElementById("Save"));
		menu2.addItem("Checking", "Checking.asp");
		menu2.addItem("Savings Programs", "Savings.asp");
		menu2.addItem("Calculators", "Calculators.asp");
		//menu2.addItem("MyAccount", "javascript:popWin('https://www2.homecu.net/~pccu/mindex.html')");
		
			var submenu2 = menu2.addMenu(menu2.items[1]);
			submenu2.addItem("Savings/Club Accounts", "SavingsOpportunities.asp");
			submenu2.addItem("Money Markets", "MoneyMarket.asp");
			submenu2.addItem("Certificates", "CertificateOfDeposit.asp");
			submenu2.addItem("IRAs", "IRAs.asp");
			
		

		//==================================================================================================

		//==================================================================================================
		var menu3 = ms.addMenu(document.getElementById("Borrow"));
		menu3.addItem("Applications", "Applications.asp");
		menu3.addItem("Consumer Loans", "ConsumerLoans.asp");
		menu3.addItem("Home Loans", "javascript:popWin('http://empower.mortgagewebcenter.com/ResourceCenter/ResourceCenter.asp?PID=74')");
		menu3.addItem("Home Equity Loans", "HomeEquityLoans.asp");
		menu3.addItem("Calculators", "Calculators.asp");
		
			var submenu3 = menu3.addMenu(menu3.items[0]);
			submenu3.addItem("Home Loan Application", "javascript:popWin('http://empower.mortgagewebcenter.com/')");
			submenu3.addItem("Consumer Loan Application", "javascript:popWin('https://www.creditunionwebsites.com/V004U30PAN/empower/Form_CreditApp.asp')");
			
			var submenu3 = menu3.addMenu(menu3.items[1]);
			submenu3.addItem("Personal Loans", "PersonalLoans.asp");
			submenu3.addItem("Student Loans", "StudentLoans.asp");
			submenu3.addItem("Vehicle Loans", "VehicleLoans.asp");
			submenu3.addItem("Visa Credit Card", "CreditCards.asp");
		
		//==================================================================================================

		//==================================================================================================
		
		var menu4 = ms.addMenu(document.getElementById("Rate"));
		menu4.addItem("Home Loans", "javascript:popWin('http://empower.mortgagewebcenter.com/Default.asp')");
		menu4.addItem("Home Equity", "HomeEquityLoanrates.asp");
		menu4.addItem("Consumer Loans", "ConsumerLoanRates.asp");
		menu4.addItem("Deposit Accounts", "DepositRates.asp");
		menu4.addItem("IRA Investment", "IRARates.asp");

				
		//==================================================================================================

		//==================================================================================================

		var menu5 = ms.addMenu(document.getElementById("OnlineAccess"));
		menu5.addItem("Log In", "javascript:popWin('https://web2.secureinternetbank.com/pbi_pbi1961/pbi1961.asp?Rt=275071246&LogonBy=connect3&PRMACCESS=Portfolio&afc=00071&override=true')");
		menu5.addItem("Forgot Password", "javascript:popWin('https://web2.secureinternetbank.com/pbi_pbi1961/pbi1961.asp?Rt=275071246&LogonBy=connect3&PRMACCESS=Portfolio&afc=00071&override=true')");
		menu5.addItem("Demos", "OnlineAccess.asp");
		menu5.addItem("Credit Card Access", "javascript:popWin('https://www.gotomycard.com/default/')");
		menu5.addItem("Online Forms", "OnlineAccess.asp");

			var submenu5 = menu5.addMenu(menu5.items[2]);
			submenu5.addItem("Online Banking", "HBDemo/ShowDemo.htm");
			submenu5.addItem("Bill Payment", "javascript:popWin('https://www.billpaysite.com/V2/Demo.aspx?instID=39226')");
			
			var submenu5 = menu5.addMenu(menu5.items[4]);
			submenu5.addItem("Check Request", "javascript:popWin('https://www.creditunionwebsites.com/V004U30PAN/empower/Form_CheckRequest.asp')");
			submenu5.addItem("Membership Application", "javascript:popWin('upload/MemberApp.pdf')");
			submenu5.addItem("Change of Address", "javascript:popWin('https://www.creditunionwebsites.com/V004U30PAN/empower/Form_ChangeAddress.asp')");
			submenu5.addItem("Change Payroll Deduction", "javascript:popWin('https://www.creditunionwebsites.com/V004U30PAN/empower/Form_ChangePayrollDeduction.asp')");

		//==================================================================================================


		var menu6 = ms.addMenu(document.getElementById("OtherServices"));
		menu6.addItem("Electronic", "Electronic.asp");
		menu6.addItem("Shared Service Centers", "javascript:linkto_externalSite('http://www.creditunion.net')");
		menu6.addItem("Miscellaneous", "MiscServices.asp");
		menu6.addItem("Fraud Protection", "FraudProtection.asp");
 

		//==================================================================================================


		//==================================================================================================
		// write drop downs into page
		//==================================================================================================
		// this method writes all the HTML for the menus into the page with document.write(). It must be
		// called within the body of the HTML page.
		//==================================================================================================
		TransMenu.renderAll();
	}
