{if $sidemenu.i_rank != ""}

<div id="ranklist">
<h3>人気ランキング</h3>
{foreach from=$sidemenu.i_rank item=item name=exnaviitemrank}
  <dl>
  <dt><a href="{$dirName}/item_{$item.itemcd}.html">
    <img src="img.php?c={$item.itemcd}&s=S&d=1" alt="{$item.itemnm}" width="50" /></a></dt>
  <dd class="no{$smarty.foreach.exnaviitemrank.index+1}">
    <a href="{$dirName}/item_{$item.itemcd}.html">{$item.itemnm}</a></dd>
  </dl>
{/foreach}
<div class="tolist"><a href="{$scriptName}?action=general_itemview_itemranking{if !empty($sidemenu.rank_gnr.genrecd)}&gnr={$sidemenu.rank_gnr.genrecd}{/if}">人気ランキングへ</a></div>
</div><!--End of ranklist-->

{/if}
