<?php global $access; if($access != 1){ exit("Direct Access not allowed"); } include $querys; ?>

<!DOCTYPE HTML>
<html lang="en">
  
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link href="https://fonts.googleapis.com/css?family=Limelight|Flamenco|Federo|Yesteryear|Josefin Sans|Spinnaker|Sansita One|Handlee|Droid Sans|Oswald:400,300,700" media="screen" rel="stylesheet" type="text/css" />
    <link href="<?php echo PATH; ?>stylesheets/bootstrap.css" media="screen" rel="stylesheet" type="text/css" />
    <link href="<?php echo PATH; ?>stylesheets/bootstrap-responsive.css" media="screen" rel="stylesheet" type="text/css" />
    <link href="<?php echo PATH; ?>stylesheets/common.css" media="screen" rel="stylesheet" type="text/css" />
    <link href="<?php echo PATH; ?>stylesheets/fontawesome.css" media="screen" rel="stylesheet" type="text/css" />
    
    
    <!--Custom CSS FOR EVERY PAGE-->
    <link href="<?php echo PATH; ?>stylesheets/bookingo-hotel-2-0.css" media="screen" rel="stylesheet" type="text/css" />
    
    <!-- Your Custom Stylesheet --> 
	<?php if($settings_css !== '0') { ?> 
		<link href="<?php echo PATH; ?>stylesheets/<?php echo $settings_css; ?>" media="screen" rel="stylesheet" type="text/css" />
	<?php } ?>
    
    <script src="<?php echo PATH; ?>js/jquery.js"></script>
	<script src="<?php echo PATH; ?>js/bootstrap-tab.js"></script>
    <!-- Typekit fonts require an account and a kit containing the fonts used. see https://typekit.com/plans for details. <script type="text/javascript" src="//use.typekit.net/YOUR_KIT_ID.js"></script>
  <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
-->
    <title><?php echo $page_title; ?></title>
	
    <meta name="keywords" content="<?php echo $page_keywords; ?>" />
	<meta name="description" content="<?php echo $page_meta_desc; ?>" />
	
	<!-- Favicons --> 
	<link rel="shortcut icon" href="inc/images/<?php echo $settings_icon; ?>">

<!-- Add fancyBox main JS and CSS files -->
	<script src="//code.jquery.com/jquery-1.8.2.min.js"></script>
    <script src="<?php echo PATH; ?>js/bootstrap-collapse.js"></script>
    <script src="<?php echo PATH; ?>js/bootstrap-dropdown.js"></script>
	<script type="text/javascript">
    var $190 = jQuery.noConflict();
    </script>

	<script type="text/javascript" src="<?php echo PATH; ?>fancybox/lib/jquery.fancybox.js?v=2.1.5"></script>
	<link rel="stylesheet" type="text/css" href="<?php echo PATH; ?>fancybox/lib/jquery.fancybox.css?v=2.1.5" media="screen" />

	<script type='text/javascript' src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.11.0/jquery.validate.min.js"></script>	

	<script type="text/javascript">
		$190(document).ready(function() {
			
			$190('.fancybox').fancybox();
			
			$190('#myform').validate({ // initialize the plugin
				errorClass: 'customErrorClass',
				rules: {
					quality: {
						required: true
					},
					nickname: {
						required: true
					},
					review: {
						required: true
					}
				},
				messages: {
			
			quality: {
				required: "Please select Qualify"
			},
			nickname: {
				required: "Please specify your nickname"
			},
			review: {
				required: "Please add your review"
			}
		  }
			});

		});
	</script>
	
    
	<?php include('inc/plugins/royalslider/gallery.php'); ?>
    
	<!-- jQuery with plugins -->
	<script src="<?php echo PATH; ?>js/jquery-1.4.2.min.js" type="text/javascript"></script> <!-- Could be loaded remotely from Google CDN : <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script> -->
    <script type="text/javascript"> 
      var j = jQuery.noConflict();	
	</script>

<script src="<?php echo PATH; ?>js/jquery.datepick.pack.js" type="text/javascript"></script>

