<!DOCTYPE html>

<!-- BEGIN html -->
<html <?php language_attributes(); ?>>
<!-- An Orman Clark design (http://www.premiumpixels.com) - Proudly powered by WordPress (http://wordpress.org) -->

<!-- BEGIN head -->
<head>

	<!-- Meta Tags -->
	<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
	
	<!-- Title -->
	<title><?php wp_title('|', true, 'right'); ?><?php bloginfo('name'); ?></title>
	
	<!-- Stylesheets -->
    <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Droid+Serif:regular,italic,bold,bolditalic" type="text/css" /> 
    <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Droid+Sans:regular,bold" type="text/css" /> 
	<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
	<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/<?php echo get_option('tz_alt_stylesheet'); ?>" type="text/css" media="screen" />
    <link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/colours.php" type="text/css" media="screen" />
	
	<!-- RSS & Pingbacks -->
	<link rel="alternate" type="application/rss+xml" title="<?php bloginfo( 'name' ); ?> RSS Feed" href="<?php if (get_option('tz_feedburner')) { echo get_option('tz_feedburner'); } else { bloginfo( 'rss2_url' ); } ?>" />
	<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />

	<?php wp_head(); ?>

<!-- END head -->
</head>

<!-- BEGIN body -->
<body <?php body_class(); ?>>

	<!-- BEGIN #container -->
	<div id="container">
	
		<!-- BEGIN #header -->
		<div id="header" class="clearfix">
			
			<!-- BEGIN #logo -->
			<div id="logo">
				<?php /*
				If "plain text logo" is set in theme options then use text
				if a logo url has been set in theme options then use that
				if none of the above then use the default logo.png */
				if (get_option('tz_plain_logo') == 'true') { ?>
				<a href="<?php echo home_url(); ?>"><?php bloginfo( 'name' ); ?></a>
				<p id="tagline"><?php bloginfo( 'description' ); ?></p>
				<?php } elseif (get_option('tz_logo')) { ?>
				<a href="<?php echo home_url(); ?>"><img src="<?php echo get_option('tz_logo'); ?>" alt="<?php bloginfo( 'name' ); ?>"/></a>
				<?php } else { ?>
                	<?php if(get_option('tz_alt_stylesheet') == 'dark.css' || get_option('tz_alt_stylesheet') == '') : ?>
						<a href="<?php echo home_url(); ?>"><img src="<?php echo get_template_directory_uri(); ?>/images/dark/logo.png" alt="<?php bloginfo( 'name' ); ?>" /></a>
                	<?php else: ?>
                    	<a href="<?php echo home_url(); ?>"><img src="<?php echo get_template_directory_uri(); ?>/images/light/logo.png" alt="<?php bloginfo( 'name' ); ?>" /></a>
                    <?php endif; ?>
				<?php } ?>
			<!-- END #logo -->
			</div>
            
            <!-- BEGIN #primary-nav -->
            <div id="primary-nav">
                <?php if ( has_nav_menu( 'primary-menu-1' ) ) : /* if menu location 'primary-menu-1' exists then use custom menu */ ?>
                <?php wp_nav_menu( array( 'theme_location' => 'primary-menu-1', 'container' => '', 'depth'  => 1, 'fallback_cb' => '', ) ); ?>
                <?php endif; ?>
                <?php if ( has_nav_menu( 'primary-menu-2' ) ) : /* if menu location 'primary-menu-2' exists then use custom menu */ ?>
                <?php wp_nav_menu( array( 'theme_location' => 'primary-menu-2', 'container' => '', 'depth'  => 1, 'fallback_cb' => '', ) ); ?>
                <?php endif; ?>
                <?php if ( has_nav_menu( 'primary-menu-3' ) ) : /* if menu location 'primary-menu-3' exists then use custom menu */ ?>
                <?php wp_nav_menu( array( 'theme_location' => 'primary-menu-3', 'container' => '', 'depth'  => 1, 'fallback_cb' => '', ) ); ?>
                <?php endif; ?>
            <!-- END #primary-nav -->
            </div>
            
            
            <?php $twitter_option = get_option('tz_twitter_username'); ?>
            
            <?php if($twitter_option != '') : ?>
            <!-- BEGIN #header-tweet -->
            <div id="header-tweet">
				
                <?php tz_parse_cache_feed($twitter_option, 1, TRUE); ?>

            <!-- END #header-tweet -->
            </div>
            <?php endif; ?>
			
		<!--END #header-->
		</div>

		<!--BEGIN #content -->
		<div id="content" class="clearfix">
		