<textarea cols="50" rows="20" id="TrashBaseMenu">
<table border="0" cellspacing="0" cellpadding="0" align="center" style="width:100%;" height="21">
<tr>
	<td width="9" background="images/interface/gradient-left.gif"><img src="images/interface/pixel.gif" width="9" height="18" border="0" alt=""></td>
	<td width="9" background="images/interface/gradient-bg.gif"><img src="images/interface/menu-dots.gif" width="9" height="14" border="0" alt=""></td>
	<td style="padding-left:4px;white-space:nowrap;padding-top:2px;" background="images/interface/gradient-bg.gif">

<div style="width:100%;position:relative" id="afian_hmenu">
<table border="0" cellpadding="0" cellspacing="0" class="baseMenu">
<tr>
<td>

<table border="0" cellpadding="1" cellspacing="0">
</tr>
	<td style="	background-image:url(images/interface/arrow-do-padd.gif);background-repeat:no-repeat;background-position:95%"><a href="javascript:;" onmouseover="Afian_SubMenu.Over('submenus_trash_sort', this.parentNode.offsetLeft+1, '17')" onmouseout="Afian_SubMenu.Out('submenus_trash_sort')" class="menu-option-dropdown" onfocus="blur()"><?$lang->display("Sort");?></a></td>
	<td style="	background-image:url(images/interface/arrow-do-padd.gif);background-repeat:no-repeat;background-position:95%"><a href="javascript:;" onmouseover="Afian_SubMenu.Over('submenus_trash_select', this.parentNode.offsetLeft+1, '17')" onmouseout="Afian_SubMenu.Out('submenus_trash_select')" class="menu-option-dropdown" onfocus="blur()"><?$lang->display("Select");?></a></td>
</tr>
</table>

</td>
	<td>&nbsp;</td>
</tr>
</table>

<div id="submenus_trash_sort" class="menu-sub" onmouseover="Afian_SubMenu.Pause('submenus_trash_sort')" onmouseout="Afian_SubMenu.Out('submenus_trash_sort')" onclick="Afian_SubMenu.Out('submenus_trash_sort')">
<div class="menu-sub-item"><a href="javascript:;" onClick="javascript:AfianHandler.activeTab.destroyItems();AfianHandler.activeTab.sortItems('name', 'desc');AfianHandler.activeTab.buildItems();AfianHandler.activeTab.showItems();"><?$lang->display("by name");?></a></div>
<div class="menu-sub-item"><a href="javascript:;" onClick="javascript:if (AfianHandler.activeTab.sortBy != 'size'){AfianHandler.activeTab.destroyItems();AfianHandler.activeTab.sortItems('size', 'desc');AfianHandler.activeTab.buildItems();AfianHandler.activeTab.showItems();}"><?$lang->display("by size");?></a></div>
<div class="menu-sub-item"><a href="javascript:;" onClick="javascript:if (AfianHandler.activeTab.sortBy != 'type'){AfianHandler.activeTab.destroyItems();AfianHandler.activeTab.sortItems('type', 'desc');AfianHandler.activeTab.buildItems();AfianHandler.activeTab.showItems();}"><?$lang->display("by type");?></a></div>
</div>

<div id="submenus_trash_select" class="menu-sub" onmouseover="Afian_SubMenu.Pause('submenus_trash_select')" onmouseout="Afian_SubMenu.Out('submenus_trash_select')" onclick="Afian_SubMenu.Out('submenus_trash_select')">
<div class="menu-sub-item"><a href="javascript:;" onClick="javascript:AfianHandler.activeTab.selectAll()"><?$lang->display("all");?></a></div>
<div class="menu-sub-item"><a href="javascript:;" onClick="javascript:AfianHandler.activeTab.unselectAll()"><?$lang->display("none");?></a></div>
</div>

</div>

	</td>
	<td width="9" background="images/interface/gradient-right.gif"><img src="images/interface/pixel.gif" width="9" height="18" border="0" alt=""></td>
</tr>
</table>


<table border="0" cellspacing="0" cellpadding="0" align="center" style="width:100%" height="33">
<tr>
<td width="9" height="33"><img src="images/interface/gradient-left.gif" width="9" height="33" border="0" alt=""></td>

<td background="images/interface/gradient-bg.gif" style="background-repeat:repeat-x" width="38" align="center"><div onclick="AfianHandler.activeTab.Trash_Browse()" style="padding:3px;width:20px;cursor:pointer;cursor:hand;" onmouseover="this.className='btnBorderOver'" onmouseout="this.className='btnBorder'" onmousedown="this.className='btnBorderOn'" class="btnBorder"><img src="images/interface/ref.gif" border="0" alt=""></div></td>

<td background="images/interface/gradient-bg.gif" style="background-repeat:repeat-x">&nbsp;</td>

<td background="images/interface/gradient-bg.gif" style="background-repeat:repeat-x" align="right" nowrap>

<?
$tpl->btn(
$lang->get("Empty trash"), 
"EmptyTrash()", 
"", 
false, 
"onfocus=\"blur()\""
);
?>

</td>


	<td width="9" height="33"><img src="images/interface/gradient-right.gif" width="9" height="33" border="0" alt=""></td>
</tr>
</table>

</textarea>



<script>
ht = document.getElementById('TrashBaseMenu').value;
parent.AfianHandler.insertBaseMenuHTML('TrashBaseMenu', ht);
parent.AfianHandler.components['TrashBaseMenu'].loaded=true;
parent.buttonize();
new parent.Afian_SubMenu('submenus_trash_sort');
new parent.Afian_SubMenu('submenus_trash_select');
</script>