<!--

/*********************************************
  Print Menu
*********************************************/

/* print left navigation bar */
function printMenu(){
	var menucode="";

	menucode="<div id=\"leftBar\" style=\"position:relative; z-index:1;\">";
	for (var i = 0; i<numSection; i++){
		//menucode+="\n\t<tr><td height=\"1\" class=\"navedge\"><img  alt=\"\" border=\"0\" height=\"1\" width=\"1\" src=\"jsMenu/spacer.gif\"></td></tr>";
		if (sectionArray[i].code != currentSection) {
			menucode+="\n\t<div id=\"mi" +(i+1) + "\" style=\"position:relative; z-index:2;\">";
            if (sectionArray[i].itemUrl == null || sectionArray[i].itemUrl == ""){
    			menucode+="\n\t\t<div style=\"position:relative; z-index:3;\" onmouseover=\"showLayer('leftBar','Y','s" + (i+1) + "');\" onmouseout=\"menuTimer('leftBar','Y','s" + (i+1) + "')\"><a id=\"ma" +(i+1)+ "\" >" + sectionArray[i].itemName + "</a></div>";
    	    } else {
     			menucode+="\n\t\t<div style=\"position:relative; z-index:3;\" onmouseover=\"showLayer('leftBar','Y','s" + (i+1) + "')\" onmouseout=\"menuTimer('leftBar','Y','s" + (i+1) + "')\"><a id=\"ma" +(i+1)+ "\" href=\"" + sectionArray[i].itemUrl + "\">" + sectionArray[i].itemName + "</a></div>";
    	    }
		} else {
			menucode+="\n\t<div id=\"mi" +(i+1) + "\" style=\"position:relative; z-index:2;\">";
            if (sectionArray[i].itemUrl == null || sectionArray[i].itemUrl == ""){
               //do not add the href
    			menucode+="\n\t\t<div style=\"position:relative; z-index:3;\" onmouseover=\"showLayer('leftBar','Y','s" + (i+1) + "')\" onmouseout=\"menuTimer('leftBar','Y','s" + (i+1) + "')\"><a id=\"ma" +(i+1)+ "\">" + sectionArray[i].itemName + "</a></div>";
			} else {
    			menucode+="\n\t\t<div style=\"position:relative; z-index:3;\" onmouseover=\"showLayer('leftBar','Y','s" + (i+1) + "')\" onmouseout=\"menuTimer('leftBar','Y','s" + (i+1) + "')\"><a id=\"ma" +(i+1)+ "\" href=\"" + sectionArray[i].itemUrl + "\">" + sectionArray[i].itemName + "</a></div>";
			}
			currentSectionLayer="s" + (i+1);
		}
		menucode+="\n\t</div>";
	}
	//menucode+="\n\t<div  style=\"position:relative; z-index:2;\"><img  alt=\"\" border=\"0\" height=\"1\" width=\"1\" src=\"jsMenu/spacer.gif\"></div>";
	//menucode+="\n\t<div style=\"position:relative; z-index:2;\"><img  alt=\"\" border=\"0\" height=\"42\" width=\"1\" src=\"jsMenu/spacer.gif\"></div>";
	menucode+="</div>";
	document.write(menucode);

}

/************************************/
// load on and off arrow images

