<?php
$active = " ui-tabs-active ui-state-active";
?>
<div class="ui-tabs ui-widget ui-widget-content ui-corner-all b10">
	<ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all">
		<li class="ui-state-default ui-corner-top<?php echo $_GET['controller'] == 'pjAdminDocuments' && $_GET['action'] == 'pjActionIndex' ? $active : NULL; ?>"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?controller=pjAdminDocuments&amp;action=pjActionIndex"><?php __('menuDocuments'); ?></a></li>
		<li class="ui-state-default ui-corner-top<?php echo $_GET['controller'] == 'pjAdminDocuments' && $_GET['action'] == 'pjActionHistory' ? $active : NULL; ?>"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?controller=pjAdminDocuments&amp;action=pjActionHistory"><?php __('tabChanges'); ?></a></li>
		<?php
		if($controller->isAdmin())
		{ 
			?>
			<li class="ui-state-default ui-corner-top<?php echo $_GET['controller'] == 'pjAdminTemplates' && $_GET['action'] == 'pjActionIndex' ? $active : NULL; ?>"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?controller=pjAdminTemplates&amp;action=pjActionIndex"><?php __('menuTemplates'); ?></a></li>
			<?php
		} 
		?>
	</ul>
</div>