<!DOCTYPE html>
<?php $options = get_option('truepixel'); ?>
<html class="no-js" <?php language_attributes(); ?>>
<head>
	<meta charset="<?php bloginfo('charset'); ?>">
	<title><?php wp_title(''); ?></title>
	<?php mts_meta(); ?>
	<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
	<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
	<?php wp_enqueue_script("jquery"); ?>
	<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
	<!--[if lt IE 9]>
	<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
	<![endif]-->
	<?php mts_head(); ?>
	<?php wp_head(); ?>
</head>
<?php flush(); ?>
<body <?php body_class('main'); ?>>
	<div id="header_area">
		<nav class="main-navigation">
			<?php if ( has_nav_menu( 'primary-menu' ) ) { ?>
				<?php wp_nav_menu( array( 'theme_location' => 'primary-menu', 'menu_class' => 'menu', 'container' => '' ) ); ?>
			<?php } else { ?>
				<ul class="menu">
					<li class="home-tab"><a href="<?php echo home_url(); ?>">Home</a></li>
					<?php wp_list_pages('title_li='); ?>
				</ul>
			<?php } ?><!--#nav-primary-->
		</nav>
		<div class="page">
			<header id="header">
				<?php if ($options['mts_logo'] != '') { ?>
					<?php if( is_front_page() || is_home() || is_404() ) { ?>
							<h1 id="logo">
								<a href="<?php echo home_url(); ?>"><img src="<?php echo $options['mts_logo']; ?>" alt="<?php bloginfo( 'name' ); ?>"></a>
							</h1><!-- END #logo -->
					<?php } else { ?>
						  <h2 id="logo">
								<a href="<?php echo home_url(); ?>"><img src="<?php echo $options['mts_logo']; ?>" alt="<?php bloginfo( 'name' ); ?>"></a>
							</h2><!-- END #logo -->
					<?php } ?>
				<?php } else { ?>
					<?php if( is_front_page() || is_home() || is_404() ) { ?>
							<h1 id="logo">
								<a href="<?php echo home_url(); ?>"><?php bloginfo( 'name' ); ?></a>
							</h1><!-- END #logo -->
					<?php } else { ?>
						  <h2 id="logo">
								<a href="<?php echo home_url(); ?>"><?php bloginfo( 'name' ); ?></a>
							</h2><!-- END #logo -->
					<?php } ?>
				<?php } ?><!-- END #logo -->
				<?php if ( ! dynamic_sidebar( 'Header' ) ) : ?><?php endif ?>
			</header><!--#header-->
		</div><!--.page-->
		<nav class="secondary-navigation">
			<?php if ( has_nav_menu( 'secondary-menu' ) ) { ?>
				<?php wp_nav_menu( array( 'theme_location' => 'secondary-menu', 'menu_class' => 'menu', 'container' => '' ) ); ?>
			<?php } else { ?>
				<ul class="menu">
					<li class="home-tab"><a href="<?php echo home_url(); ?>">Home</a></li>
					<?php wp_list_categories('title_li='); ?>
				</ul>
			<?php } ?><!--#nav-primary-->
		</nav>
	</div><!--#header_area-->
	<div id="content_area">
		<div class="page">
			<div id="content_box">