// section_toc.js

function getSectionTocContainer() {
	// Current Page
	currentPageURL = getURLpath(location.href);
	currentPage = getPage(currentPageURL, sitemapDOM);

	if (!currentPage) { // current page could not be found in sitemap
		currentPageURL = "/index.htm";  // use home instead
		currentPage = getPage(currentPageURL, sitemapDOM);
	}

	return getChildContainer(currentPage);
}

function buildSectionToc(tocElement, tocTitleStr) {
	sectionTocContainer = getSectionTocContainer();
	
	buildContainerToc(tocElement, tocTitleStr, sectionTocContainer);
}