
	// 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);

		//==================================================================================================
		// create a dropdown menu
		//==================================================================================================
		// the first parameter should be the php element which will act actuator for the menu
		//==================================================================================================
		var menu1 = ms.addMenu(document.getElementById("gl2")); //Raise Money
		menu1.addItem("Independent Advice", "http://www.seniorissues.co.uk/factfind/independent_advice.php");
		menu1.addItem("Lifetime Mortgages", "http://www.seniorissues.co.uk/raise_money/lifetime_mortgages.php"); 
		menu1.addItem("Home Reversion", "http://www.seniorissues.co.uk/raise_money/home_reversion.php"); // send no URL if nothing should happen onclick
		menu1.addItem("SHIP","http://www.seniorissues.co.uk/raise_money/ship.php");
		menu1.addItem("Mortgages & Loans","http://www.seniorissues.co.uk/raise_money/mortgages_loans.php");
		menu1.addItem("Financial Review","http://www.seniorissues.co.uk/factfind/financial_review.php");
		menu1.addItem("Tax Planning Review","http://www.seniorissues.co.uk/factfind/tax_planning_review.php");
		

		//==================================================================================================
		var menu2 = ms.addMenu(document.getElementById("gl3")); //Legal
		menu2.addItem("Access to Funds", "http://www.seniorissues.co.uk/legal/acceess_to_funds.php");
		menu2.addItem("Adults with Incapacity", "http://www.seniorissues.co.uk/legal/adults_with_incapacity.php");
		menu2.addItem("Conveyancing", "http://www.seniorissues.co.uk/legal/conveyancing.php");
		menu2.addItem("Guardianship Orders", "http://www.seniorissues.co.uk/legal/guardianship_orders.php");
		menu2.addItem("Intervention Orders", "http://www.seniorissues.co.uk/legal/intervention_orders.php");
		menu2.addItem("Making a Will", "http://www.seniorissues.co.uk/legal/making_a_will.php");
		menu2.addItem("Personal Injury", "http://www.seniorissues.co.uk/legal/personal_injury.php");
		menu2.addItem("Powers of Attorney", "http://www.seniorissues.co.uk/legal/powers_of_attorney.php");
		menu2.addItem("On a Death", "http://www.seniorissues.co.uk/legal/executries.php");
		

		//==================================================================================================
		var menu3 = ms.addMenu(document.getElementById("gl4")); //Health Concerns
		menu3.addItem("Age Concern", "http://www.seniorissues.co.uk/health/age_concern.php");
		menu3.addItem("Alzheimer's", "http://www.seniorissues.co.uk/health/alzheimers.php");
		menu3.addItem("Bathing & Assistance", "http://www.seniorissues.co.uk/health/bathing-assistance.php");
		menu3.addItem("Bereavement Legal Services", "http://www.seniorissues.co.uk/health/bls.php");
		menu3.addItem("Capability Scotland", "http://www.seniorissues.co.uk/health/capability_scotland.php");
		menu3.addItem("Chest, Heart & Stroke" ,"http://www.seniorissues.co.uk/health/chest_heart_stoke.php");
		menu3.addItem("Dementia", "http://www.seniorissues.co.uk/health/dementia.php");
		menu3.addItem("Help The Aged", "http://www.seniorissues.co.uk/health/help_the_aged.php");
		menu3.addItem("Motor Neurone" ,"http://www.seniorissues.co.uk/health/motor_neurone.php");
		menu3.addItem("Multiple Sclerosis" ,"http://www.seniorissues.co.uk/health/multiple_sclerosis.php");
		menu3.addItem("Parkinson's" , "http://www.seniorissues.co.uk/health/parkinsons.php");
		
		//==================================================================================================
		var menu5 = ms.addMenu(document.getElementById("gl5")); //Welfare Issues
		menu5.addItem("Age Concern", "http://www.seniorissues.co.uk/welfare_issues/age_concern.php");
		menu5.addItem("Care in the Home", "http://www.seniorissues.co.uk/welfare_issues/care_in_the_home.php");
		menu5.addItem("Residential Care Homes", "http://www.seniorissues.co.uk/welfare_issues/residential_care_homes.php");
		menu5.addItem("Care Costs Insurance", "http://www.seniorissues.co.uk/welfare_issues/care_costs_insurance.php");
		menu5.addItem("Retirement Homes", "http://www.seniorissues.co.uk/welfare_issues/retirement_homes.php");
		menu5.addItem("Occupational Therapy", "http://www.seniorissues.co.uk/welfare_issues/occupational_therapy.php");
		menu5.addItem("Carers", "http://www.seniorissues.co.uk/welfare_issues/carers.php");
		menu5.addItem("Motability", "http://www.seniorissues.co.uk/welfare_issues/motability.php");
		menu5.addItem("GOPWA", "http://www.seniorissues.co.uk/welfare_issues/gopwa.php");


		//==================================================================================================
		var menu6 = ms.addMenu(document.getElementById("gl6")); //Benefits
		menu6.addItem("Dept for Work &amp; Pensions", "http://www.seniorissues.co.uk/benefits/dept_work_pensions.php");
		menu6.addItem("Citizens Advice Bureau", "http://www.seniorissues.co.uk/benefits/citizens_advice_bureau.php");
		menu6.addItem("Social Work Dept", "http://www.seniorissues.co.uk/benefits/social_work_dept.php");
		
		
		//==================================================================================================
		var menu8 = ms.addMenu(document.getElementById("gl9")); //Recreation
		menu8.addItem("Travel", "http://www.seniorissues.co.uk/recreation/travel.php");
		menu8.addItem("Home Improvement", "http://www.seniorissues.co.uk/recreation/home_improvement.php");
		menu8.addItem("Gardening", "http://www.seniorissues.co.uk/recreation/gardening.php");
		menu8.addItem("Historical Interest", "http://www.seniorissues.co.uk/recreation/historical_interest.php");
		menu8.addItem("Leisure", "");
		
		var submenu8 = menu8.addMenu(menu8.items[4]);
		submenu8.addItem("SPORTSassist", "http://www.seniorissues.co.uk/recreation/leisure/sportsassist.php");
		submenu8.addItem("Golf", "http://www.seniorissues.co.uk/recreation/leisure/golf.php");
		submenu8.addItem("Fishing", "http://www.seniorissues.co.uk/recreation/leisure/fishing.php");
		submenu8.addItem("Bowls", "http://www.seniorissues.co.uk/recreation/leisure/bowls.php");
		

		
		//==================================================================================================
		var menu7 = ms.addMenu(document.getElementById("gl7")); //Other
		menu7.addItem("Public Guardian", "http://www.seniorissues.co.uk/other/public_guardian.php");
		menu7.addItem("Free Bus Pass", "http://www.seniorissues.co.uk/other/free_bus_pass.php");
		menu7.addItem("FSA", "http://www.seniorissues.co.uk/other/fsa.php");
		menu7.addItem("Actuaries Report", "http://www.seniorissues.co.uk/other/actuaries_report.php");
	

		//==================================================================================================
		// write drop downs into page
		//==================================================================================================
		// this method writes all the php for the menus into the page with document.write(). It must be
		// called within the body of the php page.
		//==================================================================================================
		TransMenu.renderAll();
	}
	