	// 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);

		//==================================================================================================
		//    LOANS MENU
		//==================================================================================================
		var menu1 = ms.addMenu(document.getElementById("loans"));
		menu1.addItem("Loan Types", "loans.php"); 
		menu1.addItem("Loan Process", "loanProcess.php"); 
		menu1.addItem("Loan Application Checklist", "appList.php");

		//==================================================================================================
		//    SEMINARS MENU
		//==================================================================================================
		var menu2 = ms.addMenu(document.getElementById("seminars"));
		menu2.addItem("Credit Score Strategies", "seminars.php?type=1");
		menu2.addItem("Real Estate Strategies", "seminars.php?type=2");
		menu2.addItem("Corporate Seminars", "seminars.php?type=3");
		
		//==================================================================================================
		//    TOOLS MENU
		//==================================================================================================
		var menu3 = ms.addMenu(document.getElementById("tools"));
		menu3.addItem("Dictionary", "dictionary.php");
		menu3.addItem("Mortgage Calculators", "calculators.php");

		var submenu3 = menu3.addMenu(menu3.items[1]);
		submenu3.addItem("Monthly Payment Calculator", "calc-monthlypayment.php");
		submenu3.addItem("Additional Payment Calculator", "calc-additionalpayment.php");
		submenu3.addItem("Income Requirement Calculator", "calc-earnhome.php");
		submenu3.addItem("Borrowing Limit Calculator", "calc-affordborrow.php");
		submenu3.addItem("Discount Points Calculator", "calc-discount.php");
		submenu3.addItem("Refinance Savings Calculator", "calc-recoup.php");
		submenu3.addItem("Tax Deduction Calculator", "calc-deduct.php");
		submenu3.addItem("Bi-Weekly Payment Calculator", "calc-biweeklypayment.php");
		submenu3.addItem("APR Calculator", "calc-apr.php");
		submenu3.addItem("Interest Only Calculator", "calc-interestonly.php");
		
		//==================================================================================================
		//    FAQ MENU
		//==================================================================================================
		var menu4 = ms.addMenu(document.getElementById("faq"));
		menu4.addItem("Property FAQ", "propertyFaq.php");
		menu4.addItem("Refinancing FAQ", "refinanceFaq.php");
		menu4.addItem("Refinancing Myths and Facts", "myths.php");
		menu4.addItem("Credit Score Information", "creditScore.php");
		menu4.addItem("Improve Your Credit", "improveCredit.php");
		
		//==================================================================================================
		//    LINKS MENU
		//==================================================================================================
		var menu5 = ms.addMenu(document.getElementById("links"));
		menu5.addItem("Fannie Mae", "javascript:openNewWindow('http://www.fanniemae.com')");
		menu5.addItem("Freddie Mac", "javascript:openNewWindow('http://www.freddiemac.com/')");
		menu5.addItem("Ginnie Mae", "javascript:openNewWindow('http://www.ginniemae.gov/index.asp')");
		menu5.addItem("HUD", "javascript:openNewWindow('http://www.hud.gov/')");
		menu5.addItem("Federal Reserve", "javascript:openNewWindow('http://www.federalreserve.gov/')");
		
		//==================================================================================================
		// 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();
	}
	
	function openNewWindow(site) {
		  popupWin = window.open(site,'open_window','menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, width=800, height=700, left=200, top=100')
}