<nav class="navbar navbar-default" role="navigation">
  <div class="container-fluid">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
    </div>

    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
      <ul class="nav navbar-nav">
        <li class="dropdown"><a href="main.php">Home</a></li>
        <? if ($_SESSION['user_admin']==1){ ?>
         <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown">System Administrator<span class="caret"></span></a>
          <ul class="dropdown-menu" role="menu">
			<li><a href="topicalsummary.php">Summary</a></li>
            <li><a href="user_admin.php">Users Administration</a></li>
            <li><a href="system_options.php">System Options</a></li>
          </ul>
        </li>   
        <?}?>
		<li><a href="password.php">Change Password</a></li>
        <ul class="nav navbar-nav navbar-right">
            <li><a href="logout.php">Logout</a></li>
        </ul>
      </ul>
    </div><!-- /.navbar-collapse -->
  </div><!-- /.container-fluid -->
</nav>