Please note that unless you modify the product images template then the first detail image will show twice. If you dont want this then amend code to the following:
Code:
{if $images ne ""}
{section name=num loop=$images}
{/section}
{if %num.index% <2}
{else}
{capture name=dialog}
<table border=0 width=100% cellpadding=2 cellspacing=0>
<tr>
{section name=image loop=$images}
{if $images[image].avail eq "Y"}
{if $smarty.section.image.index eq 0}
{else}
<td align=center valign=top>
[img]../product_image.php?imageid={$images[image].imageid}[/img]
</td>
{if $smarty.section.image.index is even}
</tr>
<tr>
{/if}
{/if}
{/if}
{/section}
</tr>
</table>
{/capture}
{if $smarty.capture.dialog ne ""}
{include file="dialog.tpl" title=$lng.lbl_detailed_images content=$smarty.capture.dialog extra="width=100%"}
{/if}
{/if}
{/if}
btw this show two images per row.