</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-26', 'thaynevalleymarket.com');
    ga('send', 'pageview');
    </script>

    <?php require_once($_SERVER['DOCUMENT_ROOT'] . '/common/constantsJS.php'); ?>

    <style>
    @media only screen and (min-width: 768px) {

        ul.nav {
            margin-right: 3px;
            font-size: 13px;
        }

        li {
            margin-right: 1px;
            font-size: 13px;
            margin-left: 1px;
            /* text-align: center; */
        }

        #navLogout {
            display: none;
        }

        #loggedInUL {
            background-color: white !important;
        }


    }


    @media only screen and (max-width: 768px) {

        #loggedInContainerMobile,
        #loggedOutContainerMobile {
            position: absolute !important;
            top: 0 !important;
            /* left: -50px; */
            bottom: 10px !important;
            padding: 10px 6% !important;
            /* background: #006993  !important; */
            color: #000000 !important;
            width: 100% !important;
            height: 20px !important;
            display: block !important;
        }

        #loggedInContainerMobile a,
        #loggedOutContainerMobile a {
            color: #000000;
            display: inline;
            margin-left: 3%;
        }

        #loggedInContainerMobile br,
        #loggedOutContainerMobile br {
            display: none;
        }

        #loggedOutContainerMobile {
            padding: 0;
        }

        #loggedOutContainerMobile a {
            margin: 0;
            color: #fff;
            padding-top: 9px;
            padding-bottom: 10px;
        }

        #loggedOutContainerMobile a.btn {
            -webkit-border-radius: 0;
            -moz-border-radius: 0;
            border-radius: 0;
        }

        div.container {
            padding-top: 40px !important;
        }

    }

    .dropdown-menu {
        /* background-color: white !important; */
    }
    </style>

    <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/logo1.png" class="logo" width="210"
                                    alt="Valley Market Thayne"></a>

                            <!--<div id="weeklyAdBtn"><a href="/weeklyAd"><img src="/Kickstrap/img/weeklyAdBTN.png" width=86%></a></div>-->
                            <div class="nav-collapse collapse clearfix">
                                <ul class="nav">
                                    <li><a href="/weeklyAd"><span>Weekly Ad</span></a></li>
                                    <!-- <li><a href="/about-us.php"><span>Location</span></a></li> -->
                                    <li class="dropdown">
                                        <a href="#">Rewards<i class="icon-caret-down"></i></a>
                                        <ul class="dropdown-menu">
                                            <li><a href="/about-rewards.php">About Rewards</a></li>
                                            <!-- <li><a href="/about-points.php">Learn more ... Groceries</a></li>
                                            <li><a href="/about-fuel.php">Learn more ... Fuel</a></li> -->
                                            <li><a href="/rewards.php">My Rewards</a></li>
                                            <li><a href="/account.php">My Account</a></li>
                                            <!-- <li><a href="/includes/customer-receipts.php">My Receipts</a></li> -->
                                        </ul>
                                    </li>
                                    <li><a href="/coupons.php"><span>Coupons</span></a></li>

                                    <li class="dropdown">
                                        <a href="/community.php">Community<i class="icon-caret-down"></i></a>
                                        <ul class="dropdown-menu">
                                            <li><a href="/about-us.php"><span>About Us</span></a></li>
                                            <!--<li><a href="/our-team"><span>Our Team</span></a></li>-->
                                            <li><a href="/contactUs.php"><span>Contact Us</span></a></li>
                                            <li><a href="/employment.php"><span>Employment</span></a></li>
                                            <!-- <li><a href="/sg/facts-up-front"><span>Facts Upfront</span></a></li> -->
                                            <li class="dropdown-submenu">
                                                <a href="/links.php">Favorite Links</a>
                                                <ul class="dropdown-menu">
                                                    <li><a href="/sg/facts-up-front"><span>Facts Upfront</span></a></li>
                                                </ul>
                                            </li>
                                        </ul>
                                    </li>

                                    <!--<li><a href="#"><i class="icon-lemon"></i> <span>About Us</span></a></li>-->
                                    <li class="dropdown"><a href="#"><span>In Store</span> <i
                                                class="icon-caret-down"></i></a>
                                        <ul class="dropdown-menu">
                                            <?php include($_SERVER['DOCUMENT_ROOT'] . '/admin/inc/inStoreNav.php'); ?>
                                        </ul>
                                    </li>
                                    <li><a href="/special-order"><span>Item Request</span></a></li>
                                    <li><a href="https://thaynevalleymarketdelivers.com"><span>Online
                                                Shopping</span></a>
                                    </li>

                                    <!--       <li class="dropdown">
                                        <a href="/departments">Fresh Foods <i class="icon-caret-down"></i></a>
                                        <ul class="dropdown-menu">
                                            <li><a href="/departments/meat">Meat</a></li>
                                            <li><a href="/departments/produce">Produce</a></li>
                                            <li><a href="/departments/bakery">Bakery</a></li>
                                            <li><a href="/departments/deli">Deli</a></li>
                                            <li><a href="/departments/dairy">Dairy</a></li>
                                        </ul>
                                    </li>
                                    <li class="dropdown"><a href="#"><span>Resources</span> <i
                                                class="icon-caret-down"></i></a>
                                        <ul class="dropdown-menu">
                                           <li><a href="/lunchSpecials"><span>Lunch Specials</span></a></li>
                                            <li><a href="http://allrecipes.com/"><span>Recipes</span></a></li>
                                            <li><a href="/produceGlossary"><span>Produce Glossary</span></a></li>
                                            <li><a href="http://coupons.com"><span>Coupons</span></a></li>
                                            <li><a href="/links"><span>Favorite Links</span></a></li>
                                        </ul>
                                    </li> -->

                                    <li class="visible-phone"><a href="/index.php#rightSidebarCollapse"><span>Store
                                                Information</span></a></li>

                                    <?php
                  //echo $_SESSION['LoggedIn'];
                  if($loggedIn == true){
                ?>
                                    <li><a id="navLogout" name="navLogout" href="/admin/logout.php">Logout</a></li>
                                    <?php
                  }
                ?>
                                    <!--<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 nav-buttons">

                                <!--          <li><a href="/special-order" class="btn btn-primary"><i class="icon-shopping-cart"></i>
                                        <span>Special Order Form</span></a></li>
                                <li><a href="https://thaynevalleymarketdelivers.com" class="btn btn-primary"
                                        target="_blank"><i class="icon-shopping-cart"></i> <span>Home
                                            Delivery</span></a></li>
                                <li><a href="/weeklyAd" class="btn btn-primary"><i class="icon-shopping-cart"></i>
                                        <span>Weekly Ad</span></a></li> -->


                                <!--<ul class="nav pull-right visible-desktop">-->
                                <?php
	  if(isset($loggedIn) && $loggedIn === true){
	?>
                                <li class="dropdown" id="loggedInDropdown">
                                    <a href="#"><span style="color:#00008B;">Hello,
                                            <?php echo $_SESSION['Username']; ?></span> <i class="icon-caret-down"
                                            style="color:#00008B;"></i></a>
                                    <ul class="dropdown-menu pull-right" id="loggedInUL">
                                        <?php
	if(isset($_SESSION['MyStoreAFS']['store_name']) && isset($purposefullyFalse)){
	?>
                                        <li>
                                            My Store:<?php echo $_SESSION['MyStoreAFS']['store_name']; ?>
                                        </li>
                                        <?php
	}
	?>
                                        <li><a href="/account.php" style="color:#00008B;">My Account</a></li>
                                        <li><a href="/rewards.php" style="color:#00008B;">My Rewards</a></li>
                                        <li><a href="/admin/logout.php" style="color:#00008B;">Log Out</a></li>
                                    </ul>
                                </li>
                                <?php
	}else {
	?>
                                <div id="loggedOutContainer" class="pull-right visible-desktop"
                                    style="margin-left:20px;">
                                    <a href="#loginModal" data-toggle="modal" role="button">Log In</a>&nbsp; | &nbsp;<a
                                        href="/register.php">Register</a>
                                </div>

                                <?php
	}
	?>
                                <!--</ul>-->

                            </ul>

                        </div>
                    </div>
                </nav>
                <div class="woodBG">&nbsp;</div>