<xen:if is="{$xenOptions.amsSidebarArticleTocPages} AND {$articlePages}">
<div class="section">
<div class="secondaryContent">
<h3>{xen:phrase nflj_ams_table_of_contents}</h3>
<span><a href="#" class="JsOnly ToggleTrigger" data-target="#ShowHideSidebarTOC_{$article.article_id}">View {xen:phrase nflj_ams_table_of_contents}</a></span>
<div id="ShowHideSidebarTOC_{$article.article_id}" class="section avatarList amsArticleTOC" style="display: block;">
<ol>
<li><a href="{xen:link ams, $article}#article-{$article.article_id}" class="{xen:if '!{$articlePage} && !{$article.isFull}', selected}"><span>{xen:phrase nflj_ams_article_overview}</span></a></li>
<xen:foreach loop="$articlePages" key="$articlePageKey" value="$_articlePageNav">
<li>{xen:string repeat, ' ', $_articlePageNav.depth}<a href="{xen:link ams, $article, 'mp={$_articlePageNav.article_page_id}'}#article-{$article.article_id}" class="{xen:if '{$articlePage.article_page_id} == {$articlePageKey}', selected}"><span>{xen:if {$_articlePageNav.nav_title}, {$_articlePageNav.nav_title}, {$_articlePageNav.title}}</span></a></li>
</xen:foreach>
<li><a href="{xen:link ams, $article, 'full=1'}#article-{$article.article_id}" class="{xen:if '{$article.isFull}', selected}"><span>{xen:phrase nflj_ams_view_full_article}</span></a></li>
</ol>
</div>
</div>
</div>
</xen:if>