<!DOCTYPE html>
<!--[if IE 7]>
<html class="ie ie7" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 8]>
<html class="ie ie8" <?php language_attributes(); ?>>
<![endif]-->
<!--[if !(IE 7) | !(IE 8) ]><!-->
<html <?php language_attributes(); ?>>
<!--<![endif]-->
<head>

	<meta charset="<?php bloginfo('charset'); ?>" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
	<title><?php wp_title(); ?></title>
	<link rel="profile" href="http://gmpg.org/xfn/11">
	<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />	
	
	<?php wp_head(); ?>
		
	<!--[if lt IE 9]>
		<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
	<![endif]-->	
</head>

<body <?php body_class(); ?>>
<header>

	<section id="header">
	
		<div id="logo" style="padding:<?php echo of_get_option('of_qs_padding_top'); ?>px 0 <?php echo of_get_option('of_qs_padding_bottom'); ?>px <?php echo of_get_option('of_qs_padding_left'); ?>px;">
			
			<?php if (of_get_option('of_logo_type') == 'image') { ?>
				
				<a href="<?php echo esc_url(home_url('/')); ?>" title="<?php bloginfo('description'); ?>">
					<img src="<?php echo of_get_option('of_qs_logo'); ?>" alt="<?php bloginfo('name'); ?>" title="<?php bloginfo('name'); ?>" />
				</a>
				
			<?php } else { ?>
				
				<h1><a href="<?php echo esc_url(home_url('/')); ?>" title="<?php bloginfo('name'); ?>">
					<?php bloginfo('name'); ?>
					<span><?php bloginfo('description'); ?></span>
				</a></h1>
				
			<?php } ?>
			
		</div><!-- /logo -->
				
		<div id="banner">		
			<?php gabfire_categoryad('header_468x60'); ?>
		</div><!-- /banner -->
		
		<div class="clear"></div>
		
		<nav>
			<ul class="mainnav">
			<?php
				if ( has_nav_menu( 'primary' ) ) {
					wp_nav_menu( array('theme_location' => 'primary', 'container' => false, 'items_wrap' => '%3$s'));
				} else { ?>
					<li <?php if(is_home() ) { ?>class="current-cat"<?php } ?>><a href="<?php echo home_url('/'); ?>" title="<?php bloginfo('description'); ?>"><?php _e('Home','gabfire'); ?></a></li>
					<?php 
					wp_list_categories('orderby='. of_get_option('of_order_cats') .'&order='. of_get_option('of_sort_cats') .'&title_li=&exclude='. of_get_option('of_ex_cats'));
					wp_list_pages('sort_column=menu_order&title_li=&exclude='. of_get_option('of_ex_pages'));
				} ?>
			</ul>
		</nav><!-- /menu -->
	</section><!-- /header -->
	
</header>

