<%IF $opt_layout AND NOT $LAYOUT_block_id THEN $LAYOUT_block_id=1 ENDIF $toplist_opened_div=0 $tl_counter=1 QUERY GetSalesTopList(toplist_id=$LAYOUT_block_id) DO DISPLAY IF $show_toplist OR $opt_layout THEN IF $Rownum==1 THEN $toplist_opened_div=1%>
<%IF $GetSalesTopList.toplist_header THEN%>
$[TR]GetSalesTopList.toplist_header
<%ELSE%>
[%TOPLIST Topplista%]
<%ENDIF%>
<%ENDIF ENDQUERY%>