<!DOCTYPE html>
<!--[if IE 8]> 	<html class="no-js lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" <?php language_attributes(); ?>> <!--<![endif]-->

<head>
	<meta charset="utf-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

<script type="text/javascript">
<!--
if (screen.width <= 699) {
document.location = "http://www.flybusinesscheap.com/mobile/";
}
//-->
</script>
<title><?php wp_title(); ?></title>  

	<link rel="alternate" type="application/rss+xml" title="RSS2.0" href="<?php bloginfo('rss2_url'); ?>" />
	<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
        
   	<?php $favicon = weblusive_get_option('favicon'); if(!empty($favicon)):?>
		<link rel="shortcut icon" href="<?php echo $favicon ?>" /> 
 	<?php endif?>
	
	<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
	<!--[if lt IE 9]>
		<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
		<link rel="stylesheet" href="<?php echo get_template_directory_uri() ?>/css/ie8.css" type="text/css" media="screen">
	<![endif]-->
	<?php 
		if(weblusive_get_option('header_code')) echo  htmlspecialchars_decode(weblusive_get_option('header_code'));
		$class = weblusive_get_option('layout_type')=='boxed' ? 'brown-bg' : ''; ?>
	<?php wp_head(); ?>

<meta name="google-site-verification" content="rW8QnzxRFpjyml_hFroSWwPEfstvHV6PwDXbn1KoDX8" />

<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-37524958-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
</head>
<body <?php body_class($class)?>>

<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>


<?php if (!is_page_template('under-construction.php')):?>	
    <?php if(weblusive_get_option('layout_type')=='boxed'):?><div id="boxed"><?php endif?>
	<div class="navbar-fixed-top">
		<header <?php if(!is_page_template('homepage-template.php')):?> id="header"<?php endif; ?> >
			<div class="subheader clearfix">
				<?php if (weblusive_get_option('topbar')):?>
					<div class="inner-subheader">
						<div class="phone">
							<?php $topcontent = weblusive_get_option('topbar_text'); echo (empty($topcontent)) ? '' :  htmlspecialchars_decode(do_shortcode($topcontent));?>
						</div>
						<div class="subheader2">
							<?php
							wp_nav_menu(array( 
								'theme_location' => 'top_nav',
								'menu' =>'top_nav', 
								'container'=>'', 
								'depth' => 1, 
								'menu_class' => 'inline-list alc_top_menu'
								));
							?>  
						</div>
					</div>
				<?php endif?>
			</div>
			<div class="row2">
				<div class="upper-header">
					<!-- Logo -->
					<div class="logo">
						<?php 
							$logo = weblusive_get_option('logo'); 
							$logosettings =  weblusive_get_option('logo_setting');
						?>
						<a href="<?php echo home_url() ?>" id="logo" class="brand">
							<?php if($logosettings == 'logo' && !empty($logo)):?>
								<img src="<?php echo $logo ?>" alt="<?php echo get_bloginfo('name')?>" id="logo-image" />
							<?php else:?>
								<?php echo get_bloginfo('name') ?>
							<?php endif?>
						</a>		
					</div>
					<!-- Main navigation -->
					<nav id="nav">
						<?php 
						if(function_exists('wp_nav_menu')):
						wp_nav_menu( array( 
							'theme_location' => 'primary_nav',
							'menu' =>'primary_nav', 
							'container'=>'', 
							'depth' => 4, 
							'menu_class' => 'sf-menu clearfix'
						)); 
						else:?>
							<ul class="sf-menu top-level-menu"><?php wp_list_pages('title_li=&depth=4'); ?></ul>
						<?php endif; ?>	
					</nav>
					<!-- Navigation --> 
					<div class="clear"></div>
				</div>
			</div>	
		</header>
	</div>
 <?php endif;?>