function maketoc(element, enableSections)
{
	enableSections = (enableSections != null) ? enableSections : true;
	var tmp = crawlDom(document.body, 2, 4, [], 30, enableSections);
	
	if (tmp.childNodes.length > 0)
	{
		element.appendChild(tmp);
	}
}
function maketoc(element, enableSections)
{
	enableSections = (enableSections != null) ? enableSections : true;
	var tmp = crawlDom(document.body, 2, 4, [], 30, enableSections);
	
	if (tmp.childNodes.length > 0)
	{
		element.appendChild(tmp);
	}
}
function maketoc ( element , enableSections ) { enableSections = ( enableSections != null ) ? enableSections : true ; var tmp = crawlDom ( document . body , 2 , 4 , [ ] , 30 , enableSections ) ; if ( tmp . childNodes . length > 0 ) { element . appendChild ( tmp ) ; } }
Creates a table of contents inside the given element.
Creates a table of contents inside the given element .
Crawls the document and adds it to the DOM