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

<!-- FILE MENU -->
<div id="afian_bshare_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");?>"><strong><a href="javascript:;" onClick="javascript:BShareGet()" class="<?
/*if ($permissions['unlimitedTraffic'] || $quota->canAddTraffic()) {*/
?>item<?/*} else {?>itemdisabled<?}*/?>"><?$lang->display("Download")?></a></strong>
<div class="separator"><img src="images/interface/hr.gif" width="100%" height="2" border="0" alt=""></div>

<span id="FM~menuExtra">
</span>


<??>
<a href="javascript:;" onClick="javascript:BShareComment()" class="item"><?$lang->display("Comments..");?></a> <span id="file_comments_extra" class="comment"></span>


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


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

</div>
</div>

<!-- DIR MENU -->

<div id="afian_bshare_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");?>">
<strong><a href="javascript:;" onClick="javascript:BShareCD()" class="item"><?$lang->display("Browse");?></a></strong>
<div class="separator"><img src="images/interface/hr.gif" width="100%" height="2" border="0" alt=""></div>

<?/**/?>
<a href="javascript:;" onClick="javascript:BShareComment()" class="item"><?$lang->display("Comments..");?></a> <span id="dir_comments_extra" class="comment"></span>

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

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

</div>
</div>



<!-- MULTIPLE SELECTION -->
<div id="afian_bshare_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");?>">
<?
/*
if ($permissions['byemail']) {?>
<a href="javascript:;" onClick="javascript:sendByEmail()" class="item"><?$lang->display("Send by mail");?></a>
<div class="separator"><img src="images/interface/hr.gif" width="100%" height="2" border="0" alt=""></div>
<?}else{*//*?>
<a href="javascript:;" onClick="javascript:msg()" class="itemdisabled"><?$lang->display("Send by mail");?></a>
<?}*/?>



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

</div>
</div>

</div>

</textarea>


<script>
ht = document.getElementById('BShareContextMenus').value;
parent.AfianHandler.loadHTMLComponent('BShareContextMenus', ht);
parent.AfianHandler.components['BShareContextMenus'].loaded = true;
parent.makeDragable('afian_bshare_context_file');
parent.makeDragable('afian_bshare_context_dir');
parent.makeDragable('afian_bshare_context_multiple');
</script>