	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("Profile&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;", urlFilter("profile.html"));
		//menu2.addItem("Team", urlFilter("team.html"));
		
		/*************
		 * Waterway Maintenance
		 *************/
		var menu3 = ms.addMenu(document.getElementById("menu3"));
		//menu3.addItem("Overview", urlFilter("solutions.html"));
		menu3.addItem("Overview", urlFilter("product_overview.html"));
		menu3.addItem("History", urlFilter("history.html"));
		menu3.addItem("Key Features", urlFilter("functionality.html"));
		menu3.addItem("Technical Specification", urlFilter("technical.html"));
		menu3.addItem("Request a Quote", urlFilter("quote.asp"));
		menu3.addItem("Testimonials", urlFilter("testimonials.html"));
		menu3.addItem("Latest News", urlFilter("news.html"));
		
		/*************
		 * Waterway Maintenance
		 *************/
		/*var menu4 = ms.addMenu(document.getElementById("menu4"));
		menu4.addItem("Servers", urlFilter("servers.html"));
		menu4.addItem("Supercomputing&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;", urlFilter("supercomputing.html"));
		menu4.addItem("About GDS", urlFilter("http://www.gulfdigital.net/html/about_us.html"));
		
		/*************
		 * Remediation and Treatment Solutions
		 *************/
		var menu5 = ms.addMenu(document.getElementById("menu5"));
		menu5.addItem("Overview", urlFilter("impl_overview.html"));
		menu5.addItem("Implementation Methodology", urlFilter("methodology.html"));
		menu5.addItem("Implementation Timetable", urlFilter("impl_timetable.html"));
		menu5.addItem("Training", urlFilter("training.html"));

		/*************
		 * Remediation and Treatment Solutions
		 *************/
		var menu6 = ms.addMenu(document.getElementById("menu6"));
		menu6.addItem("Overview", urlFilter("support_overview.html"));
		menu6.addItem("Consulting & Support", urlFilter("consulting.html"));

		ncqDropDown.renderAll();
	}
