{if or($module_result.content_info.node_id|e q(428), $module_result.content_info.parent_node_ id|eq(428))}
{else}
{def $mainMenu=treemenu( $module_result.path, $module_result.node_id, array('folder','article', 'tovarnoe_predlozhenie'), 1, 4)}
{def $depth=1 $last=0 $lastlevel=0 $leveldiff=0}
{if $mainMenu}
<h2>{$module_result.title_path[1].text}</h2>
{*$module_result.path[1]|attribute(show)*}
<ul>
{foreach $mainMenu as $menu}
{set lastlevel=$last.level}
{if and($lastlevel|ne(0), $lastlevel|gt($menu.level))}
{set leveldiff=sub($lastlevel,$menu.level)}
{while $leveldiff}
</ul>
</li>
{set leveldiff=$leveldiff|sub(1)}
{/while}
{set lastlevel=$lastlevel|sub($menu.level)}
{/if}
|