<!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" <?php language_attributes() ?>>
<head>
<meta http-equiv="Content-Type" content="<?php get_template_directory_uri('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<title><?php if (is_home()) {
	echo bloginfo('name');
} elseif (is_category()) {
	echo __('Category &raquo; ', 'blank'); wp_title('&laquo; @ ', TRUE, 'right');
	echo bloginfo('name');
} elseif (is_tag()) {
	echo __('Tag &raquo; ', 'blank'); wp_title('&laquo; @ ', TRUE, 'right');
	echo bloginfo('name');
} elseif (is_search()) {
	echo __('Search results &raquo; ', 'blank');
	echo the_search_query();
	echo '&laquo; @ ';
	echo bloginfo('name');
} elseif (is_404()) {
	echo '404 '; wp_title(' @ ', TRUE, 'right');
	echo bloginfo('name');
} else {
	echo wp_title(' @ ', TRUE, 'right');
	echo bloginfo('name');
} ?></title>

<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS" href="<?php add_theme_support( 'automatic-feed-links' ); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_directory'); ?>/css/superfish.css" media="screen" />

<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?> <!-- enables nested comments in WP 2.7 -->

<!-- Drop down menu -->
<?php wp_enqueue_script('jquery'); ?>

<script type='text/javascript'>

		// initialise plugins
		jQuery(function(){
			jQuery('ul.menu').superfish();
		});

</script>
<!-- end Drop down menu -->

<!-- This makes the options work -->
<?php
//allows the theme to get info from the theme options page
global $options;
foreach ($options as $value) {
	if ( isset( $value['id'] ) ) {
		if (get_option( $value['id'] ) === FALSE) {
			$$value['id'] = $value['std'];
		} else {
			$$value['id'] = get_option( $value['id'] );
		}
	}
}
?>
<!-- end options -->

<?php wp_head(); //leave for plugins ?>

</head>

<body <?php body_class(); ?>>
<div id="wrapper"> <!-- #wrapper ends in footer.php -->
<div id="top" class="clearfloat"><!-- #this is the corners at the top -->

<h1><a href="<?php echo home_url() ; ?>"><?php bloginfo('name'); ?></a>
<span class="black"><?php bloginfo('description'); ?></span></h1>

</div>




<div id="header">

<div id="nav">

<?php if ( $breathe_hide_pages == 'no' ) { ?>
   <div class="top-menu" >
	  	<?php /* Our navigation menu.  If one isn't filled out, wp_nav_menu falls back to wp_page_menu.  The menu assiged to the primary position is the one used.  If none is assigned, the menu with the lowest ID is used.  */ ?>
		<?php wp_nav_menu( array( 'theme_location' => 'primary-menu' ) ); ?>
   </div>
<?php } ?>
</div>


	
	

<div id="search">
            <?php get_search_form (TEMPLATEPATH . "/searchform.php"); ?>  
 </div>
 </div><!-- Close Head -->

<div class="breadcrumb"> 
<?php /* Our navigation menu.  If one isn't filled out, wp_nav_menu falls back to wp_page_menu.  The menu assiged to the primary position is the one used.  If none is assigned, the menu with the lowest ID is used.  */ ?>
		<?php wp_nav_menu( array( 'theme_location' => 'secondary-menu' ) ); ?>

<ul >
  <li><?php if (function_exists('pixopoint_menu')) {pixopoint_menu();} ?></li>
</ul>

</div>
<!-- end #header -->

