<script language="JavaScript" type="text/javascript">
{literal}
<!--
function fitwindow(width,height)
{
	w = width+50;
	h = height+50;
	if(w>(screen.availWidth-50)) {
	  w = screen.availWidth-50;
	}
	if(h>(screen.availHeigheight-20)) {
	  h = screen.availHeigheight-20;
	}
	/*
	if(w<700) { w = 700;}
	if(h<600) { h = 600;}
	*/
	if(w>1000) { w = 1000;}
	if(h>750) { h = 750;}
	
	if(width>1 && height>1) { window.resizeTo(w, h);
	} else { window.setTimeout("check(-1,-1)",100); }
window.moveTo(1,1);
}
//-->
{/literal}
</script>

{strip} {if $smarty.request.size=='full'}
<script>
fitwindow({$width},{$height});
</script>
{if $smarty.request.print=='yes'}
<script>

window.print();
window.close();

</script>
{/if}
<a href="javascript:self.close();"><img src="system/pic.php?img_id={$item->id}&amp;size=full" alt="{$item->name}" border="0" title="{$item->name}" /></a> {else}
<form action="" method="post" enctype="multipart/form-data" name="kform" id="kform">
<table width="100%"  border="0" cellpadding="4" cellspacing="0" class="outer_boxborder">
                <tr>
                  <td><div align="center">
                      <table>
                        <tr>
                          <td><a href="#" onclick="window.open('index.php?p=gallerypic&amp;img_id={$item->id}&amp;galid={$smarty.request.galid}&area={$area}&amp;size=full','','toolbars=no,scrollbars=yes');"><img src="system/pic.php?img_id={$item->id}&amp;galid={$smarty.request.galid}" alt="{$item->name}" border="0" title="{$item->name}" /></a></td>
                        </tr>
                        <tr>
                          <td align="left"><table border="0" cellpadding="1" cellspacing="0">
                              <tr>
                                <td><a href="#" onclick="window.open('index.php?p=gallerypic&amp;img_id={$item->id}&amp;galid={$smarty.request.galid}&area={$area}&amp;size=full','','toolbars=no,scrollbars=yes');"><img src="templates/{$theme}/img/page/gallimage_full.gif" border="0" alt="" /></a> </td>
                                <td><a href="#" onclick="window.open('index.php?p=gallerypic&amp;img_id={$item->id}&amp;galid={$smarty.request.galid}&area={$area}&amp;size=full&amp;print=yes','{$item->name}','toolbars=no,scrollbars=yes');"><img src="templates/{$theme}/img/page/gallimage_print.gif" border="0" /></a> </td>
                                <td> {if $prev_pic != 0} <a href="index.php?p=gallerypic&amp;img_id={$prev_pic->id}&amp;galid={$smarty.request.galid}&amp;area={$smarty.request.area}{if $smarty.request.type==popup}&amp;type=popup{/if}"><img src="templates/{$theme}/img/page/previmage.gif" border="0" alt="{$lang.navpicprev}" title="{$lang.navpicprev}" /></a> {else} <img src="templates/{$theme}/img/page/previmage_empty.gif" border="0" alt="" title="" /> {/if} </td>
                                <td> {if $next_pic != 0} <a href="index.php?p=gallerypic&img_id={$next_pic->id}&galid={$smarty.request.galid}&area={$smarty.request.area}{if $smarty.request.type==popup}&amp;type=popup{/if}"><img src="templates/{$theme}/img/page/nextimage.gif" border="0" alt="{$lang.navpicnext}" title="{$lang.navpicnext}" /></a> {else} <img src="templates/{$theme}/img/page/nextimage_empty.gif" border="0" alt="" title="" /> {/if} </td>
                                <td><select onchange="eval(this.options[this.selectedIndex].value);selectedIndex=0;" name="picjump">
                                    
			  {foreach from=$gallery item=galimg}
			  
                                    <option value="window.location.href = 'index.php?p=gallerypic&amp;img_id={$galimg->id}&amp;galid={$smarty.request.galid}&amp;area={$area}{if $smarty.request.type==popup}&amp;type=popup{/if}';" {if $smarty.request.img_id == $galimg->id}selected="selected"{/if}>{* {$lang.jump_to} *}{$lang.image_once} {$galimg->number}</option>
                                    
			  {/foreach} 
			  
                                  </select>
                                </td>
                              </tr>
                            </table></td>
                        </tr>
                      </table>
                  </div></td>
                  <td valign="top">
				  <div style="overflow:auto;height:{if $smarty.request.type==popup}450{else}360{/if}px;width:120px">
                      <table  border="0" cellspacing="1" cellpadding="2">
                        {* // ALLE SELEKTIEREN {if $picdownload==1}
                        <tr>
                          <td colspan="2"><input name="allbox" type="checkbox" id="d" onclick="selall();" value="" />
                            {$lang.selectall} </td>
                        </tr>
                        {/if} *} {foreach from=$gallerypics item=galimg_all}
                        <tr>
                          <td><div align="center"> <a name="{$galimg_all->id}" id="{$galimg_all->id}"></a> <a href="index.php?p=gallerypic&amp;img_id={$galimg_all->id}&amp;galid={$smarty.request.galid}&amp;area={$area}{if $smarty.request.type==popup}&amp;type=popup{/if}"><img src="system/thumb.php?img_id={$galimg_all->id}&amp;smode=1" alt=""  vspace="0" border="0" class="{if $smarty.request.img_id==$galimg_all->id}active_image{else}inactive_image{/if}" /></a> </div></td>
                          {if $picdownload==1}
                          <td><input class="noborder" name="dl[{$galimg_all->id}]" type="checkbox" id="d" value="1" />
                          </td>
                          {/if} </tr>
                        {/foreach}
                      </table>
                    </div></td>
                </tr>
                <tr>
                  <td colspan="2" class="row_first"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td><strong>{$item->name|default:$lang.picname_unknown}</strong></td>
                      <td><div align="right">
                        <input name="galid" type="hidden" id="galid" value="{$smarty.request.galid}" />
                        <input type="hidden" name="dlf" value="1" />
                        <input class="button" type="submit" name="dlb" value="{$lang.dlselected}" />
</div></td>
                    </tr>
                  </table></td>
                </tr>
                <tr>
                  <td colspan="2" class="row_second"> {$item->descr|default:$lang.no_descr} </td>
                </tr>
              </table>
</form>


 <br />
	  {$comments}
	  <br />
	  {$commentform}
{/if} {/strip} 