	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.right, 174, -3, ncqDropDown.reference.topLeft);
		//var ms = new ncqDropDownSet(ncqDropDown.direction.down, 0, 30, ncqDropDown.reference.topLeft);

		//==================================================================================================
		// 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)
		//==================================================================================================

		/*************
		 * Tigre, Supertigre, Tigre Country, Tigrone
		 *************/
		var menu1 = ms.addMenu(document.getElementById("menu1"));
				menu1.addItem("FRONT STEERING", "#");
				menu1.addItem("--Tigre 3100", "Tigre3100.htm");
				menu1.addItem("--Tigre 3200", "Tigre3200.htm");
				menu1.addItem("--Tigre Country 3700 - 4400", "TigreCountry.htm");
				menu1.addItem("--Tigrone 4500 - 5500", "Tigrone548400.htm");
		menu1.addItem("ARTICULATED STEERING", "#");
		menu1.addItem("--Supertigre 4500 - 5400", "Supertigre5400.htm");
		

		
		/*************
		* Tigrone Series
		**************/
		
		var menu2 = ms.addMenu(document.getElementById("menu2"));
				menu2.addItem("FRONT STEERING", "#");
				menu2.addItem("--Tigrone TN5500E", "TigroneT5400.htm");
				menu2.addItem("--Tigrone TN6500 - TN8400", "TigroneTN65008400.htm");
				menu2.addItem("--Tigrone TC5500 - TC8400", "TigroneTC8400.htm");
		menu2.addItem("ARTICULATED STEERING", "#");
		menu2.addItem("--Tigrone S5500V", "TigronS5400V.htm");
		menu2.addItem("--Tigrone SN6500V", "TigroneSN6500V.htm");
		menu2.addItem("--Tigrone SX8400", "TigroneSX8400.htm");
	
		/*************
		 * The Ergit Series
		 *************/
		var menu3 = ms.addMenu(document.getElementById("menu3"));
		menu3.addItem("MONO-DIRECTIONAL", "#");
		menu3.addItem("--TGF 7400 - 9400 - 10400", "TGF7400.htm");
				menu3.addItem("BI-DIRECTIONAL", "#");
				menu3.addItem("--TRX 7400 - 8400 - 9400 - 10400", "TRX749400.htm");
				menu3.addItem("--TRG 9400 - 10400", "TRG9400.htm");
				menu3.addItem("--TTR 8400 - 9400 - 10400", "TTR849400.htm");
				menu3.addItem("--SRX 8400 - 9400 - 10400", "SRX849400.htm");
					menu3.addItem("HYDROSTATIC", "#");
					menu3.addItem("--TRH 9400", "TRH9400.htm");

		/*************
		 * Hydrostatic
		 *************/
		var menu4 = ms.addMenu(document.getElementById("menu4"));
		menu4.addItem("FRONT STEERING", "#");
		menu4.addItem("--TTR 4400", "TTR4400.htm");
		menu4.addItem("--HR 5500", "HR5500.htm");
		menu4.addItem("--TRH 9400", "TRH9400.htm");
		menu4.addItem("ARTICULATED STEERING", "#");
		menu4.addItem("--SP 4400", "SP4400.htm");
		
		/*************
		 * Multi-Utility Vehicles
		 *************/
		
		var menu5 = ms.addMenu(document.getElementById("menu5"));
		menu5.addItem("--RONDO", "Rondo.htm");	
		menu5.addItem("--TRH 9400", "TRH9400muv.htm");
		menu5.addItem("--TTR 4400", "TTR4400muv.htm");
		menu5.addItem("--SP 4400", "SP4400muv.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();
	}
