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

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


menuitem[0] = new Array("Deployment", "deployment.html","Planning","planning.html","Needs Analysis","analysis.html","Design","design.html","Implementation","implementation.html","Rollout","rollout.html");
menuitem[1] = new Array("Project Management", "projectmanagement.html");
menuitem[2] = new Array("Technical Support", "techsupport.html","Immediate Support","immediatesupport.html","Remote Support","remotesupport.html","Non-Urgent Support","nonurgentsupport.html");
menuitem[3] = new Array("Custom Development", "customdev.html");
menuitem[4] = new Array("Training", "training.html");
menuitem[5] = new Array("Software Upgrades", "softwareupgrades.html");





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

 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 < 3) {
			// case 1: active item, no subitems
			document.write('<td bgcolor=#C6DBE4><p class="nav2">&#155; ' + menuitem[x][0] + '</a></td></tr><tr>');
		} else if (menuitem[x][1] == currentPage) {
			// case 2: active item with inactive subitems
			document.write('<td bgcolor=#C6DBE4><p class="nav2">&#155; ' + menuitem[x][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=2; y<menuitem[x].length; y+=2) {
				// render subitems
			document.write('<td bgcolor=#F4F8FA><p class="currentnav3">&nbsp;&nbsp; <a href="' + menuitem[x][y+1] + '" class="navlink3">' + menuitem[x][y] + '</a></p></td></tr><tr>'); 
			}
		} else {
			// case 3: inactive item, active subitem
			document.write('<td bgcolor=#C6DBE4><p class="currentnav2">&#155; <a href="' + menuitem[x][1] + '" class="navlink2a">' + menuitem[x][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 (y=2; y<menuitem[x].length; y+=2) {
				// render subitems
				if (menuitem[x][y+1] != currentPage) {
					document.write('<td bgcolor=#F4F8FA><p class="currentnav3">&nbsp;&nbsp; <a href="' + menuitem[x][y+1] + '" class="navlink3">' + menuitem[x][y] + '</a></p></td></tr><tr>');
				} else {
					document.write('<td bgcolor=#F4F8FA><p class="nav3">&nbsp;<font color=#01628C>&#155;</font> ' + menuitem[x][y] + '</a></td></tr><tr>');
				}
			}
		}
	} else {
	document.write('<td bgcolor=#E2EDF1><p class="currentnav2">&#155; <a href="' + menuitem[x][1] + '" class="navlink2">' + menuitem[x][0] + '</a></p></td></tr><tr>');
	}
 }

}