		var collapseSections = null; /* collapses left nav sections */
		var sectionId = null; /* expands left nav section */
		var pageId = null; /* shows left nav link as active */

		/* Takes a list of sectionIds, which are associated with
		 * <UL> tag and applies the "expand" class to each section
		 */
		function expandLeftNav (sectionIds) {
			var leftNavSection = null;
			var sectionIdList = null;

			if ((sectionIds != undefined) && (sectionIds != null) && (sectionIds != '')){
				// Remove whitespace from the list of sections
				sectionIds = sectionIds.replace(/\s/g, "");
				sectionIdList = sectionIds.split(",");

				for (i=0; i < sectionIdList.length; i++) {
					if (sectionIdList[i])
						leftNavSection=document.getElementById(sectionIdList[i]);
					applyExpandClass (leftNavSection);
					expandParent (leftNavSection);
				}
			}
		}

		/* Takes a list of sections, which are asociated with the <UL> tag
		 * and applies the "collapse" class to each section.
		 */
		function collapseLeftNav (SectionsToCollapse) {
			var leftNavSection = null;
			var sectionIdList = null;

			if ((SectionsToCollapse != undefined) && (SectionsToCollapse != null) && (SectionsToCollapse != '')){
				// Remove whitespace from the list of sections
				SectionsToCollapse = SectionsToCollapse.replace(/\s/g, "");
				sectionIdList = SectionsToCollapse.split(",");

				for (i=0; i < sectionIdList.length; i++) {
					if (sectionIdList[i])
						leftNavSection=document.getElementById(sectionIdList[i]);
					// if the collapse class is not already applied to the section
					if ((leftNavSection) && (leftNavSection.className.indexOf("collapse") < 0))
						// if the expand class is already applied to the section, replace it with collapse
						if (leftNavSection.className.indexOf("expand") > -1)
							leftNavSection.className = leftNavSection.className.replace("expand", "collapse");
						// if no expand class is found, then append the collapse class
						else
							leftNavSection.className += " collapse";
				}
			}
		}

		/* Applies the expand class to a section. Checks for the collapse class
		 * and removes if it is there.
		 */
		function applyExpandClass (Section) {
					// if the expand class is not already applied to the section
					if ((Section) && (Section.className.indexOf("expand") < 0))
						// if the collapse class is already applied to the section, replace it with expand
						if (Section.className.indexOf("collapse") > -1)
							Section.className = Section.className.replace ("collapse", "expand");
						// if no collapse class is found, then append the expand class
						else
							Section.className += " expand";
		}

		/* This is a recursive function that applys the "expand" class
		 * to the parent of the DOM element passed in via the Section 
		 * parameter.
		 */
		function expandParent (Section) {
			if ((Section != null) && (Section.parentNode != null)) {
				// if this is a UL element apply "expand" class,
				if (Section.parentNode.nodeName == "UL" || Section.parentNode.nodeName == "ul") { 
					applyExpandClass (Section.parentNode);
				}
				// otherwise go to the next parent element
				expandParent (Section.parentNode);
			}
		}

		/* Bolds the <A> tag associated with pageId by applying
		 * the "color003366bld class to the link.
		 */
		function setActivePageLink (pageId) {
			var ActivePageLink = null;
			if (pageId)
				ActivePageLink=document.getElementById(pageId);
			if (ActivePageLink)
				ActivePageLink.className = "color003366bld";
		}


