<?php include_once($_SERVER['DOCUMENT_ROOT'] . "/admin/inc/sessionStartGeneral.php") ?>
<?php
  if(isset($_GET['error'])){
    if($_GET['error'] == "noAccess"){
?>
  <div id="noEditError">
        <div class="alert alert-error">
              <a class="close" data-dismiss="alert" href="#">x</a>You do not have sufficient privileges to access the administration area of this website. Please contact the web administrator if you need further assistance.
        </div>
  </div>
<?php
    }else if($_GET['error'] == "noPage"){
?>
  <div id="noPageError">
      <div class="alert alert-error">
            <a class="close" data-dismiss="alert" href="#">x</a><br>The requested page does not exist in our site. If you believe it does exist, please find it using the navigation or links at the bottom of the page.<br>
      </div>
    </div>
<?php
    }
  }
  
  if(isset($_GET['loc'])){
    $theMissingFile = $_SERVER['QUERY_STRING'];
    include($_SERVER['DOCUMENT_ROOT'] . "/admin/inc/missingFiles.php");
    header("Location: https://" . $_SERVER['SERVER_NAME'] . "?error=noPage");
  }
?>
<?php
  $pageTitle = "Home";
  $pageDescription = "At Valley Market Thayne we have everything you need, and expect, from your local grocery store in the Thayne, Wyoming area";
  $pageKeywords = "Thayne, Wyoming, grocery, store, market, fresh foods";
?>
<?php include_once($_SERVER['DOCUMENT_ROOT'] . "/common/header.php") ?>
<?php include_once($_SERVER['DOCUMENT_ROOT'] . "/common/mainNav.php")?>
    
    
    
    <section class="container">
      <div id="blankBuffer" class="carousel-buffer"></div>
      
      <section class="container" id="mainContent">
        <?php include("includes/hotDealHome.php"); ?>
        <article class="row">
          <div class="span8 leftSide">
            <div class="paddingHelpLeft">
              <?php include("includes/carousel.php"); ?>
              <?php
                $storeDeals = "home";
                $priceWarning = false;
                //include("includes/adItems.php");
              ?>
              <?php include("includes/wp-posts.php"); ?>
              <?php include("includes/departments.php"); ?>
            </div>
          </div><!--end left side div-->
            
          <div class="span4 rightSide">
            <div class="paddingHelpRight">
              <!-- <?php include("includes/dailyLunch.php"); ?>
              <?php include("includes/featuredRecipe.php"); ?>
              <?php include("includes/facebookWall.php"); ?> -->
              <?php include("includes/storeInformation.php"); ?>
              <?php //include($_SERVER['DOCUMENT_ROOT'] . "/includes/emailCapture.php"); ?>
              
              <!--
              <div class="specialContain">
                <h4 class="header">Our Nutrition Offerings</h4>
                <div class="specialOffset">
                  <p>We offer many healthly products such as whole grains, cereals, real fruit juice &amp; jams, vitamin packed candy bars,  natural cooking oils, soy milk, variety of nutritious rice, fat &amp; sugar free salad dressings and much more.  Don't forget to shop our Gluten-Free section. Most of our food products are preservative free, with no artificial coloring, chemical additives.  Be healthy eat healthy.</p>
                </div>
              </div>
              -->
            </div>
          </div><!-- end right side div -->
        </article>
        
      </section>
    </section>
      
    
    
    
    <?php include_once($_SERVER['DOCUMENT_ROOT'] . "/common/footer.php"); ?>
  <script>
   
    $("#rightSidebarCollapse h4").bind("click", function(){
      $this = $(this).children("i");
      $siblings = $(this).parents(".accordion-group").siblings();
      $("h4", $siblings).children("i").removeClass("icon-minus-sign").addClass("icon-plus-sign");
      if($this.hasClass("icon-plus-sign")){
        $this.removeClass("icon-plus-sign").addClass("icon-minus-sign");
      }else{
        $this.removeClass("icon-minus-sign").addClass("icon-plus-sign");
      }
    });
   
   $(".weeklySpecial:last-child").css("margin-right", "0");
   
  </script>
  
</body>
</html>