/* print layerOne menu */
function layerOne(){
 	var numItems = 0;
 	var arrayName;
	var colspan;
	var menucode="";

	for (var i = 1; i <=numSection; i++){
	  if (sectionArray[i-1].hasChild >0 ){
		menucode="<div id=\"s" + i + "\" style=\"position:absolute; left:" + layer1X + "; top:" + headerHeight + "px; z-index:20; visibility:hidden\" onmouseover=\"hideSelectInput('none')\" onmouseout=\"hideSelectInput('block')\">";
		menucode+="\n<table class=\"navsubbg1\" width=\"156\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" vspace=\"0\" hspace=\"0\">";
		arrayName = "s" + i + "Array";
		numItems = eval(arrayName).length

		for (var j = 0; j< numItems; j++){
			var iName = "s" + i + "Array\133" + j + "\135";
			if (eval(iName).hasChild > 0){
				//onmouseover=\"showLayer('layerOne','Y','s" + i + "." + (j+1) + "');\" onmouseout=\"menuTimer('layerOne','Y','s" + i + "." + (j+1) + "');\"
				//onmouseover=\"showLayer('layerOne','Y','s" + i + "." + (j+1) + "')\" onmouseout=\"menuTimer('layerOne','Y','s" + i + "." + (j+1) + "')\"
				//onmouseover=\"showLayer('layerOne','Y','s" + i + "." + (j+1) + "')\" onmouseout=\"menuTimer('layerOne','Y','s" + i + "." + (j+1) + "')\"
				menucode+="\n\t<tr onmouseover=\"showLayer('layerOne','Y','s" + i + "." + (j+1) + "')\" onmouseout=\"menuTimer('layerOne','Y','s" + i + "." + (j+1) + "')\"><td colspan=\"4\" height=\"1\" class=\"navsubedge\"><img  alt=\"\" border=\"0\" height=\"1\" width=\"1\" src=\"jsMenu/spacer.gif\"></td></tr>";
				menucode+="\n\t<tr id=\"si" + i + "." + (j+1) + "\" onmouseover=\"showLayer('layerOne','Y','s" + i + "." + (j+1) + "')\" onmouseout=\"menuTimer('layerOne','Y','s" + i + "." + (j+1) + "')\">";
				menucode+="\n\t\t<td width=\"1\" class=\"navsubedge\"  style=\"height:19px\"><img  alt=\"\" border=\"0\" height=\"19\" width=\"1\" src=\"jsMenu/spacer.gif\"></td>";
				if ((eval(iName).itemUrl == "#")) {
					menucode+="\n\t\t<td class=\"navsub\" ><A class=\"navlink\" id=\"sa" + i + "." + (j+1) + "\" href=\"" + eval(iName).itemUrl + "\"></a>" + eval(iName).itemName + "</td>";
				}
				else {
					menucode+="\n\t\t<td class=\"navsub\" ><A class=\"navlink\" id=\"sa" + i + "." + (j+1) + "\" href=\"" + eval(iName).itemUrl + "\">" + eval(iName).itemName + "</a></td>";
				}

				menucode+="\n\t\t<td id=\"sp" + i + "." + (j+1) + "\" align=\"right\" ><img  alt=\"\" name=\"s" + i + "_" + (j+1) + "\" border=\"0\"  src=\"" + arrowOffImg + "\"></td>";
				menucode+="\n\t\t<td width=\"1\" class=\"navsubedge\" ><img  alt=\"\" border=\"0\" height=\"1\" width=\"1\" src=\"jsMenu/spacer.gif\"></td>";
			}else{
			// NO CHILD
				menucode+="\n\t<tr onmouseover=\"showLayer('layerOne','N','s" + i + "." + (j+1) + "');\" onmouseout=\"menuTimer('layerOne','N','s" + i + "." + (j+1) + "');\"><td colspan=\"4\" height=\"1\" class=\"navsubedge\" ><img  alt=\"\" border=\"0\" height=\"1\" width=\"1\" src=\"jsMenu/spacer.gif\"></td></tr>";
				menucode+="\n\t<tr id=\"si" + i + "." + (j+1) + "\" onmouseover=\"showLayer('layerOne','N','s" + i + "." + (j+1) + "')\" onmouseout=\"menuTimer('layerOne','N','s" + i + "." + (j+1) + "')\">";
				menucode+="\n\t\t<td width=\"1\" class=\"navsubedge\"  style=\"height:19px\"><img  alt=\"\" border=\"0\" height=\"19\" width=\"1\" src=\"jsMenu/spacer.gif\"></td>";
                if (eval(iName).itemUrl == null || eval(iName).itemUrl == ""){
                // do not add the  href
				   menucode+="\n\t\t<td colspan=\"2\" class=\"navsub\" ><A class=\"navlink\" id=\"sa" + i + "." + (j+1) + "\" >" + eval(iName).itemName + "</a></td>";
				} else {
				   menucode+="\n\t\t<td colspan=\"2\" class=\"navsub\" ><A class=\"navlink\" id=\"sa" + i + "." + (j+1) + "\" href=\"" + eval(iName).itemUrl + "\">" + eval(iName).itemName + "</a></td>";
				}

				menucode+="\n\t\t<td width=\"1\" class=\"navsubedge\" ><img  alt=\"\" border=\"0\" height=\"1\" width=\"1\" src=\"jsMenu/spacer.gif\"></td>";
			}
			menucode+="\n\t</tr>";
		} // j loop

		menucode+="\n\t<tr><td colspan=\"4\" height=\"1\" class=\"navsubedge\"><img  alt=\"\" border=\"0\" height=\"1\" width=\"1\" src=\"jsMenu/spacer.gif\"></td></tr>";
		menucode+="\n</table>";
		menucode+="\n</div>";
		document.write(menucode);
		if (is_ie&&is_all) {
			document.all["s"+i].style.position="absolute";
			document.all["s"+i].style.left=layer1X;
			document.all["s"+i].style.zIndex="10";
			document.all["s"+i].style.visibility="hidden";
		} else if (is_getElementById){
			document.getElementById("s"+i).style.visibility="hidden";
			document.getElementById("s"+i).style.left=layer1X;
			document.getElementById("s"+i).style.zIndex="10";
		}
	    }//hasChild
	} // i loop
}

