<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
{include file="header.tpl"}
	</head>
	<body class="file_gallery slideshow">
{jq}
			$("a[rel*='shadowbox']").colorbox({
				open: true,
				slideshowStart: "{tr}Start the Slideshow{/tr}",
				slideshowStop: "{tr}Pause the Slideshow{/tr}",
				
				{{if ($slideshow_noclose)}
				slideshowAuto: false,
				overlayClose: false,
				close: ''
				{/if}}
			});
{/jq}
	
{if (!$slideshow_noclose)}
		<div style="position:fixed; top:5px; right:10px;">{button href='#' _onclick='javascript:window.close(); return false' _text="{tr}Close{/tr}"}</div>
{/if}
		<div id="images" class="hidden">
			<ul>
{foreach from=$file key=i item=f name=files}
				<li>
					<a id="id{$i}" href="tiki-download_file.php?preview&fileId={$f.id}"
			rel="shadowbox[slideshow];type=img"
			title="{$f.name|escape:'javascript'}">{$f.name}</a>
				</li>
{/foreach}
			</ul>
		</div>
<!-- Put JS at the end -->
{if $headerlib}
  {$headerlib->output_js_files()}
  {$headerlib->output_js()}
{/if}
	</body>
</html>
