

/* start sidenav code - this needs to appear before sidenav data*/

function thisSection(whichMenu,category) {
	whichSection = '<table border="0" cellspacing="0" cellpadding="0" width="156">';
	for (var i = 0; i < subSection.length; i++) {
		whichSection += '<tr><td width=6 height=24><spacer type=block width=6 height=24 /></td>';
		if (subSection[i] == category) {//hilites current section
			whichSection += '<td class="sidenavCopy"><div class="indentSidenav"><a href="/' + whichMenu + '/' + subSectionUrl[i] +'" class="sidenavOn">'+ subSection[i] +'</a>';
			if (thirdLevel != false) {
				for (var j = 0; j < nav_menuText[whichMenu][category].length; j++) {
					whichSection += '<div class="indentThirdLevel"><table border="0" cellspacing="0" cellpadding="0"><tr><td valign=top><img src="/images-common/BreadCrumbBullet.gif" alt="" width="8" height="10" border="0" /></td>';
					whichSection += '<td valign=top class="sidenavCopy">';
					if (nav_menuText[whichMenu][category][j] == subCategory) {
						whichSection += '<a href="' + nav_menuURLs[whichMenu][category][j] +'" class="sidenavOn">'+ nav_menuText[whichMenu][category][j] +'</a>';
					} else {
						whichSection += '<a href="' + nav_menuURLs[whichMenu][category][j] +'" class="thirdnavLink">'+ nav_menuText[whichMenu][category][j] +'</a>';
					}
					whichSection += '</td></tr></table></div>';
				}
			}
			whichSection += '</div></td></tr>';
		}
		else {
			whichSection += '<td class="sidenavCopy"><div class="indentSidenav"><a href="/' + whichMenu + '/' + subSectionUrl[i] +'" class="sidenavLink">'+ subSection[i] +'</a></div></td></tr>';
		}
		whichSection += '<tr><td colspan=2 bgcolor=#cccccc width=100% height=1><spacer type=block width=100% height=1 /></td></tr>';
	}
	whichSection += '<tr><td colspan=2 height=20><spacer type=block height=20 /></td></tr></table>';
	return whichSection;
}
/* end sidenav code */

/* start sidenav data */

var introText = new Array('Introduction');//introduction section for sidenavs
var subSection = introText.concat(nav_menuText[whichMenu]);//adds introduction section to sidenav by concatenating it to the menu array

var introUrl = new Array('default.asp');//intro section url
var subSectionUrl = introUrl.concat(nav_menuURLs[whichMenu]);//concat intro section url with menu url array


//must be at the bottom of this page
var whichSection = thisSection(whichMenu,category);//launches function that writes out the sidenav html. 'whichMenu' and 'category' are set at the top of each page

/* end sidenav data */

