<textarea cols="50" rows="20" id="MyFilesBaseMenu">
<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 nowrap>
	
	
	
<table border="0" cellpadding="1" cellspacing="0">
<tr>
<td nowrap>
<a href="javascript:;" onClick="if(AfianUserPermissions['upload']){MyFilesShowUpload();}else{AfianAlert('<?$lang->display("You are not allowed to upload files.");?>');}" class="menu-option" onfocus="blur()"><?$lang->display("Upload");?></a>
</td>

	<td nowrap><a href="javascript:;" onClick="javascript:MyFilesSearch();" class="menu-option" onfocus="blur()" title="Search in this folder"><?$lang->display("Search");?></a></td>

	<td nowrap  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_new', this.parentNode.offsetLeft+1, '18')" onmouseout="Afian_SubMenu.Out('submenus_new')" class="menu-option-dropdown" onfocus="blur()"><?$lang->display("New");?></a>
</td>

	<td nowrap 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_sort', this.parentNode.offsetLeft+1, '18')" onmouseout="Afian_SubMenu.Out('submenus_sort')" class="menu-option-dropdown" onfocus="blur()"><?$lang->display("Sort");?></a></td>


	<td nowrap 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_select', this.parentNode.offsetLeft+1, '18')" onmouseout="Afian_SubMenu.Out('submenus_select')" class="menu-option-dropdown" onfocus="blur()"><?$lang->display("Select");?></a></td>
	
	<td nowrap  id="MyFilesPasteButton" style="visibility:hidden"><a href="javascript:;" class="menu-option-dropdown" onfocus="blur()" style="color:blue" onclick="MyFilesPaste()"><?$lang->display("Paste");?></a></td>
</tr>
</table>

</td>

	<td align="right" nowrap>
	<table border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td>
	<a href="javascript:;" onClick="javascript:MyFilesStartSlideShow();" class="menu-option" onfocus="blur()" title="<?$lang->display("View an image slideshow of current folder");?>"><?$lang->display("Image Slideshow");?></a>
	<td>
	<tr>
	</table>

</td>
</tr>
</table>

<div id="submenus_new" class="menu-sub">

<?/*if ($permissions['readonly']) {?>
<div class="menu-sub-item-disabled"><a href="javascript:;" onClick="javascript:msg('noperm')"><?$lang->display("folder..");?></a></div>
<?} else {*/?>
<div class="menu-sub-item"><a href="javascript:;" onClick="javascript:if(!AfianUserPermissions['readonly']){showMenu('popmenu-afian_mkdir');document.mkdirForm.dirName.focus();}else{AfianAlert('You are not allowed to create folders.');}"><?$lang->display("folder..");?></a></div>
<?/*}*/?>

<?/*if ($permissions['readonly']) {?>
<div class="menu-sub-item-disabled"><a href="javascript:;" onClick="javascript:msg('noperm')"><?$lang->display("text file..");?></a></div>
<?} else {*/?>
<div class="menu-sub-item"><a href="javascript:;" onClick="javascript:if(!AfianUserPermissions['readonly']){MyFilesEditText(1);}else{AfianAlert('You are not allowed to create files.');}"><?$lang->display("text file..");?></a></div>
<?/*}*/?>

</div>

<div id="submenus_sort" class="menu-sub">
<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_select" class="menu-sub">
<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 class="menu-sub-item"><a href="javascript:;" onClick="javascript:showMenu('popmenu-quickselect')"><?$lang->display("by filename..");?></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 width="70" background="images/interface/gradient-bg.gif" style="background-repeat:repeat-x">
<?
$tpl->btn(
$lang->get("Go Up"), 
"if(AfianHandler.activeTab.basepath != '/'){cd(AfianHandler.activeTab.uponepath);}", 
"70", 
false, 
"onfocus=\"blur()\" title=\"".$lang->get("Browse parent folder")."\""
);
?>
</td>

<td background="images/interface/gradient-bg.gif" width="38" align="center" style="background-repeat:repeat-x"><div onclick="cd(AfianHandler.activeTab.basepath, false, AfianHandler.activeTab.title);//MyFilesSync(AfianHandler.activeTab)" style="margin:3px;width:30px;cursor:pointer;cursor:hand;" onmouseover="this.className='btnBorderOver'" onmouseout="this.className='btnBorder'" onmousedown="this.className='btnBorderOn'" class="btnBorder" title="<?$lang->display("Refresh directory listing");?>"><img src="images/interface/ref.gif" width="18" height="17" border="0" alt="<?$lang->display("Refresh directory listing");?>" style="margin:3px"></div></td>

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

<table border="0" cellspacing="0" cellpadding="0" class="breadCrumbsWrapper">
<tr>
	<td width="3" height="18"><img src="images/interface/breadcrumb-left.gif" width="3" height="18" border="0" alt=""></td>
	<td background="images/interface/breadcrumb-bg.gif" style="background-repeat:repeat-x"><div id="MyFilesBreadcrumbs" style="width:394px;overflow:hidden;white-space:nowrap;" class="breadcrumbs" selectable="1"></div></td>
	<td width="2" height="18"><img src="images/interface/breadcrumb-right.gif" width="2" height="18" border="0" alt=""></td>
</tr>
</table>

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

<a href="javascript:;" onClick="toggleView('icons');changeView('icons');" onFocus="blur()" title="<?$lang->display("Switch to icon view");?>"><img src="images/interface/view-icons.gif" width="22" height="20" alt="<?$lang->display("Switch to icon view");?>" border="0" class="viewModeSelected" id="iconBtn"></a>

<a href="javascript:;" onClick="toggleView('thumbs');changeView('thumbs');" onFocus="blur()" title="<?$lang->display("Switch to thumbnail view");?>"><img src="images/interface/view-thumbs.gif" width="22" height="20" alt="<?$lang->display("Switch to thumbnail view");?>" border="0" class="viewMode" id="thumbBtn"></a>

<a href="javascript:;" onClick="toggleView('list');changeView('list');" onFocus="blur()" title="<?$lang->display("Switch to detail view");?>"><img src="images/interface/view-details.gif" width="22" height="20" alt="<?$lang->display("Switch to detail view");?>" border="0" class="viewMode" id="listBtn"></a>

</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('MyFilesBaseMenu').value;
parent.AfianHandler.insertBaseMenuHTML('MyFilesBaseMenu', ht);
parent.AfianHandler.components['MyFilesBaseMenu'].loaded = true;
parent.buttonize();

parent.document.getElementById('MyFilesBreadcrumbs').innerHTML=parent.getBreadCrumbs('<a href="#" onclick="cd(\'PATH\')">', parent.AfianHandler.activeTab.basepath, '</a>');

new parent.Afian_SubMenu('submenus_new');
new parent.Afian_SubMenu('submenus_sort');
new parent.Afian_SubMenu('submenus_select');
</script>