<?php

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
	
$user =& JFactory::getUser();
$userID = $user->get('id');
$btn_login_text = ($userID == 0) ? JText::_('GK_LOGIN') : JText::_('GK_ACCOUNT');
	
?>

<div id="gk-nav" class="clearfix">
      <div id="gk-mainnav">
            <?php if (($gkmenu = $this->loadMenu())) $gkmenu->genMenu ($this->getParam('startlevel',0), $this->getParam('endlevel',-1)); ?>
      </div>
      <a href="<?php echo $this->baseurl(); ?>index.php?option=com_user&amp;view=login" id="buttonLogin"><?php echo $btn_login_text; ?></a>
      <?php if( $this->countModules('search') ): ?>
      <div id="gk-search">
            <jdoc:include type="modules" name="search" style="none" />
      </div>
      <?php endif; ?>
      <?php if ($this->hasSubmenu() && ($gkmenu = $this->loadMenu())) : ?>
      <div id="gk-subnav" class="clear">
            <?php $gkmenu->genMenu(1); ?>
      </div>
      <?php endif;?>
</div>
<ul class="no-display">
      <li>
            <a href="<?php echo $this->getCurrentURL();?>#gk-content" title="<?php echo JText::_("Skip to content");?>"><?php echo JText::_("Skip to content");?></a>
      </li>
</ul>
