			function popWin(strURL)
		{
			window.open(strURL,"newWin");
		}
		
		function linkto_externalSite(strURL)
{
	if(confirm("You have elected to temporarily leave Lawrence Memorial Credit Union’s website to access an external website.\n\nPlease note that we do not operate this external website and therefore we are not responsible for its content,\nuse, or policies which may differ from our own."))
	{
		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, 2, 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("Rates"));
		menu1.addItem("Deposit", "DepositRates.asp");
		menu1.addItem("Loans", "LoanRates.asp");
		menu1.addItem("Fee Schedule", "FeeSchedule.asp");
		menu1.addItem("Calculators", "Calculators.asp");

		//==================================================================================================

		//==================================================================================================
		var menu2 = ms.addMenu(document.getElementById("ProdServ"));
		menu2.addItem("Deposit Accounts", "Deposits.asp");
		menu2.addItem("Loan Accounts", "Loans.asp");
		menu2.addItem("Visa Credit Card", "Visa.asp");
		menu2.addItem("Other Services", "OtherServices.asp");
		menu2.addItem("Audio Line", "AudioLine.asp");
		menu2.addItem("Home Banking", "OnlineBankingRegister.asp"); 
		
		var submenu2 = menu2.addMenu(menu2.items[0]);
			submenu2.addItem("Savings", "Savings.asp");
			submenu2.addItem("Certificates", "CDs.asp");
			submenu2.addItem("IRA", "IRAs.asp");
			submenu2.addItem("Checking", "Checking.asp");
			
		var submenu2 = menu2.addMenu(menu2.items[1]);
			submenu2.addItem("Auto Loans", "AutoLoans.asp");
			submenu2.addItem("Signature Loans", "UnsecuredLoans.asp");
			submenu2.addItem("Home Equity Loans", "HomeEqLoans.asp");
			submenu2.addItem("HELOC Loans", "HELOCLoans.asp");
			submenu2.addItem("Secured Loans", "SecuredLoans.asp");
			
		var submenu2 = menu2.addMenu(menu2.items[5]);
			submenu2.addItem("Login", "javascript:popWin('https://oasis.espsolution.net/lmcu/')"); 
			submenu2.addItem("Instructions", "OnlineBankingRegister.asp");
		
		//==================================================================================================

		//==================================================================================================
		
		
		var menu3 = ms.addMenu(document.getElementById("Apps"));
		
		menu3.addItem("Loan Application", "https://www.creditunionwebsites.com/V004U30PAN/lmhospcu/Form_LoanApp.asp");
		menu3.addItem("Membership Application", "https://www.creditunionwebsites.com/V004U30PAN/lmhospcu/Form_MemberApp.asp");
		menu3.addItem("Other Services Application", "https://www.creditunionwebsites.com/V004U30PAN/lmhospcu/Form_AdditionalServices.asp");
		menu3.addItem("Visa Check (Debit) Card Application", "upload/Application_VISA_ CheckCard.pdf");
		menu3.addItem("Change of Address", "upload/Application_ChangeOfAddress.pdf");
		menu3.addItem("Direct Deposit: Hospital Employees", "upload/Form_DirectDeposit_Emp.pdf");
		menu3.addItem("Direct Deposit: Non-Hospital Employees", "upload/Form_DirectDeposit_NonEmp.pdf");
		menu3.addItem("Wiring Instructions to Credit Union", "WireInstructions.asp");
		
		
		//==================================================================================================


		var menu4 = ms.addMenu(document.getElementById("About"));
		menu4.addItem("About Us", "About.asp");
		menu4.addItem("Staff & BOD", "Staff.asp");
		menu4.addItem("Membership", "Membership.asp");
		menu4.addItem("Disclosures", "Disclosures.asp");
		
		var submenu4 = menu4.addMenu(menu4.items[3]);
			submenu4.addItem("Privacy Policy", "PrivacyPolicy.asp");
			submenu4.addItem("EFT Disclosure", "EFTDisclosure.asp");
			submenu4.addItem("Funds Availability", "FundAvailability.asp");
 

		//==================================================================================================

		//==================================================================================================


		var menu5 = ms.addMenu(document.getElementById("Contact"));
		menu5.addItem("Contact Us", "contactus.asp"); 
		menu5.addItem("Hours & Locations", "HoursLocations.asp");
		menu5.addItem("SUM ATM Network", "javascript:linkto_externalSite('http://www.sum-atm.com')");
		
 
		//==================================================================================================
		// 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();
	}
