
<?php
 function about(){
    if(isset($_GET["sect"])){
        $sect = $_GET["sect"];
        return $sect;
    }
    else
    {
        $sect = 1;
        return $sect;
    }
 }
?>

<header class="site-navbar js-sticky-header  site-navbar-target" role="banner">
      <div class="container">
        <div class="row align-items-center">
          
          <div class="col-6 col-xl-2">
            <h1 class="mb-0 site-logo"><a href="index.php" class="h2 mb-0"><span class="text-primary">
              <img class="main-logo" src="images/logo-invert.png" width="100" alt="">
            </span> </a></h1>
          </div>

          <div class="col-12 col-md-10 d-none d-xl-block" >
            <nav class="site-navigation position-relative text-right" role="navigation" >

              <ul class="site-menu main-menu js-clone-nav mr-auto d-none d-lg-block">
                <li><a href="index.php" class="<?php if ($page == 1){echo "active"; }?> ">Home</a></li>
                <li class="has-children">
                  <a href="about.php" class="<?php if ($page == 2){echo "active"; }?>">About Us</a>
                  <ul class="dropdown">
                    <li><a href="about.php" class="<?php if ($page == 2 && about() == 1){echo "active"; }?>">Our Company</a></li>
                    <li><a href="about.php?sect=2" class="<?php if ($page == 2 && about() == 2){echo "active"; }?>">Mission statement </a></li>
                    <!-- <li><a href="about.php?sect=3" class="<?php if ($page == 2 && about() == 3){echo "active"; }?>">Owner & Branches</a></li> -->
                  </ul>
                </li>
                
                
                <li><a href="services.php" class="<?php if ($page == 3){echo "active"; }?>">Products & Services</a></li>

                <li class="has-children">
                  <a href="gallery.php" class="<?php if ($page > 5 && $page < 9 ){echo "active"; }?>">Media</a>
                  <ul class="dropdown">
                    <li><a href="gallery.php" class="<?php if ($page == 7){echo "active"; }?>">Gallery </a></li>
                    <li><a href="event.php" class="<?php if ($page == 8){echo "active"; }?>">Events</a></li>
                  </ul>
                </li>

                <li><a href="contact.php" class="<?php if ($page == 4){echo "active"; }?>">Contact</a></li>
              
              </ul>
            </nav>
          </div>


          <div class="col-6 d-inline-block d-xl-none ml-md-0 py-3" style="position: relative; top: 3px;"><a href="#" class="site-menu-toggle js-menu-toggle float-right"><span class="icon-menu h3"></span></a></div>

        </div>
      </div>
      
    </header>