/* print layerTwo menu */
function layerTwo(){
	var subarrayName;
	var arrayName;
	var subarrayItem;
	var menucode="";

	for (var i = 1; i<=numSection; i++){
		if (sectionArray[i-1].hasChild > 0){
			arrayName = 's' + i + 'Array';
			numItems = eval(arrayName).length
			for (var j = 0; j <numItems; j++){
				itemName = arrayName + '[' + j + ']';
				if (eval(itemName).hasChild > 0){
					menucode="<div id=\"s" + i + "." + (j+1) + "\" style=\"position:absolute; left:" + layer2X + "; top:" + headerHeight + "px; z-index:20; visibility:hidden\" onmouseover=\"hideSelectInput('none')\" onmouseout=\"hideSelectInput('block')\">";
					menucode+="\n\t<table class=\"navsubbg2\" width=\"151\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" vspace=\"0\" hspace=\"0\">";
					subarrayName = 's'+i+'_'+(j+1)+'Array'
					for (var k = 0; k<eval(subarrayName).length; k++){
						menucode+="\n\t\t<tr><td colspan=\"3\" height=\"1\" class=\"navsubedge\"><img  alt=\"\" border=\"0\" height=\"1\" width=\"1\" src=\"jsMenu/spacer.gif\"></td></tr>";
						menucode+="\n\t\t<tr id=\"si" + i + "." + (j+1) + "." + (k+1) + "\">";
						menucode+="\n\t\t\t<td width=\"1\" class=\"navsubedge\" style=\"height:19px\"><img  alt=\"\" border=\"0\" height=\"19\" width=\"1\" src=\"jsMenu/spacer.gif\"></td>";
						subarrayItem = 's'+i+'_'+(j+1)+'Array['+k+']'
						menucode+="\n\t\t\t<td class=\"navsub\" onmouseover=\"showLayer('layerTwo','Y','s" + i + "." + (j+1) + "." + (k+1) + "')\" onmouseout=\"menuTimer('layerTwo','Y','s" + i + "." + (j+1) + "." + (k+1) + "')\"><A id=\"sa" + i + "." + (j+1) + "." + (k+1) + "\" class=\"navlink\" href=\"" + eval(subarrayItem).itemUrl +"\">" + eval(subarrayItem).itemName + "</a></td>";
						menucode+="\n\t\t\t<td width=\"1\" class=\"navsubedge\"><img  alt=\"\" border=\"0\" height=\"1\" width=\"1\" src=\"jsMenu/spacer.gif\"></td>";
						menucode+="\n\t\t</tr>";
					}//for k
					menucode+="\n\t\t<tr><td colspan=\"3\" height=\"1\" class=\"navsubedge\"><img  alt=\"\" border=\"0\" height=\"1\" width=\"1\" src=\"jsMenu/spacer.gif\"></td></tr>";
					menucode+="\n\t</table>";
					menucode+="\n</div>";
					document.write(menucode);
					if (is_ie&&is_all) {
						document.all["s" + i + "." + (j+1)].style.position="absolute";
						document.all["s" + i + "." + (j+1)].style.left=layer2X;
						document.all["s" + i + "." + (j+1)].style.zIndex="10";
						document.all["s" + i + "." + (j+1)].style.visibility="hidden";
					} else if (is_getElementById){
						document.getElementById("s" + i + "." + (j+1) ).style.visibility="hidden";
						document.getElementById("s" + i + "." + (j+1) ).style.left=layer2X;
						document.getElementById("s" + i + "." + (j+1) ).style.zIndex="10";
					}
				}// hasChild
			}// for j
		}// if section hasChild
	}// for i*/
} // end function


function printSubMenu() {
  // write the sub menu layers for NS6 and IE5 or above.  
  	layerOne();
  	layerTwo();
 
}
//-->