<?php
  include_once($_SERVER['DOCUMENT_ROOT'] . "/admin/inc/sessionStartGeneral.php");
?>
<?php
  $pageTitle = "Thank You";
  $pageDescription = "";
  $pageKeywords = "";
?>
<?php include_once($_SERVER['DOCUMENT_ROOT'] . "/common/header.php") ?>
<script src="/Kickstrap/js/jquery.h5validate.js" type="text/javascript"></script>
<?php include_once($_SERVER['DOCUMENT_ROOT'] . "/common/mainNav.php")?>
    
    
    
    <section class="container">
      <div id="blankBuffer" class="carousel-buffer"></div>
      
      <section class="container" id="mainContent">
        <article class="row">
          <div class="span12" id="contactContainer">
            <h1>Thank you for your comments!</h1>
            <div class="offsetPadLeft">
              <p>Our priority will always be you - our guest. If it is important to you, it is very important to us!</p><br>
              <p>We will do our best to respond quickly to any questions, comments or concerns you might have.</p><br>
              <p>If you have an urgent matter, please contact us at:</p>
              <p id="storeInfo"></p>
            </div>
          </div>
        </article>
        
      </section>
    </section>
      
    
    
  <script>
    function getStoreInfo(){
	  $.ajax({
		type: "GET",
		url: base_site + "lookUpFeatures.php",
		data: "action=storeInfo&website_url=" + web_URL,
		dataType: "jsonp",
		jsonp : "callback",
		jsonpCallback: "jsonpcallback"
	  });
	}
	
	getStoreInfo();
	
	
	function jsonpcallback(theResponse){
		var theHTML = "";
		$.each(theResponse, function(){
		  theHTML += '<div class="aStore" id="store_' + this.store_id + '">'
		  theHTML += '<div class="offsetPadLeft">'
		  theHTML += '<h3>' + this.store_name + '</h3>';
		  theHTML += '<div class="offsetPadLeftx2">'
		  theHTML += '<p><b>Phone:</b> <a href="tel:' + this.store_phone + '">' + this.store_phone.replace(/(\d{3})(\d{3})(\d{4})/, '$1-$2-$3') + '</a></p>';
		  theHTML += '</div>';
		  theHTML += '</div>';
		  theHTML += '</div>';
		});
		
		$("#storeInfo").html(theHTML);
	}
  </script>
<?php include_once($_SERVER['DOCUMENT_ROOT'] . "/common/footer.php"); ?>
  
  
</body>
</html>
