			function popWin(strURL)
		{
			window.open(strURL,"newWin");
		}
		
		function linkto_externalSite(strURL)
{
	if(confirm("You are leaving the Meriden Schools Federal Credit Union Web site.\n\nThe Web site you are linking to is not operated by Meriden Schools Federal Credit Union.\n\nWe are not responsible for any content or information posted to this external Web site.\n\nMeriden Schools Federal 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, 170, -15, 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("About Meriden Schools FCU", "AboutMeriden.asp");
		menu1.addItem("History", "History.asp");
		menu1.addItem("Mission Statement", "Mission.asp");
		menu1.addItem("News & Announcements", "News.asp");
		menu1.addItem("Privacy Policy", "Privacy.asp");
		

		//==================================================================================================

		//==================================================================================================
		
		var menu2 = ms.addMenu(document.getElementById("Membership"));
		menu2.addItem("Membership Information", "MembershipInfo.asp");
		menu2.addItem("Individual Membership Application", "https://www.creditunionwebsites.com/V004U30PAN/meriden/MemberApp.asp");
		menu2.addItem("Businesses/Select Employer Group Listing", "EmployerListing.asp");
		menu2.addItem("Business Membership Application", "https://www.creditunionwebsites.com/V004U30PAN/meriden/BusinessApp.asp");

		//==================================================================================================

		//==================================================================================================
		
		var menu3 = ms.addMenu(document.getElementById("ProdServ"));
		menu3.addItem("Loan", "Loan.asp");
		menu3.addItem("Savings", "Savings.asp");
		menu3.addItem("Checking", "Checking.asp");
		menu3.addItem("Insurance", "Insurance.asp");
		menu3.addItem("Other Services", "OtherServ.asp");
		menu3.addItem("Mortgages", "javascript:linkto_externalSite('http://www.membersforlife.com/default.asp?siteId=4FEB8597-23A0-413E-AB7C-3F9F21E9DFF2')");
		menu3.addItem("Buy Foreign Currency", "javascript:popWin('https://www.ezforex.com/login.asp?Affiliate=2755&WebUser=11435')");
		
		
		//==================================================================================================

		//==================================================================================================
		
		var menu4 = ms.addMenu(document.getElementById("OnlineServ"));
		menu4.addItem("Home Banking", "javascript:linkto_externalSite('https://hb.meridenschoolsfcu.com/login.aspx')");
		menu4.addItem("Web Bill Pay", "javascript:linkto_externalSite('https://www.webpayservice.com/93/')");
		menu4.addItem("Reorder Checks", "javascript:linkto_externalSite('http://reorder.libertysite.com/')");
		menu4.addItem("Free ATM Locations", "ATM.asp");
		menu4.addItem("VISA Inquiry", "javascript:linkto_externalSite('https://www.ezcardinfo.com/')");
		
			var submenu4 = menu4.addMenu(menu4.items[3]);
			submenu4.addItem("SUM ATM Network", "javascript:linkto_externalSite('http://www.sum-atm.com')");
			submenu4.addItem("Allpoint Network", "javascript:linkto_externalSite('http://allpointnetwork.com/')");
		
		
		//==================================================================================================

		//==================================================================================================
		
		var menu5 = ms.addMenu(document.getElementById("Rates"));
		menu5.addItem("Loan Rates", "LoanRates.asp");
		menu5.addItem("Savings Rates", "SavingsRates.asp");
		menu5.addItem("Fee Schedule", "Fees.asp");
		
		//==================================================================================================

		//==================================================================================================
		
		var menu6 = ms.addMenu(document.getElementById("Calcs"));
		menu6.addItem("Savings Calculator", "SavingsCalc.asp");
		menu6.addItem("Loan Calculator", "LoanCalc.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();
	}
