<!--{if !empty($dynamic.gallery)}-->
<input type="hidden" id="zoom_nums" value="<!--{count($dynamic.gallery)}-->" />
<!--{foreach $dynamic.gallery as $volist}-->
    <!--{if $orderi > 0}-->
	<!--{if $volist.i == $orderi}-->
	<input type="hidden" id="orderi" value="<!--{$volist.i}-->" />
	<!--{/if}-->
	<!--{else}-->
	<!--{if $volist.i == "1"}-->
	<input type="hidden" id="orderi" value="<!--{$volist.i}-->" />
	<!--{/if}-->
	<!--{/if}-->
<!--{/foreach}-->
<p class="p_1">
  <i id="zoom_orderi">
	  <!--{foreach $dynamic.gallery as $volist}-->
	  <!--{if $orderi > 0}-->
		<!--{if $volist.i == $orderi}-->
		<!--{$volist.i}-->
		<!--{/if}-->
	  <!--{else}-->
		<!--{if $volist.i == "1"}-->
		1
		<!--{/if}-->
	  <!--{/if}-->
	  <!--{/foreach}-->
  </i>/<!--{count($dynamic.gallery)}-->
</p>
<span class="close" f="but_close_dynamic_zoom"><i></i></span>
<div class="bd">
  <ul id="zoom_list">
	<!--{foreach $dynamic.gallery as $volist}-->
	<li class="_list" id="zoom_<!--{$volist.i}-->" style="display:<!--{if $volist.i == $orderi}-->block<!--{else}-->none<!--{/if}-->;" data-orderi="<!--{$volist.i}-->"><img class="view" src="<!--{$volist.drawimg}-->" /><img class="line" src="<!--{$skinpath}-->images/img_line.png" /></li>
	<!--{/foreach}-->
  </ul>
  <div class="clear"></div>
</div>
<span class="prev" f="but_prev_zomm"></span>
<span class="next" f="but_next_zomm"></span>
<!--{else}-->
<!--{if !empty($dynamic.thumbimg)}-->
<input type="hidden" id="zoom_nums" value="1" />
<input type="hidden" id="orderi" value="1" />
<p class="p_1"><i id="zoom_orderi">1</i>/1</p>
<span class="close" f="but_close_dynamic_zoom"><i></i></span>
<div class="bd">
  <ul id="zoom_list">
	<li class="_list" id="zoom_1" data-orderi="1"><img class="view" src="<!--{$dynamic.drawimg}-->" /><img class="line" src="<!--{$skinpath}-->images/img_line.png" /></li>
  </ul>
  <div class="clear"></div>
</div>
<span class="prev" f="but_prev_zomm"></span>
<span class="next" f="but_next_zomm"></span>
<!--{/if}-->
<!--{/if}-->
