function leftNav3(currentPage) {
var menuitem = new Array();

// List the link names and the page filenames
// for the PRODUCTS section in the area below. 
// Be sure to include a comma after each item.
// =========================================

// *** BEGIN THIRD SUBSECTION (FEATURED INDUSTRIES) *** //


menuitem[0] = new Array();
menuitem[0][0] = new Array("Featured Industries","featuredindustries.html");
menuitem[0][1] = new Array("Wholesale Distribution","mas90_wholesale.html");
menuitem[0][2] = new Array("Petroleum Distribution","mas90_petroleum.html");
menuitem[0][3] = new Array("Food Distribution","mas90_food.html");
menuitem[0][4] = new Array("Light Manufacturing","mas90_lightman.html");
menuitem[0][5] = new Array("Equipment Rental","mas90_equipment.html");
















// locate active item or subitem
var x=0; 
var y=0;
var z=0;
var activesub=-1;
for (x=0; x<menuitem.length; x++) { 
for (y=0; y<menuitem[x].length; y++) {
for (z=0; z<menuitem[x][y].length; z++) {	
	if (menuitem[x][y][z] == currentPage) {
		activesub = x;
		activesub2 = y;
	}
}
}
}

 for (x=0; x<menuitem.length; x++) {
 document.write('<td bgcolor=#ffffff><img src="images/nav_div.gif" width="180" height="1"></td></tr><tr>');
 

	if (activesub == x) {
		if (menuitem[x].length < 2) {
			// case 1: active item, no subitems
			//document.write("1");
			document.write('<td bgcolor=#C6DBE4><p class="nav2">&#155; ' + menuitem[x][0][0] + '</a></td></tr><tr>');
		} else if (menuitem[x][0][1] == currentPage) {
			// case 2: active item with inactive subitems
			//document.write("2");
			document.write('<td bgcolor=#C6DBE4><p class="nav2">&#155; ' + menuitem[x][0][0] + '</a></td></tr><tr>');
			document.write('<td bgcolor=#ffffff><img src="images/nav_div.gif" width="180" height="1"></td></tr><tr>');
			for (y=1; y<menuitem[x].length; y++) {
				// render subitems
				if (menuitem[x][y][1] == "TITLE") {
					document.write('<td bgcolor=#EEF4F7><p class="currentnav3title">&nbsp; ' + menuitem[x][y][0] + '</p></td></tr><tr>'); 
				} else {
					document.write('<td bgcolor=#EEF4F7><p class="currentnav3">&nbsp;&nbsp;&nbsp; <a href="' + menuitem[x][y][1] + '" class="navlink3">' + menuitem[x][y][0] + '</a></p></td></tr><tr>'); 
				}
			}
		} else {
			document.write('<td bgcolor=#E2EDF1><p class="currentnav2">&nbsp;&#155; <a href="' + menuitem[x][0][1] + '" class="navlink2a">' + menuitem[x][0][0] + '</a></p></td></tr><tr>');
			for (y=0; y<menuitem[x].length; y++) {
				if (activesub2 == y) {
					if (menuitem[x][y].length < 6) {
					// case 3: active item, active subitem, no sub-subitems
					//document.write("3");
					document.write('<td bgcolor=#EEF4F7><p class="nav3">&nbsp;&#155; ' + menuitem[x][y][0] + '</a></td></tr><tr>');
					} else if (menuitem[x][y][1] == currentPage) {
					// case 4: active item, active subitem, inactive sub-subitems
					//document.write("4");
					document.write('<td bgcolor=#EEF4F7><p class="nav3">&nbsp;&nbsp;&nbsp;<font color=#01628C>&#155;</font> ' + menuitem[x][y][0] + '</a></td></tr><tr>');
					document.write('<td bgcolor=#ffffff><img src="images/nav_div.gif" width="180" height="1"></td></tr><tr>');
						for (z=2; z<menuitem[x][y].length; z+=2) {
						// render sub-subitems
						document.write('<td bgcolor=#F4F8FA><p class="currentnav3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="' + menuitem[x][y][z+1] + '" class="navlink3">' + menuitem[x][y][z] + '</a></p></td></tr><tr>'); 
						}
					
					} else {
					// case 5: active item, inactive subitem, active sub-subitem
					//document.write("5");
					document.write('<td bgcolor=#EEF4F7><p class="currentnav3">&nbsp;&nbsp;&nbsp;&#155; <a href="' + menuitem[x][y][1] + '" class="navlink3">' + menuitem[x][y][0] + '</a></p></td></tr><tr>');
					document.write('<td bgcolor=#ffffff><img src="images/nav_div.gif" width="180" height="1"></td></tr><tr>');
						for (z=2; z<menuitem[x][y].length; z+=2) {
						// render sub-subitems
							if (menuitem[x][y][z+1] != currentPage) {
							document.write('<td bgcolor=#F4F8FA><p class="currentnav3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="' + menuitem[x][y][z+1] + '" class="navlink3">' + menuitem[x][y][z] + '</a></p></td></tr><tr>'); 
							} else {
							document.write('<td bgcolor=#F4F8FA><p class="currentnav3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color=#01628C>&#155;</font> ' + menuitem[x][y][z] + '</p></td></tr><tr>');
							}
						}
					} 
				} else {
					if (y>0) {
						if (menuitem[x][y][1] == "TITLE") {
							document.write('<td bgcolor=#EEF4F7><p class="currentnav3title">&nbsp; ' + menuitem[x][y][0] + '</p></td></tr><tr>'); 
						} else {
							document.write('<td bgcolor=#EEF4F7><p class="currentnav3">&nbsp;&nbsp;&nbsp; <a href="' + menuitem[x][y][1] + '" class="navlink3">' + menuitem[x][y][0] + '</a></p></td></tr><tr>'); 
						}
					}
				}
			}
		}
	} else {
	document.write('<td bgcolor=#E2EDF1><p class="currentnav2">&#155; <a href="' + menuitem[x][0][1] + '" class="navlink2">' + menuitem[x][0][0] + '</a></p></td></tr><tr>');
	}
 }
}