<script type="text/javascript">
	//<![CDATA[
	
	// check-out date >= check-in date
	function customRange(dates) { 
		if (this.id == 'startdate') { 
			j('#enddate').datepick('option', 'minDate', dates[0] || null); 
		} 
		else { 
			j('#startdate').datepick('option', 'maxDate', dates[0] || null); 
		}
		var edt = j('#ed_timestamp').val();
		var sdt = j('#sd_timestamp').val();
		if ((edt > 0) && (sdt > 0)) {
			j('span.nights').text((edt - sdt) / (3600*24) + ' night(s)');
		} else {
			j('span.nights').text('');
		}
	}
	function customRangeChange(dates) { 
		if (this.id == 'startdate_change') { 
			j('#enddate_change').datepick('option', 'minDate', dates[0] || null); 
		} 
		else { 
			j('#startdate_change').datepick('option', 'maxDate',  dates[0] || null); 
		} 
	}
	
	j(document).ready(function(){
		
		// Datepick input fields
		j('#startdate').datepick({
			onSelect: addPeriods, 
			showTrigger: '#trigger',
			altField: '#sd_timestamp', 
			altFormat: j.datepick.TIMESTAMP,
		}).datepick('setDate', new Date());
		j('#addAmount,#addPeriod').change(addPeriods);
		
		function addPeriods() { 
			var date = new Date(j('#startdate').datepick('getDate')[0].getTime()); 
			j.datepick.add(date, parseInt(j('#addAmount').val(), 10), j('#addPeriod').val()); 
			j('#enddate').val(j.datepick.formatDate(date)); 
		}
		
		j('#enddate').datepick({
			onSelect: customRange, 
			showTrigger: '#trigger',
			altField: '#ed_timestamp', 
			altFormat: j.datepick.TIMESTAMP
		});
		
		j('#startdate_change').datepick({
			onSelect: addPeriodsChange, 
			showTrigger: '#trigger',
			altField: '#sd_timestamp_change', 
			altFormat: j.datepick.TIMESTAMP,
		}).datepick('setDate', new Date());
		j('#addAmountChange,#addPeriodChange').change(addPeriodsChange);
		
		function addPeriodsChange() { 
			var date = new Date(j('#startdate_change').datepick('getDate')[0].getTime()); 
			j.datepick.add(date, parseInt(j('#addAmountChange').val(), 10), j('#addPeriodChange').val()); 
			j('#enddate_change').val(j.datepick.formatDate(date)); 
		}
		
		j('#enddate_change').datepick({
			onSelect: customRangeChange, 
			showTrigger: '#trigger',
			altField: '#ed_timestamp_change', 
			altFormat: j.datepick.TIMESTAMP
		}); 	
		
	});
	
	//]]>
	</script>

<!-- Your Custom Texture --> 
<?php if($settings_css == 'project.css') {
		 if($settings_css_texture !== 'none') { ?>
		<style type="text/css">
        .headerbg {
          background-image:url(<?php echo PATH; ?>images/b<?php echo $settings_css_texture; ?>);
          background-repeat:repeat-y;
        }
		.footer {
		  background-image:url(<?php echo PATH; ?>images/b<?php echo $settings_css_texture; ?>);
          background-repeat:repeat-y;
		}
        </style>
	<?php } } else { 
    if($settings_css_texture !== 'none') { ?>
		<style type="text/css">
        .headerbg {
          background-image:url(<?php echo PATH; ?>images/<?php echo $settings_css_texture; ?>);
          background-repeat:repeat-y;
        }
		.footer {
		  background-image:url(<?php echo PATH; ?>images/<?php echo $settings_css_texture; ?>);
          background-repeat:repeat-y;
		}
        </style>
<?php } } ?>

	
<style type="text/css">
#myform .customErrorClass {
clear: both;
color: #f00;
font-size: 11px;
font-weight:normal;
text-transform: none;
}
</style>
  </head>
  
<body>
    <div class="container">
      <div class="headerbg">
        <div class="row-fluid">
          <span class="span4">
            <img src="inc/images/<?php echo $settings_logo; ?>" class="logopage image">
          </span>
          <span class="span4">
            <div class="inlinephone">
              <img src="<?php echo PATH; ?>images/headeriphone.png" class="image">
            </div>
            <div class="inlinephone2">
              <p>CALL US&nbsp;
                <br><?php echo $settings_phone; ?>&nbsp;</p>
            </div>
          </span>
          <span class="span4">
            <div class="socialicons">
              <a href="<?php echo $settings_facebook; ?>"><img src="<?php echo PATH; ?>images/facebookbtn.png" class="image"></a>
              <a href="<?php echo $settings_twitter; ?>"><img src="<?php echo PATH; ?>images/twitter.png" class="image"></a>
              <a href="<?php echo $settings_google; ?>"><img src="<?php echo PATH; ?>images/googleplus.png" class="image"></a>
              &nbsp; &nbsp; <?php include $currency; ?>
            </div>
          </span>
        </div>
      </div>