<!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 if(is_home()) { echo get_bloginfo('name'); if(get_bloginfo('description')){ echo ' &raquo; ' . get_bloginfo('description');}} else { bloginfo('name'); wp_title();} ?>
    </title>
    
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    <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'); ?>" />
       
    <!--[if IE 6]>
    <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(); ?>

</head>

<body class="custom">

<div id="wrap">
    <div id="top">
    
    	<div id="top-inner">
            
        <div id="header">
        
           <?php if(get_option('woo_ad_top') == 'true') { ?>
            <div id="topad">
                <?php include (TEMPLATEPATH . "/ads/top_ad.php"); ?>
            </div><!-- /#topad -->
            <?php } ?>
        
        
        	<div id="logo">
        	<a href="<?php echo get_option('home'); ?>/" title="<?php bloginfo('name'); ?>"><img src="<?php if ( get_option('woo_logo') <> "" ) {  echo get_option('woo_logo'); } else { ?><?php bloginfo('stylesheet_directory'); ?>/<?php woo_style_path(); ?>/logo.png<?php } ?>" alt="" /></a>
            <h1><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1>
            </div>
            
        </div>
        
        <div class="fix"></div>
        
        <!-- Page Nav Starts -->
        <div id="top-nav" class="wrap">
            <div class="fl">
                <ul id="nav">
                    <?php 
					if ( get_option('woo_custom_nav_menu') == 'true' ) {
        				if ( function_exists('woo_custom_navigation_output') )
							woo_custom_navigation_output('frontend');
							
					}
					else { 
					
						$media_tag = get_option('woo_media_tag');
						if (!is_home()) { $highlight = "page_item"; } else {$highlight = "page_item current_page_item"; }
						if (is_tag($media_tag)) { $tag = "page_item current_page_item"; } else {$tag = "page_item"; } 
						?>
						<li class="<?php echo $highlight; ?>"><a href="<?php bloginfo('url'); ?>">Home</a></li>
						<?php
						
						if(get_option('woo_nav_media_tag') == 'true' && !empty($media_tag)){
							?>
							<li class="<?php echo $tag; ?>"><a href="<?php echo get_term_link($media_tag,'post_tag'); ?>"><?php echo $media_tag; ?></a></li>
							<?php
						}
						 
						if (get_option('woo_cat_menu') == 'true') 
							wp_list_categories('sort_column=menu_order&depth=3&title_li=&exclude='.get_option('woo_nav_exclude')); 
						else
							wp_list_pages('sort_column=menu_order&depth=3&title_li=&exclude='.get_option('woo_nav_exclude'));
						} 
					?>
                </ul>
            </div>
            <div class="fr">
                <div class="header-search">
                   <?php include( TEMPLATEPATH . '/searchform-header.php' ); ?>
                </div>
            </div>
        </div>
        <!-- Page Nav Ends -->

    </div>
    </div>
    
