<!--
function display(strShowCategory) {

//		alert("strShowCategory: " + strShowCategory);
		var strStyle1 = "";
		var strStyle2 = "";

		// Get the Array of Elements so we can loop through each element and close it	
		var ARElements = document.navform.RecCountNav.value.split(",");
		for(var i=0; i<ARElements.length; i++) {
			if(ARElements[i] != strShowCategory) {

				// Work out what level we are at so we know what class to use
				intLevels = (ARElements[i].split("_").length - 1);
//				intLevels = (ARElements[i].split("_").length);
				if(intLevels == 3) { 
					strStyle1 = "whitebackground"; 
					strStyle2 = "whitebackground";
				}
				if(intLevels == 2) { 
					strStyle1 = "darkgreenbackground"; 
					strStyle2 = "whitebackground";					
				}
				if(intLevels == 1) { 
					strStyle1 = "lightgreenbackground"; 
					strStyle2 = "lightgreenbackground"; 				
				}

				if(document.all) { 
					document.all(ARElements[i] + "_sub").style.display = "none"; 
//					document.all(ARElements[i] + "_Tab1").className = strStyle1; 
//					document.all(ARElements[i] + "_Tab2").className = strStyle2; 
				}
				if(!document.all && document.getElementById) { 
					document.getElementById(ARElements[i] + "_sub").style.display = "none"; 
//					document.getElementById(ARElements[i] + "_Tab1").className = strStyle1; 
//					document.getElementById(ARElements[i] + "_Tab2").className = strStyle2; 
				}
				if(!document.getElementById && document.layers) { 
					document.layers[ARElements[i] + "_sub"].visibility = "hidden"; 
//					document.layers[ARElements[i] + "_Tab1"].className = strStyle1; 
//					document.layers[ARElements[i] + "_Tab2"].className = strStyle2; 
				}
			}
		}
		
		// Split the strShowCategory into an Array to find each of the levels
		var ARCategories = (strShowCategory + "_").split("_");
		var Cat = "";

		// Loop through and Rebuild the string of Categories and SubCategories, 
		// so that it opens each category in the tree in turn
		for(var x=0; x < (ARCategories.length - 1); x++) {		
			Cat = Cat + ARCategories[x] + "_" ;
			// Display the Categories
			if(x > 0) { ShowDropDown(Cat); }
		}
}
		
	function ShowDropDown(SubCat) {

		// Work out what level we are at so we know what class to use
		var intLevels2 = (SubCat.split("_").length - 2);
		var strStyle1 = "";
		var strStyle2 = "";

		if(intLevels2 == 3) { 
			strStyle1 = "whitebackground"; 
			strStyle2 = "whitebackground"; 		
		}
		if(intLevels2 == 2) { 
			strStyle1 = "darkgreenbackground"; 
			strStyle2 = "lightgreybackground"; 	
		}
		if(intLevels2 == 1) { 
			strStyle1 = "darkgreenbackground"; 
			strStyle2 = "darkgreenbackground"; 	
		}


		if(document.all) {
			if (document.all(SubCat + "sub").style.display == "block")  { 
				document.all(SubCat + "sub").style.display = "none";
//				document.all(SubCat + "Tab1").className = strStyle1;
//				document.all(SubCat + "Tab2").className = strStyle2;
			} else if (document.all(SubCat + "sub").style.display == "none")  {
				document.all(SubCat + "sub").style.display = "block";
//				document.all(SubCat + "Tab1").className = strStyle1;
//				document.all(SubCat + "Tab2").className = strStyle2;
			}
		}
		
		if(!document.all && document.getElementById){
			if (document.getElementById(SubCat + "sub").style.display == "block") { 
				document.getElementById(SubCat + "sub").style.display = "none";
//				document.getElementById(SubCat + "Tab1").className = strStyle1;
//				document.getElementById(SubCat + "Tab1").className = strStyle2;
			} else if (document.getElementById(SubCat + "sub").style.display == "none") {
				document.getElementById(SubCat + "sub").style.display = "block";
//				document.getElementById(SubCat + "Tab1").className = strStyle1;
//				document.getElementById(SubCat + "Tab2").className = strStyle2;
			}
		}
	
		if(!document.getElementById && document.layers){
				document.layers[SubCat + "sub"].visibility = "show";
//				document.layers[SubCat + "Tab1"].className = strStyle1;
//				document.layers[SubCat + "Tab2"].className = strStyle2;			
		}
	}
//-->