{section name=list loop=$act step=5}
<ul class="imglist">
{if $act[list].sp_id}
<li><a href="{$act[list].page}" class="imgborder"><img src="{$act[list].img}"alt="{$act[list].title}" /></a><a href="{$act[list].page}">{$act[list].title}</a></li>{else}{/if}
{math equation="y+x" y=$smarty.section.list.index x=1 assign=selist}
{if $act[$selist].sp_id}
<li><a href="{$act[$selist].page}" class="imgborder"><img src="{$act[$selist].img}"alt="{$act[$selist].title}" /></a><a href="#">{$act[$selist].title}</a></li>{/if}
{math equation="y+x" y=$smarty.section.list.index x=2 assign=selist}
{if $act[$selist].sp_id}
<li><a href="{$act[$selist].page}" class="imgborder"><img src="{$act[$selist].img}"alt="{$act[$selist].title}" /></a><a href="{$act[$selist].page}">{$act[$selist].title}</a></li>{/if}
{math equation="y+x" y=$smarty.section.list.index x=3 assign=selist}
{if $act[$selist].sp_id}
<li><a href="{$act[$selist].page}" class="imgborder"><img src="{$act[$selist].img}"alt="{$act[$selist].title}" /></a><a href="{$act[$selist].page}">{$act[$selist].title}</a></li>{/if}</ul>
{/section}