<div class="d3downloads_feed_select">
	<{if $mylink}><span class="d3downloads_mylink_info"><{$smarty.const._MD_D3DOWNLOADS_MYLINK_INFO}></span>&nbsp;<{/if}>
	<{if $category_id}>
		<a href="<{$mod_url}>/index.php?page=rdf&amp;cid=<{$category_id}><{if $intree}>&amp;intree=<{$intree}><{/if}><{if $mylink}>&amp;mylink=<{$mylink}><{/if}>">[RDF]</a>
		<a href="<{$mod_url}>/rss.php?cid=<{$category_id}><{if $intree}>&amp;intree=<{$intree}><{/if}><{if $mylink}>&amp;mylink=<{$mylink}><{/if}>">[RSS]</a>
		<a href="<{$mod_url}>/index.php?page=atom&amp;cid=<{$category_id}><{if $intree}>&amp;intree=<{$intree}><{/if}><{if $mylink}>&amp;mylink=<{$mylink}><{/if}>">[ATOM]</a>
		<a href="<{$mod_url}>/index.php?page=filelist&amp;cid=<{$category_id}><{if $intree}>&amp;intree=<{$intree}><{/if}>">[<{$smarty.const._MD_D3DOWNLOADS_FILELIST}>]</a>
	<{else}>
		<a href="<{$mod_url}>/index.php?page=rdf<{if $mylink}>&amp;mylink=<{$mylink}><{/if}>">[RDF]</a>
		<a href="<{$mod_url}>/rss.php<{if $mylink}>?mylink=<{$mylink}><{/if}>">[RSS]</a>
		<a href="<{$mod_url}>/index.php?page=atom<{if $mylink}>&amp;mylink=<{$mylink}><{/if}>">[ATOM]</a>
		<a href="<{$mod_url}>/index.php?page=filelist">[<{$smarty.const._MD_D3DOWNLOADS_FILELIST}>]</a>
	<{/if}>
</div>
<{if $categories}>
	<div class="row">
	<{foreach from=$categories item=cat key=count}>
		<div class="d3cat one third">
			<img src="<{$mod_url}>/images/folder.gif" alt="<{$cat.title}>" title="<{$cat.title}>" />
			<a href="<{$mod_url}>/index.php?cid=<{$cat.cid}><{$cat_arg}>"><{$cat.title}></a>
			&nbsp;(<{$cat.subcat_total}>)&nbsp;
			<a href="<{$mod_url}>/index.php?page=filelist&amp;cid=<{$cat.cid}><{if $intree}>&amp;intree=<{$intree}><{/if}>">[<{$smarty.const._MD_D3DOWNLOADS_FILELIST}>]</a>
			<{foreach from=$cat.subcategories item=subcat}>
				<div class="d3subcat"> 
					<a href="<{$mod_url}>/index.php?cid=<{$subcat.cid}><{$cat_arg}>"><img src="<{$mod_url}>/images/folder16.gif" alt="<{$subcat.title}>" title="<{$subcat.title}>" /></a>
					<a href="<{$mod_url}>/index.php?cid=<{$subcat.cid}><{$cat_arg}>"><{$subcat.title}></a>
					&nbsp;(<{$subcat.subcat_total}>)&nbsp;
					<{if $subcat.number_of_subcat}>
						<img src="<{$mod_url}>/images/subcat.gif" width="15" height="15" />
					<{/if}>
				</div>
			<{/foreach}>
		</div>
	<{/foreach}>
	</div>
	<hr class="d3downloads_categories" />
<{/if}>
