
<table width="100%"  border="0" cellspacing="0" cellpadding="1">
  {foreach from=$galstring item=lg}
  {if $lg.id}
   <tr class="{cycle name="gals" values="row_second,row_first"}">
    <td>
	<div align="center">
	{* {$lg.link} <a href="{$lg.link}">{$lg.galname}</a>*}
	<a href="javascript:void(0);" onclick="window.open('index.php?p=gallerypic&img_id={$lg.id}&galid={$lg.galid}&area={$area}&ascdesc=desc&type=popup','','toolbar=yes,top=0,left=0,scrollbars=yes,width=820,height=620')">{$lg.galname}</a>
	<br />
	<a href="javascript:void(0);" onclick="window.open('index.php?p=gallerypic&img_id={$lg.id}&galid={$lg.galid}&area={$area}&ascdesc=desc&type=popup','','toolbar=yes,top=0,left=0,scrollbars=yes,width=820,height=620')"><img border="0" vspace="0" src="system/thumb.php?img_id={$lg.id}" alt="{$lg.galname}" /></a></div>
	 </td>
  </tr>
  {/if}
  {/foreach}
</table>
