Here's my standard template for thumbs
Code:
<%TEMPLATE
NAME Thumb2
HTML <td align="center"><a href="/go.php?ID=##Gallery_ID##&P=75&URL=##Encoded_URL##" target="_blank" title="##Category##: ##Description##"><img src="##Thumbnail_URL##" align="middle" alt="##Category##: ##Description##" width="166" height="250"></a></td>
%>
and here's my go.php template entry, set up for AT3 Lite. Your script might vary - I don't know that one:
Code:
$TEMPLATE = '/cgi-bin/at3/out.cgi?s=##Skim##&l=gallery&c=1&u=##Gallery_URL##';