			function popWin(strURL)
		{
			window.open(strURL,"newWin");
		}
		
		function linkto_externalSite(strURL)
{
	if(confirm("You are leaving the WCTFCU Website.\n\nThe website you are linking to is not operated by WCTFCU.\n\nWe are not responsible for any content or information posted to this external web site.\n\nWCTFCU 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, 10, 1, 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("Membership"));
		menu1.addItem("About Us", "About.asp");
		menu1.addItem("Who Can Join", "JoinWho.asp");
		menu1.addItem("Membership Application", "https://www.creditunionwebsites.com/v002u31vku/waterbury/MemberApp.asp");
		menu1.addItem("Privacy Policy", "Privacy.asp");


		//==================================================================================================

		//==================================================================================================
		var menu2 = ms.addMenu(document.getElementById("Rates"));
		menu2.addItem("Loan Rates", "RatesLoan.asp");
		menu2.addItem("Share Rates", "RatesShare.asp");
		menu2.addItem("Home Equity/Mortgage Rates", "RatesMortgage.asp");
		menu2.addItem("Calculators", "Calcs.asp");


		//==================================================================================================

		//==================================================================================================
		var menu3 = ms.addMenu(document.getElementById("Online"));
		menu3.addItem("E-statements", "javascript:popWin('https://www.bitstatement.org/bit/logon.asp?cuid=wctfcu&status=1')");
		menu3.addItem("Loan Application", "javascript:popWin('https://www.24x7loans.com/WaterburyTFCUAuto/default.aspx')");
		menu3.addItem("Membership Application", "https://www.creditunionwebsites.com/v002u31vku/waterbury/MemberApp.asp");
		menu3.addItem("<B>On Line Banking/Bill Payer</B>", "javascript:popWin('https://global1.onlinebank.com/vtgv/vtgr.htm?tmpl=online.htm&banknr=867')");
		menu3.addItem("Re-order Checks", "javascript:linkto_externalSite('https://reorder.libertysite.com/default.aspx')");
		menu3.addItem("Verified By VISA", "Verified.asp");
		menu3.addItem("VISA Payments", "javascript:linkto_externalSite('https://www.ezcardinfo.com/')");
		menu3.addItem("Withdrawal By Check", "https://www.creditunionwebsites.com/v002u31vku/waterbury/WDCheck.asp");


		//==================================================================================================

		//==================================================================================================
		var menu4 = ms.addMenu(document.getElementById("ProdServ"));
		menu4.addItem("Products", "#");
		menu4.addItem("Services", "#");
		
			var submenu4 = menu4.addMenu(menu4.items[0]);
			submenu4.addItem("Checking", "Checking.asp");
			submenu4.addItem("Debit Cards", "DebitCards.asp");
			submenu4.addItem("Credit Cards", "CreditCards.asp");
			submenu4.addItem("Loan Products", "Loans.asp");
			submenu4.addItem("Mortgage Products", "Mortgage.asp");
			submenu4.addItem("Savings Products", "Savings.asp");

			var submenu4 = menu4.addMenu(menu4.items[1]);
			submenu4.addItem("Insurance", "Insurance.asp");
			submenu4.addItem("Direct Deposit", "DirectDep.asp");
			submenu4.addItem("Financial Planning", "FinPlanning.asp");
			submenu4.addItem("Notary Service", "Notary.asp");
			submenu4.addItem("Medallion Signature Guarantee", "Notary.asp");
			submenu4.addItem("Payroll Deduction", "Payroll.asp");
			submenu4.addItem("Scholarships", "Scholarships.asp");
			submenu4.addItem("Wire Transfers", "Wire.asp");


		//==================================================================================================

		//==================================================================================================
		var menu5 = ms.addMenu(document.getElementById("Apps"));
		menu5.addItem("Applications", "#");
		menu5.addItem("Forms", "#");

			var submenu5 = menu5.addMenu(menu5.items[0]);
			submenu5.addItem("ATM/VISA Check Card", "javascript:popWin('upload/CheckingApp.pdf')");
			submenu5.addItem("Checking Account", "javascript:popWin('upload/CheckingApp.pdf')");
			submenu5.addItem("Credit Card", "CreditCards.asp");
			submenu5.addItem("Loan Application", "javascript:popWin('https://www.24x7loans.com/WaterburyTFCUAuto/default.aspx')");
			submenu5.addItem("Membership", "https://www.creditunionwebsites.com/v002u31vku/waterbury/MemberApp.asp");
			submenu5.addItem("Scholarship", "javascript:popWin('upload/ScholarshipApp.pdf')");

			var submenu5 = menu5.addMenu(menu5.items[1]);
			submenu5.addItem("Change of Address", "javascript:popWin('upload/AccountChangeCard.pdf')");
			submenu5.addItem("Account Changes", "javascript:popWin('upload/AccountChangeCard.pdf')");
			submenu5.addItem("Direct Deposit", "javascript:popWin('upload/DirectDepositForm.pdf')");
			submenu5.addItem("Payroll Deduction", "javascript:popWin('upload/DirectDepositForm.pdf')");
			submenu5.addItem("Switch Kit", "javascript:popWin('upload/SwitchKit.pdf')");


		//==================================================================================================

		//==================================================================================================
		var menu6 = ms.addMenu(document.getElementById("Contact"));
		menu6.addItem("Location, Hours & Phone Numbers", "Phone.asp");
		menu6.addItem("Emergency Numbers", "Phone.asp");
		menu6.addItem("Member Feedback", "Feedback.asp");
		menu6.addItem("Product/Account Questions", "Questions.asp");
		menu6.addItem("Staff/Board of Directors", "Staff.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();
	}
