{pboot:nav}
<li><a href="[nav:link]">{nav:name}</a>
{pboot:if('[nav:scode]' == '{sort:tcode}')}class="active"{/pboot:if}
</li>
{/pboot:nav}
{pboot:nav}
<li><a href="[nav:link]">{nav:name}</a>
{pboot:if('[nav:scode]' == '{sort:tcode}')}class="active"{/pboot:if}
</li>
{/pboot:nav}