</head>
<body>

<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-44916008-6', 'blairsmarket.com');
  ga('send', 'pageview');

</script>

<?php require_once($_SERVER['DOCUMENT_ROOT'] . '/common/constantsJS.php'); ?>
<?php
  if($pageTitle == "Home"){
    $theClass = "home";
  }else{
    $theClass = "main";
  }
?>

<div id="contentWrapper">
  <div id="sf-wrapper"> <!-- Sticky Footer Wrapper -->
    <!-- Prompt IE 6/7 users to install Chrome Frame. Remove this if you support IE 7-.
         chromium.org/developers/how-tos/chrome-frame-getting-started -->
    <!--[if lt IE 8]><p class=chromeframe>Your browser is <em>ancient!</em> <a href="http://browsehappy.com/">Upgrade to a different browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">install Google Chrome Frame</a> to experience this site.</p><![endif]-->
  <!--! END KICKSTRAP HEADER --> 
  
  
  
  <div id="bodyPadding">
    
    <nav class="navbar">
      <div class="navbar-inner">
        <div class="container">
          <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
          </a>
          <a class="brand" href="/"><img src="/Kickstrap/img/logo.png" class="logo" width="140" alt="Blair's Market"></a>
          <div class="nav-collapse collapse clearfix">
              <ul class="nav <?php echo $theClass; ?>">
                <!--<li><a href="#"><i class="icon-lemon"></i> <span>About Us</span></a></li>-->
                <li class="dropdown"><a href="#"><span>Savings</span> <i class="icon-caret-down"></i></a>
                  <ul class="dropdown-menu">
                    <li><a href="/weeklyAd"><span>Weekly Ad</span></a></li>
                    <li><a href="/coupons"><span>Coupons</span></a></li>
                  </ul>
                </li>
                <li class="dropdown">
                  <a href="/all"><span>Locations</span> <i class="icon-caret-down"></i></a>
                  <ul class="dropdown-menu">
                    <!-- <li><a href="/greybull">Greybull</a></li> -->
					<li><a href="/powell">Powell</a></li>
                    <li><a href="/worland">Worland</a></li>
                  </ul>
                </li>
                <li class="dropdown"><a href="#"><span>In Store</span> <i class="icon-caret-down"></i></a>
                  <ul class="dropdown-menu">
                    <li class="dropdown-submenu">
                      <a href="/departments">Departments</a>
                      <ul class="dropdown-menu">
                        <li><a href="/departments/produce">Produce</a></li>
                        <li><a href="/departments/meat">Meat</a></li>
                        <li><a href="/departments/bakery">Bakery</a></li>
                        <li><a href="/departments/deli">Deli</a></li>
                      </ul>
                    </li>
                    <li class="divider"></li>
                    <?php include($_SERVER['DOCUMENT_ROOT'] . '/admin/inc/inStoreNav.php'); ?>
                  </ul>
                </li>
                <!--<li><a href="/lunchSpecials"><i class="icon-calendar"></i> <span>Lunch Specials</span></a></li>-->
                <li class="dropdown"><a href="/recipes"><span>Resources</span> <i class="icon-caret-down"></i></a>
                  <ul class="dropdown-menu">
                    <li><a href="/recipes"><span>Recipes</span></a></li>
                    <li><a href="/produceGlossary"><span>Produce Glossary</span></a></li>
                    <li><a href="/shoppingList"><span>Shopping List</span></a></li>
                  </ul>
                </li>
                
                <li><a href="/employment">Employment</a></li>
                <li><a href="/contactUs">Contact Us</a></li>
                <li class="dropdown"><a href="/plus">PLUS <i class="icon-caret-down"></i></a>
                  <ul class="dropdown-menu">
                    <li><a href="/about-plus"><span>About</span></a></li>
                    <li><a href="/plus"><span>My Plus Rewards</span></a></li>
					        </ul>
                </li>
                <!--
                <li class="dropdown"><a href="/rewards">Rewards <i class="icon-caret-down"></i></a>
                  <ul class="dropdown-menu">
                    <li><a href="/rewards/about"><span>Learn More</span></a></li>
                    <li><a href="/rewards"><span>Login</span></a></li>
                  </ul>
                </li>
                -->
                
                <?php
                  //echo $_SESSION['LoggedIn'];
                  if($loggedIn == true){
                ?>
                  <li><a href="/admin/logout.php">Logout</a></li>
                <?php
                  }
                ?>
                <li class="visible-phone"><a href="/weeklyAd"><span>Weekly Ad</span></a></li>
                <li class="visible-phone"><a href="/index.php#rightSidebarCollapse"><span>Store Information</span></a></li>
                
               
                <!--<li class=""><a href="#"><i class="icon-asterisk"></i> <span>Serving You</span></a></li>
                <li class=""><a href="#"><i class="icon-home"></i> <span>Community</span></a></li>-->
              </ul>
          </div>
          <ul class="nav pull-right hidden-phone">
            <ul class="nav loggedNav">
              <?php
                if(isset($loggedIn) && $loggedIn === true){
              ?>
                <li class="dropdown" id="loggedInDropdown">
                  <a href="#"><span>Hello, <?php echo $_SESSION['Username']; ?></span> <i class="icon-caret-down"></i></a>
                  <ul class="dropdown-menu pull-right">
                    <?php
                      if(isset($_SESSION['MyStoreAFS']['store_name']) && isset($purposefullyFalse)){
                    ?>
                      <li>My Store:<?php echo $_SESSION['MyStoreAFS']['store_name']; ?></li>
                    <?php
                      }
                    ?>
                    <li><a href="/account">My Account</a></li>
                    <li><a href="/rewards">My Rewards</a></li>
                    <li><a href="/admin/logout.php">Log Out</a></li>
                  </ul>
                </li>
              <?php
                }else {
              ?>
                <div id="loggedOutContainer">
                  <a href="#loginModal" data-toggle="modal" role="button">Log In</a>&nbsp; | &nbsp;<a href="/register">Register</a>
                </div>
              <?php
                }
              ?>
            </ul>
            <!--
            <li><a href="/accounts/login/"><i class="icon-key"></i> Login</a></li>
            -->
          </ul>
          
        </div>
      </div>
    </nav>
