<% if Photos %>
<div class='slideshow'>
<% control Photos %>
<% if Pos = 1 %>
$Attachment.SetRatioSize(640,480)
<% end_if %>
<% end_control %>
<div class="clear"></div>
</div>
<% end_if %>
<div class='controls'>
<% if Photos %>
<% if showPlayButton %>
<div class='photos'>
<% control Photos %>
<% if Pos = 1 %>
<a href="$Attachment.URL" rel="group" class='fancybox red_button'><% _t('Content.PLAY_SLIDESHOW') %></a>
<% else %>
<a class="fancybox" rel="group" href="$Attachment.URL"></a>
<% end_if %>
<% end_control %>
</div>
<% end_if %>
<% end_if %>