	function urlFilter(url) {
		if (hcp != "") {
			var baseUrl = (url.indexOf("?") != -1 ? url.substr(0, url.indexOf("?")) : url);
			var queryString = (url.indexOf("?") != -1 ? url.substr(url.indexOf("?")+1) : "");
			return (contextPath + baseUrl + "?hcp=" + hcp + (queryString != "" ? "&" + queryString : ""));
		}
		else return (contextPath + url);
	}
	
	// set up drop downs 
	if (ncqDropDown.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 ncqDropDownSet(ncqDropDown.direction.down, 0, 1, ncqDropDown.reference.bottomLeft);
		
		//==================================================================================================
		// create a dropdown menu
		//==================================================================================================
		// the first parameter should be the HTML element which will act actuator for the menu
		// send no URL if nothing should happen onclick (2nd parameter)
		//==================================================================================================

		/*************
		 * Dredging
		 *************/
		/*var menu2 = ms.addMenu(document.getElementById("menu2"));
		menu2.addItem("President Message Board", urlFilter("Layout Sample 2.html"));
		menu2.addItem("Company Background", urlFilter("Layout Sample 2.html"));
		menu2.addItem("Reasons of Existence", urlFilter("Layout Sample 2.html"));
		menu2.addItem("Goals & Objectives", urlFilter("Layout Sample 2.html"));
		menu2.addItem("Vision & Mission", urlFilter("Layout Sample 2.html"));
		
		//menu2.addItem("Team", urlFilter("team.html"));
		
		/*************
		 * Waterway Maintenance
		 *************/
		var menu3 = ms.addMenu(document.getElementById("menu3"));
		menu3.addItem("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;About Us", urlFilter("aboutus.asp"));
		menu3.addItem("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Why Us", urlFilter("whyus.asp"));
		menu3.addItem("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Mission", urlFilter("mission.asp"));
		menu3.addItem("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Contact Us", urlFilter("Contactus.asp"));


		/*************
		 * Waterway Maintenance
		 *************/
		var menu4 = ms.addMenu(document.getElementById("menu4"));
		menu4.addItem("&nbsp;&nbsp;&nbsp;&nbsp;Event Management&nbsp;&nbsp;&nbsp;&nbsp;", urlFilter("event.asp"));
		menu4.addItem("&nbsp;&nbsp;&nbsp;&nbsp;PR", urlFilter("PR.asp"));
		menu4.addItem("&nbsp;&nbsp;&nbsp;&nbsp;Sampling", urlFilter("sampling.asp"));
		menu4.addItem("&nbsp;&nbsp;&nbsp;&nbsp;Promotion", urlFilter("promotion.asp"));
		menu4.addItem("&nbsp;&nbsp;&nbsp;&nbsp;Merchandising", urlFilter("Merchandise.asp"));
		menu4.addItem("&nbsp;&nbsp;&nbsp;&nbsp;Sport Marketing", urlFilter("Marketing.asp"));
		menu4.addItem("&nbsp;&nbsp;&nbsp;&nbsp;Client Assets", urlFilter("ClientAssets.asp"));
		
		/*************
		 * Remediation and Treatment Solutions
		 *************/
		var menu5 = ms.addMenu(document.getElementById("menu5"));
		menu5.addItem("&nbsp;&nbsp;&nbsp;&nbsp;Management Structure&nbsp;&nbsp;&nbsp;&nbsp;", urlFilter("Structure.asp"));
		menu5.addItem("&nbsp;&nbsp;&nbsp;&nbsp;Asset Structure&nbsp;&nbsp;&nbsp;&nbsp;", urlFilter("Asset.asp"));
		//menu5.addItem("Client 3", urlFilter("Layout Sample 2.html"));
		//menu5.addItem("Client 4", urlFilter("Layout Sample 2.asp"));
		//menu5.addItem("Client 5", urlFilter("Layout Sample 2.html"));


		/*************
		 * Specialist Plant Hire
		 *************/
		/*var menu6 = ms.addMenu(document.getElementById("menu6"));
		menu6.addItem("Distributor 1", urlFilter("page.asp/lakeerosioncontrol.htm"));
		menu6.addItem("Distributor 2", urlFilter("page.asp/lakerestoration.htm"));
		menu6.addItem("Distributor 3", urlFilter("page.asp/lakeconstruction.htm"));
		menu6.addItem("Distributor 4", urlFilter("page.asp/lakedredging.htm"));
		menu6.addItem("Distributor 5", urlFilter("page.asp/Enviromental.htm"));
		menu6.addItem("Distributor 6", urlFilter("page.asp/AlgaeTreatment.htm"));

		
		/*************
		 * Lake Construction and Maintenance
		 *************/
		/*var menu7 = ms.addMenu(document.getElementById("menu7"));
		menu7.addItem("Water Treatment", urlFilter("page.asp/lakeerosioncontrol.htm"));
		menu7.addItem("Desalination", urlFilter("page.asp/lakerestoration.htm"));
		menu7.addItem("Petrochemical", urlFilter("page.asp/lakeconstruction.htm"));
		menu7.addItem("Power Stations", urlFilter("page.asp/lakedredging.htm"));
		menu7.addItem("Telecommunication", urlFilter("page.asp/Enviromental.htm"));

		
		//menu8.addItem("Road Transportable Pontoons", urlFilter("page.asp/Pontoons.htm"));
		//var menu82 = menu8.addMenu("Test", "Test", "Test");
		//menu82.addItem("2 Piece Container Pontoon", urlFilter("page.asp/ContainerPontoon2.htm"));
		//menu82.addItem("6 Piece Container Pontoon", urlFilter("page.asp/ContainerPontoon6.htm"));
		///menu82.addItem("8 Piece Container Pontoon", urlFilter("page.asp/ContainerPontoon8.htm"));
		//menu82.addItem("Jackleg Pontoons", urlFilter("page.asp/JacklegPontoons.htm"));
		
		//menu8.addItem("Dredging Craft", urlFilter("page.asp/DredgingCraft.htm"));
		//var menu83 = menu8.addMenu("Test", "Test", "Test");
		//menu83.addItem("Amphibious Floating Dredgers", urlFilter("page.asp/FloatingDredgers.htm"));
		//menu83.addItem("Narrow Beam Dredgers", urlFilter("page.asp/NarrowBeamDredgers.htm"));
		
	//	menu8.addItem("Specialist Equipment", urlFilter("page.asp/SpecialistEquipment.htm"));
		//var menu84 = menu8.addMenu("Test", "Test", "Test");
		//menu84.addItem("Tugs and Hoppers", urlFilter("page.asp/TugsHoppers.htm"));
		//menu84.addItem("Welfare Boats", urlFilter("page.asp/WelfareBoats.htm"));
		//menu84.addItem("Road Transportable Split Hoppers", urlFilter("page.asp/TransportableSplitHoppers.htm"));
		//menu84.addItem("Sealed Trailers and Dump Trucks", urlFilter("page.asp/SealedTrailersDumpTrucks.htm"));

		/*************
		 * Property Development
		 *************/
		//var menu10 = ms.addMenu(document.getElementById("menu10"));
		///menu10.addItem("Marinas", urlFilter("page.asp/Marinas.htm"));
		//menu10.addItem("Leisure", urlFilter("page.asp/Leisure.htm"));
		//menu10.addItem("Partnering", urlFilter("page.asp/DevelopmentPartnering.htm"));
		//menu10.addItem("Development Opportunities", urlFilter("page.asp/Development.htm"));

		/*************
		 * Specialist Civils
		 *************/
		//var menu11 = ms.addMenu(document.getElementById("menu11"));
		//menu11.addItem("Marine", urlFilter("page.asp/Marine.htm"));
		//menu11.addItem("Specialist Earthworks", urlFilter("page.asp/Earthworks.htm"));
		//menu11.addItem("Marina Construction & Maintenance", urlFilter("page.asp/MarinaConstruction.htm"));
		
		/*************
		 * Erosion Control
		 *************/
		//var menu12 = ms.addMenu(document.getElementById("menu12"));
		//menu12.addItem("Terraqua Environmental Solutions", urlFilter("page.asp/TerraquaEnviromentalSolutions.htm"));
		//menu12.addItem("Bio Engineering", urlFilter("page.asp/ErosionControlBioEngineering.htm"));
		//menu12.addItem("Concrete Revetments", urlFilter("page.asp/ConcreteSolutions.htm"));
		//menu12.addItem("Composite Solutions", urlFilter("page.asp/CompositeSolutions.htm"));
		
		/*************
		 * About US
		 *************/
		//var menu13 = ms.addMenu(document.getElementById("menu13"));
		//menu13.addItem("Health & Safety", urlFilter("page.asp/HealthSafety.htm"));
		//menu13.addItem("Partnering", urlFilter("page.asp/Partnering.htm"));
		//menu13.addItem("History", urlFilter("page.asp/History.htm"));
		//menu13.addItem("Accreditation", urlFilter("page.asp/Accreditation.htm"));
		//menu13.addItem("Awards", urlFilter("page.asp/Awards.htm"));
		//menu13.addItem("Values", urlFilter("page.asp/Values.htm"));

		//var menu16 = ms.addMenu(document.getElementById("menu16"));
		//menu16.addItem("Health & Safety", urlFilter("page.asp/HealthSafety.htm"));
		//==================================================================================================
		// 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.
		//==================================================================================================
		ncqDropDown.renderAll();
	}

