<?php awesome_contact_script(); ?>
<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8" />
		
		<?php if ( (of_get_option('aw_favicon')) !='' ) { ?>
			<link rel="shortcut icon" href="<?php echo of_get_option('aw_favicon'); ?>" type="image/x-icon" />	
		<?php } ?>
		
		<title><?php
			/*
			 * Print the <title> tag based on what is being viewed.
			 */
			global $page, $paged;

			wp_title( '|', true, 'right' );

			// Add the blog name.
			bloginfo( 'name' );

			// Add the blog description for the home/front page.
			$site_description = get_bloginfo( 'description', 'display' );
			if ( $site_description && ( is_home() || is_front_page() ) )
				echo " | $site_description";

			// Add a page number if necessary:
			if ( $paged >= 2 || $page >= 2 )
				echo ' | ' . sprintf( __( 'Page %s', 'awesome' ), max( $paged, $page ) );

			?></title>
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<meta name="description" content="" />
		<meta name="author" content="" />
		<!-- Le fonts -->
		<link href="http://fonts.googleapis.com/css?family=Droid+Serif:400,400italic" rel="stylesheet" type="text/css" />
		<link href="http://fonts.googleapis.com/css?family=Droid+Sans:400,700" rel="stylesheet" type="text/css" />
		<link href="http://fonts.googleapis.com/css?family=Ubuntu" rel="stylesheet" type="text/css" />
		<link href="http://fonts.googleapis.com/css?family=Raleway" rel="stylesheet" type="text/css" />
		<!-- Le styles -->
		
		<link rel="stylesheet" type="text/css" media="all" href="<?php echo get_template_directory_uri(); ?>/stylesheets/jquery.onebyone.css" />
		
		<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
		
		<link rel="stylesheet" type="text/css" media="all" href="<?php echo get_template_directory_uri(); ?>/stylesheets/animate.css" />
		<link rel="stylesheet" type="text/css" media="all" href="<?php echo get_template_directory_uri(); ?>/stylesheets/meanmenu.css" />
		<link rel="stylesheet" type="text/css" media="all" href="<?php echo get_template_directory_uri(); ?>/stylesheets/responsive.css" />
		
		<link id="stylesheet" rel="stylesheet" type="text/css" media="all" href="<?php echo get_template_directory_uri(); ?>/stylesheets/green.css" />		
		
		<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
		<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
		<!--[if lt IE 9]>
		<script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
		<![endif]-->
		<!-- Le fav and touch icons -->
		
		<?php wp_head(); ?>
	</head>
	<body <?php body_class(); ?>>
		<div id="header">
			<div class="header-top">
				<div class="container">
					<div class="row">
						<div class="span5">
						
							<div class="logo">
								<a href="<?php echo esc_url( home_url( '/' ) ); ?>">
									<?php if ( (of_get_option('aw_logo')) !='' ) { ?>
									<img src="<?php echo of_get_option('aw_logo'); ?>" alt="<?php bloginfo('name'); ?>" />
									<?php } else {?>
										<h1><?php bloginfo('name'); ?></h1>
									<?php } ?>
								</a>
							</div>
							<p class="tagline"><?php bloginfo('description'); ?></p>
							
						</div>
						<div class="header-right span4">
						
							<form action="<?php echo esc_url( home_url( '/' ) ); ?>" method="get" id="search-form">
								<p>
									<input type="text" name="s" placeholder="Search" />
								</p>
							</form>
							<?php if ( of_get_option('aw_twitter') || of_get_option('aw_fb') || of_get_option('aw_flickr') || of_get_option('aw_rss')  ) { ?>
								<ul class="social">
								
								<?php if ( (of_get_option('aw_twitter')) !='' ) { ?>
									<li class="twitter">
										<a href="<?php echo of_get_option('aw_twitter', '' ); ?>">Twitter</a>
										</li>
								<?php } ?>			

								<?php if ( (of_get_option('aw_fb')) !='' ) { ?>							
									<li class="facebook">
										<a href="<?php echo of_get_option('aw_fb', '' ); ?>">facebook</a>
									</li>
								<?php } ?>	
								
								<?php if ( (of_get_option('aw_flickr')) !='' ) { ?>	
									<li class="flickr">
										<a href="<?php echo of_get_option('aw_flickr', '' ); ?>">Flickr</a>
									</li>
								<?php } ?>
								
								<?php if ( (of_get_option('aw_rss')) !='' ) { ?>	
									<li class="rss">
										<a href="<?php echo of_get_option('aw_rss', '' ); ?>">RSS</a>
									</li>
								<?php } ?>
								</ul>
							<?php } ?>	
						</div>
						
						<div id="mobilemenu" class="clearfix"></div>
						
					</div>
				</div>
			</div>
			<div class="header-bottom">
			
				<div class="container">
					<div class="row">
						
						<div class="span8 top-nav">
						
							<ul class="nav-menu">
								<li class="<?php if(is_home()) { echo 'current'; }?>">
									<a href="<?php if(is_home()) { echo "#home"; } else { echo esc_url( home_url( '/#home' ) ); } ?>">Home</a>
								</li>
								
								<?php $defineslugabout = of_get_option('aw_sg_about', ''); $show = of_get_option('sh_about', '');  
								if($show == 'show' && $defineslugabout ) { ?>								
								<li><a href="<?php if (is_home()) { ?>#<?php if(of_get_option('aw_sg_about', '')) { ?><?php echo of_get_option('aw_sg_about', ''); } else {?>about<?php } ?><?php } else { ?><?php echo esc_url( home_url('/#')); ?><?php if(of_get_option('aw_sg_about', '')) { ?><?php echo of_get_option('aw_sg_about', ''); } else {?>about<?php } ?><?php } ?>">About Us</a></li>
								<?php } ?>
									
								<?php $defineslug = of_get_option('aw_sg_portfolio', ''); $show = of_get_option('sh_portfolio', '');  
								if($show == 'show' && $defineslug ) { ?>	
								<li><a href="<?php if(is_home()) { ?>#<?php if(of_get_option('aw_sg_portfolio', '')) { ?><?php echo of_get_option('aw_sg_portfolio', ''); } else {?>portfolio<?php } ?><?php } else { ?><?php echo esc_url( home_url('/#')); ?><?php if(of_get_option('aw_sg_portfolio', '')) { ?><?php echo of_get_option('aw_sg_portfolio', ''); } else {?>portfolio<?php } ?><?php } ?>">Portfolio</a></li>
								<?php } ?>
								
								<?php $defineslug = of_get_option('aw_sg_services', ''); $show = of_get_option('sh_servies', '');  
								if($show == 'show' && $defineslug ) { ?>	
								<li><a href="<?php if(is_home()) { ?>#<?php if(of_get_option('aw_sg_services', '')) { ?><?php echo of_get_option('aw_sg_services', ''); } else {?>services<?php } ?><?php } else { ?><?php echo esc_url( home_url('/#') ); ?><?php if(of_get_option('aw_sg_services', '')) { ?><?php echo of_get_option('aw_sg_services', ''); } else {?>services<?php } ?><?php } ?>">Services</a></li>
								<?php } ?>
								
								
								<?php $defineslugblog = of_get_option('aw_sg_blog', ''); $show = of_get_option('sh_blog', '');
								if($show == 'show' && $defineslugblog ) { ?>	
								<li><a href="<?php if(is_home()) { ?>#<?php if(of_get_option('aw_sg_blog', '')) { ?><?php echo of_get_option('aw_sg_blog', ''); } else {?>blog<?php } ?><?php } else { ?><?php echo esc_url( home_url('/#')); ?><?php if(of_get_option('aw_sg_blog', '')) { ?><?php echo of_get_option('aw_sg_blog', ''); } else {?>blog<?php } ?><?php } ?>">Blog</a></li>
								<?php } ?>
								
								<?php $defineslugfeatures = of_get_option('aw_sg_features', ''); $show = of_get_option('sh_features', '');
								if($show == 'show' && $defineslugfeatures ) { ?>	
								<li><a href="<?php if(is_home()) { ?>#<?php if(of_get_option('aw_sg_features', '')) { ?><?php echo of_get_option('aw_sg_features', ''); } else {?>features<?php } ?><?php } else { ?><?php echo esc_url( home_url('/#')); ?><?php if(of_get_option('aw_sg_features', '')) { ?><?php echo of_get_option('aw_sg_features', ''); } else {?>features<?php } ?><?php } ?>">Features</a></li>
								<?php } ?>
								
								<?php $defineslugcontact = of_get_option('aw_sg_contact', ''); $show = of_get_option('sh_contact', '');  
								if($show == 'show' && $defineslugcontact ) { ?>
								<li><a href="<?php if(is_home()) { ?>#<?php if(of_get_option('aw_sg_contact', '')) { ?><?php echo of_get_option('aw_sg_contact', ''); } else {?>contact<?php } ?><?php } else { ?><?php echo esc_url( home_url('/#')); ?><?php if(of_get_option('aw_sg_contact', '')) { ?><?php echo of_get_option('aw_sg_contact', ''); } else {?>contact<?php } ?><?php } ?>">Contact</a></li>
								<?php } ?>
								
							</ul>			
							
						</div>
						<?php if ( of_get_option('aw_mailtop') && of_get_option('aw_phonetop') ) { ?>	
						<ul class="information span4">
							<?php if ( (of_get_option('aw_mailtop')) !='' ) { ?>
							<li class="email"><a href="mailto:<?php echo of_get_option('aw_mailtop', '' ); ?>"><?php echo of_get_option('aw_mailtop', '' ); ?></a></li>
							<?php } ?>
							<?php if ( (of_get_option('aw_phonetop')) !='' ) { ?>	
							<li class="phone"><?php echo of_get_option('aw_phonetop', '' ); ?></li>
							<?php } ?>		
						</ul>
						<?php } ?>							
					</div>
				</div>
			</div>
		</div>