<?php awesome_contact_script(); ?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
	<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="" />
		
		<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
		
		<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">
						
						<?php					
						$frontpage_layout = of_get_option('aw_layout', '');  
						if($frontpage_layout == 'portfolio' ) { 
						?>	
							
							<?php get_template_part('custom', 'navmenu'); ?>
							
						<?php } else{ ?>
						
							<?php get_template_part('navmenu'); ?>
							
						<?php } ?>
							
						</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>