			function popWin(strURL)
		{
			window.open(strURL,"newWin");
		}
		
		function linkto_externalSite(strURL)
{
	if(confirm("You are now leaving the Secured Advantage Federal Credit Union website.\n\nYou are linking to a site created and maintained by another organization.\n\nPrivacy and security policies on the linked site may differ from those practiced by us.\n\nSecured Advantage Federal Credit Union does not regularly review materials posted on linked sites, does not endorse the owners of such linked sites, or the products or materials appearing on such linked sites, and does not represent the owner of the site or the Member if the two enter into a transaction.\n\nAny decision of website visitors to view any of the linked websites is at their own risk."))
	{
		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, 10, -10, 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_nav"));
		menu1.addItem("FAQs", "FAQ.asp");
		menu1.addItem("Membership", "Membership.asp");
		menu1.addItem("Newsletters", "Newsletters.asp");
		menu1.addItem("Privacy Policy", "Privacy.asp");
		

		//==================================================================================================
		var menu2 = ms.addMenu(document.getElementById("apps_nav"));
		menu2.addItem("Loan Application", "javascript:popWin('https://www.loanliner.com/lrpresenter/lr1loantypes.asp?CUIDNR=03900770')");
		menu2.addItem("Membership Application", "javascript:popWin('Upload/DownloadDocument.asp?fileid=4562')");
		menu2.addItem("ATM/Debit Card Application", "javascript:popWin('Upload/DownloadDocument.asp?fileid=4565')");
		menu2.addItem("Change of Address", "javascript:popWin('Upload/DownloadDocument.asp?fileid=4563')");
		menu2.addItem("Direct Deposit Form", "javascript:popWin('Upload/DownloadDocument.asp?fileid=4567')");


		//==================================================================================================
		var menu3 = ms.addMenu(document.getElementById("rates_nav"));
		menu3.addItem("Savings & Investment Rates", "Rates_Savings.asp");
		menu3.addItem("Loan Rates", "Rates_Loan.asp");
		menu3.addItem("Mortgage & Home Equity Rates", "Rates_Mortgage.asp");
		menu3.addItem("Fee Schedule", "Fees.asp");
		menu3.addItem("Calculators", "Calcs.asp");
		
		//==================================================================================================
		var menu4 = ms.addMenu(document.getElementById("accounts_nav"));
		menu4.addItem("Savings Account", "Savings.asp");
		menu4.addItem("Checking Accounts", "Checking.asp");
		menu4.addItem("Additional Member Services", "Services.asp");
		menu4.addItem("Current Rates", "Rates_Savings.asp");

		
		//==================================================================================================
		var menu5 = ms.addMenu(document.getElementById("loans_nav"));
		menu5.addItem("Consumer Loans", "Consumer.asp");
		menu5.addItem("Mortgage Loans", "Mortgage.asp");
		menu5.addItem("Credit Cards", "CreditCards.asp");
		menu5.addItem("Applications", "javascript:popWin('https://www.loanliner.com/LoanRequest/CLPPresenter/LoanList.aspx?IsFramed=F&CUID=03900770&LoanListID=709&ChannelID=6354947001134182832&LocationID=6354947001134182832')");
		menu5.addItem("Current Rates", "Rates_Loan.asp");

		
		//==================================================================================================
		var menu6 = ms.addMenu(document.getElementById("online_nav"));
		menu6.addItem("Virtual Branch", "VirtualBranch.asp");
		menu6.addItem("Visa Online", "javascript:linkto_externalSite('https://onlineaccessplus.com/oa/securedadvantagefcu')");
		menu6.addItem("Electronic Bill Pay", "BillPay.asp");
		menu6.addItem("E-Statements", "EStatements.asp");
		menu6.addItem("Check Reorder", "javascript:linkto_externalSite('https://reorder.libertysite.com/default.aspx')");




		//==================================================================================================

		//==================================================================================================
		// 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();
	}