<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>{$titletext}</title>

		<style type="text/css">{literal}
		<!--
		body {
			background-color : #999;
			margin : 0;
			padding : 0 20px;
		}
		a img { border:none;}
		a {text-decoration : none; color : black}
		a:hover {text-decoration : underline}
		a:visited {color : black}

		#files {
			margin : 10px 0;
			background-color : white;
			border : 1px inset #ccc;
			overflow:scroll;
			height : 300px;
			padding-bottom : 1.5em;

		}
		#files table {width:100%;border-collapse:collapse;}
		#files th {border : 1px solid #555;background-color:#ccc;text-align:left;}
		#files tbody tr {color:#999; }
		#files tbody tr.linked {color:black; }
		#files td.picture {width : 18px; padding : 0; }
		#files td.size,#files td.playtime,#files td.action {padding:0 5px;}
		#files th.action {width : 48px;}


		#error {
			margin : 20px 0;
			padding : 10px;
			background-color : #ffbebe;
			border : 1px solid black;
			max-height :200px;
			overflow:scroll;
		}
		#youarehere {
			margin : 20px 0;
			padding : 0 10px;
			background-color : #DDD;
			border : 1px inset #ccc;
		}
		#cancelzone {
			margin : 10px 0;
			text-align : right;
		}
		-->
		</style>

		<script type="text/javascript">
		<!--
		function sendfile($file) {
			window.opener.document.getElementById("{/literal}{$id}{literal}location").value=$file;
			window.close();
		}
		//-->
		</script>{/literal}
	 </head>
	<body>
	{$error}
	<div id="youarehere">
		{foreach from=$recursivepath item=entry}
			&raquo; <a href="{$entry->href}">{$entry->name}</a>
		{/foreach}
	</div>
	<div id="files">
		<table>
			<thead>
				<tr>
					<th class="name" colspan="2">{$nametext}</th>
					<th class="size">{$filesizetext}</th>
					<th class="action">&nbsp;</th>
				</tr>
			</thead>
			<tbody>
				{foreach from=$dirs item=entry}<tr>
					<td class="picture">
						<a href="{$entry->href}"><img src="{$entry->imgsrc}" alt="" title="{$entry->name}" /></a>
					</td>
					<td>
						<a href="{$entry->href}">
							{$entry->name}
						</a>
					</td>
					<td>&nbsp;</td>
					<td>&nbsp;</td>
				</tr>{/foreach}
				{foreach from=$files item=entry}<tr>
					<td class="picture">
						{if $entry->href!=""}<a href="{$entry->href}">{/if}
							<img src="{$entry->imgsrc}" alt="" title="{$entry->name}" />
						{if $entry->href!=""}</a>{/if}
					</td>
					<td>
						{if $entry->href!=""}<a href="{$entry->href}" {if $entry->onclick}onclick="{$entry->onclick}"{/if}>{/if}
							{$entry->name}
						{if $entry->href!=""}</a>{/if}
					</td>
					<td>{$entry->filesize}</td>
					<td>{$entry->action}</td>
				</tr>{/foreach}
			</tbody>
		</table>
	</div>
	{$formstart}
		<div>
			{$uploadinput}&nbsp;{$submit}
			{if $allowconvert}<br />{$convertcheckbox}{$convertlabel}{/if}
		</div>
		<div id="cancelzone">
			{$cancel}
		</div>
	{$formend}







	</body>
</html>