<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head profile="http://gmpg.org/xfn/11">

<title><?php woo_title(); ?></title>
<?php woo_meta(); ?>

<link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" media="screen" />
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php if ( get_option('woo_feedburner_url') <> "" ) { echo get_option('woo_feedburner_url'); } else { echo get_bloginfo_rss('rss2_url'); } ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

	<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('template_directory'); ?>/css/reset.css" />
	<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('template_directory'); ?>/css/960.css" />
	<link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" media="screen" />
	
	<!--[if IE 7]>
		<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('template_directory'); ?>/ie7.css" />
	<![endif]-->

	<!--[if IE 6]>
		<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('template_directory'); ?>/ie6.css" />
		<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/includes/js/pngfix.js"></script>
		<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/includes/js/menu.js"></script>
	<![endif]-->

<?php if ( is_single() ) wp_enqueue_script( 'comment-reply' ); ?>
<?php wp_head(); ?>
<?php woo_head(); ?>        
</head>

<body <?php body_class('custom'); ?>>

<div id="container" class="container_16">

	<div id="topbar">
		<div id="nav" class="grid_10 omega">
			<?php
			if ( function_exists('has_nav_menu') && has_nav_menu('primary-menu') ) {
				wp_nav_menu( array( 'depth' => 6, 'sort_column' => 'menu_order', 'container' => 'ul', 'menu_id' => 'pagenav', 'theme_location' => 'primary-menu' ) );
			} else {
			?>
			<ul id="pagenav">
				<?php 
        		if ( get_option('woo_custom_nav_menu') == 'true' ) {
        			if ( function_exists('woo_custom_navigation_output') )
						woo_custom_navigation_output('depth=6');
									
				} else { ?>
				<li class="<?php if ( is_home() ) { echo 'current_page_item'; } ?>"><a href="<?php bloginfo('url'); ?>" title="<?php bloginfo('name'); ?>"><span class="left"></span><?php _e('Home',woothemes); ?><span class="right"></span></a></li>

				 <?php if ( get_option('woo_blog_subnavigation') == 'true' ) { wp_list_categories('hide_empty=true&title_li=<a href="#" title="Blog Categories">Categories</a>'); } ?>
		
				<?php $exclude = woo_exclude_pages(); ?>
				<?php wp_list_pages('sort_column=menu_order&depth=0&title_li=&exclude=' . $exclude . ',' . get_option( 'woo_exclude_pages_main' ) ); ?>
				<?php } ?>
				<li class="rss"><a href="<?php if ( get_option('woo_feedburner_url') <> "" ) { echo get_option('woo_feedburner_url'); } else { echo get_bloginfo_rss('rss2_url'); } ?>" title="<?php _e('RSS Subscription',woothemes); ?>"><?php _e('Subscribe RSS',woothemes); ?></a></li>
				
			</ul>
			<?php } ?>
		</div><!-- /nav -->
		
                <?php /*<div id="search">
		
			<form method="get" id="searchform" action="<?php bloginfo('url'); ?>/" class="search-form">
			
				<label for="search"><?php _e('Search',woothemes); ?></label>	<input type="text" value="<?php _e('Enter search keywords &amp; enter...',woothemes); ?>" name="s" id="s" class="field" onfocus="if (this.value == '<?php _e('Enter search keywords &amp; enter...',woothemes); ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e('Enter search keywords &amp; enter...',woothemes); ?>';}" />
			
			</form>
		
		</div><!-- /search --> */ ?>
                
	
	</div><!-- /topbar -->
	
	<div id="header" class="container_16">
	
		<div id="logo">
		
			<h1><a href="<?php bloginfo('url'); ?>" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></a></h1>
			<h2><?php bloginfo('description'); ?></h2>
			
			<a href="<?php bloginfo('url'); ?>" title="<?php bloginfo('name'); ?>"><img class="logo" src="<?php if ( get_option('woo_logo') <> "" ) { echo get_option( 'woo_logo' ); } else { bloginfo('template_directory'); ?>/img/logo.png<?php } ?>" alt="<?php bloginfo('name'); ?>" /></a>
			
		</div><!-- /logo -->
		
		<?php if ( get_option( 'woo_header_layout' ) <> "none" and get_option( 'woo_header_layout' ) <> "" ) { include_once( TEMPLATEPATH . '/includes/' . get_option( 'woo_header_layout'  ) ); } ?>
	</div><!-- /header -->
        <div class="clear"></div>		
