<textarea cols="50" rows="20" id="TrashContextMenus">

<!-- FILE MENU -->
<div id="afian_trash_context_file" class="menu" >
<div class="contextMenu">
<img src="images/interface/x.gif" width="8" height="8" border="0" alt="" style="position:absolute;top:2px;right:2px;cursor:hand;" onClick="javascript:AfianHandler.activeTab.unselectAll()" title="<?$lang->display("Clear selection");?>">
<a href="javascript:;" onClick="javascript:TrashRestore()" class="item"><?$lang->display("Restore");?></a>

<div class="separator"><img src="images/interface/hr.gif" width="100%" height="2" border="0" alt=""></div>

<?/*if (!$permissions['readonly']) {*/?>
<a href="javascript:;" onClick="javascript:clipboardAction='cutfromtrash';clipSelected()" class="item"><?$lang->display("Cut");?></a>
<?/*}else{?>
<a href="javascript:;" onClick="javascript:msg('noperm')" class="itemdisabled"><?$lang->display("Cut");?></a>
<?}*/?>

<br>
<?/*if (!$permissions['readonly']) {*/?>
<a href="javascript:;" onClick="javascript:TrashDelete()" class="item"><?$lang->display("Delete");?></a>
<?/*}else{?>
<a href="javascript:;" onClick="javascript:msg('noperm')" class="itemdisabled"><?$lang->display("Delete");?></a>
<?}*/?>
</div>
</div>

<!-- DIR MENU -->

<div id="afian_trash_context_dir" class="menu" >
<div class="contextMenu">
<img src="images/interface/x.gif" width="8" height="8" border="0" alt="" style="position:absolute;top:2px;right:2px;cursor:hand;" onClick="javascript:AfianHandler.activeTab.unselectAll()" title="<?$lang->display("Clear selection");?>">
<a href="javascript:;" onClick="javascript:TrashRestore()" class="item"><?$lang->display("Restore");?></a>
<div class="separator"><img src="images/interface/hr.gif" width="100%" height="2" border="0" alt=""></div>

<?/*if (!$permissions['readonly']) {*/?>
<a href="javascript:;" onClick="javascript:clipboardAction='cutfromtrash';clipSelected()" class="item"><?$lang->display("Cut");?></a>
<?/*}else{?>
<a href="javascript:;" onClick="javascript:msg('noperm')" class="itemdisabled"><?$lang->display("Cut");?></a>
<?}*/?>

<br>

<?/*if (!$permissions['readonly']) {*/?>
<a href="javascript:;" onClick="javascript:TrashDelete()" class="item"><?$lang->display("Delete");?></a>
<?/*}else{?>
<a href="javascript:;" onClick="javascript:msg('noperm')" class="itemdisabled"><?$lang->display("Delete");?></a>
<?}*/?>
</div>
</div>



<!-- MULTIPLE SELECTION -->
<div id="afian_trash_context_multiple" class="menu" >
<div class="contextMenu">
<img src="images/interface/x.gif" width="8" height="8" border="0" alt="" style="position:absolute;top:2px;right:2px;cursor:hand;" onClick="javascript:AfianHandler.activeTab.unselectAll()" title="<?$lang->display("Clear selection");?>">

<a href="javascript:;" onClick="javascript:TrashRestore()" class="item"><?$lang->display("Restore");?></a>

<div class="separator"><img src="images/interface/hr.gif" width="100%" height="2" border="0" alt=""></div>


<?/*if (!$permissions['readonly']) {*/?>
<a href="javascript:;" onClick="javascript:clipboardAction='cutfromtrash';clipSelected()" class="item"><?$lang->display("Cut");?></a>
<?/*}else{?>
<a href="javascript:;" onClick="javascript:msg('noperm')" class="itemdisabled"><?$lang->display("Cut");?></a>
<?}*/?>

<br>

<?/*if (!$permissions['readonly']) {*/?>
<a href="javascript:;" onClick="javascript:TrashDelete()" class="item"><?$lang->display("Delete");?></a>
<?/*}else{?>
<a href="javascript:;" onClick="javascript:msg('noperm')" class="itemdisabled"><?$lang->display("Delete");?></a>
<?}*/?>
</div>
</div>



</textarea>


<script>
ht = document.getElementById('TrashContextMenus').value;
parent.AfianHandler.loadHTMLComponent('TrashContextMenus', ht);
parent.AfianHandler.components['TrashContextMenus'].loaded = true;
parent.makeDragable('afian_trash_context_file');
parent.makeDragable('afian_trash_context_dir');
parent.makeDragable('afian_trash_context_multiple');
</script>