clipped from: gallery.menalto.com   
<div class="{$class}">
   {if count($theme.imageViews) > 2}
{g->text text="Other sizes:<br />"}
{section name=imageView loop=$theme.imageViews}
{if ! $smarty.section.imageView.first and ! $smarty.section.imageView.last }
<A href="javascript:alert('This link contains javascript. Please visit the clip source to follow this link.');" target="_self" onclick="window.open('{g->url arg1="view=core.DownloadItem" arg2="itemId=`$theme.imageViews[imageView].id`"}','viewWindow', '{g->text text="width=%d,height=%d" arg1=$theme.imageViews[imageView].width+20 arg2=$theme.imageViews[imageView].height+20}, resizable=yes,scrollbars=no' );">
{if empty($theme.imageViews[imageView].width)}
  {if isset($theme.imageViews[imageView].isSource)}
{g->text text="Source"}
  {else}
{g->text text="Unknown"}
  {/if}
{else}
{g->text text="%dx%d" arg1=$theme.imageViews[imageView].width arg2=$theme.imageViews[imageView].height}
{/if}
</a>&nbsp;
{/if}
{/section}
   {/if}
</div>