<?php defined('C5_EXECUTE') or die(_("Access Denied.")); ?>
<!doctype html>  
<!--[if lt IE 7 ]> <html lang="<?php echo LANGUAGE?>" class="no-js ie6"> <![endif]-->
<!--[if IE 7 ]>    <html lang="<?php echo LANGUAGE?>" class="no-js ie7"> <![endif]-->
<!--[if IE 8 ]>    <html lang="<?php echo LANGUAGE?>" class="no-js ie8"> <![endif]-->
<!--[if IE 9 ]>    <html lang="<?php echo LANGUAGE?>" class="no-js ie9"> <![endif]-->   
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="<?php echo LANGUAGE?>" class="no-js"> <!--<![endif]-->
<head>
<meta http-equiv="X-UA-Compatible" content="IE=Edge;chrome=1" />
<meta name="viewport" content="width=device-width" />

<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Droid+Serif:400,400italic|Lato:400,700" />
<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getThemePath(); ?>/columnal.css" />
<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getStyleSheet('typography.css')?>" />
<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getStyleSheet('main.css')?>" />

<!-- Fixes for IE -->
<!--[if lt IE 9]>
<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getThemePath(); ?>/ie.css" />
<![endif]-->
<!-- use "fixed-984px-ie.css" or "fixed-960px-ie.css for a 984px or 960px fixed width for IE6 and 7 -->
<!--[if lte IE 7]>
<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getThemePath(); ?>/fixed-984px-ie.css" />
<![endif]-->

<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getThemePath(); ?>/mobile.css" />

<?php
//Load superfish and fancybox with "unique item handles", to avoid conflicts with other addons that use them
$html = Loader::helper('html');
$this->addHeaderItem($html->javascript($this->getThemePath() . '/js/superfish.js', null, array('handle' => 'jquery.superfish', 'version' => '1.7.4')));
$this->addHeaderItem($html->javascript($this->getThemePath() . '/js/fancybox/jquery.mousewheel-3.0.4.pack.js', null, array('handle' => 'jquery.mousewheel', 'version' => '3.0.4')));
$this->addHeaderItem($html->javascript($this->getThemePath() . '/js/fancybox/jquery.fancybox-1.3.4.pack.js', null, array('handle' => 'jquery.fancybox', 'version' => '1.3.4')));
$this->addHeaderItem($html->css($this->getThemePath() . '/js/fancybox/jquery.fancybox-1.3.4.css', null, array('handle' => 'jquery.fancybox', 'version' => '1.3.4')));

Loader::element('header_required');
?>

<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->

<script type="text/javascript" src="<?php echo $this->getThemePath(); ?>/js/functions.js"></script>

</head>

<body id="<?php echo $c->getCollectionTypeHandle() ?>" class="page<?php echo $c->getCollectionID() ?>">
<!--<div id="full-container-header"> -->
  <div id="container">
	  <header>
    	<div id="logo">
            <?php $stack = Stack::getByName('Site Name');?>
            <a <?php if ( !($stack) ) { ?>id="logo-text"<?php } ?> href="<?php echo DIR_REL?>/" title="<?php echo SITE?>"><?php if($stack) $stack->display(); else echo SITE;?></a>
        </div><!-- #logo ends -->
        <!--<div id="header-area">
        	<?php
			$a = new Area('Header Top');
			$a->display($c);
			?>
        </div>--><!-- #header-area ends -->
    </header><!-- header ends -->
  </div>
<!--</div> -->
<!--<div id="full-container-nav">-->
  <div id="container">
    <nav>
    	<div id="mobile-nav-btn">Menu<span></span></div>
    	<?php
		$bt = BlockType::getByHandle('autonav');
		$bt->controller->displayPages = 'top';
		$bt->controller->orderBy = 'display_asc';                    
		$bt->controller->displaySubPages = 'all'; 
		$bt->controller->displaySubPageLevels = 'all';
		$bt->render('templates/slate_main_nav');
		?>
        <div class="clearboth">&nbsp;</div>
    </nav><!-- nav ends -->
  </div>
<!--</div>-->
  <div id="container">
    <div id="feature">
        <?php 
		$a = new Area('Header');
		$a->display($c);
		?>
        <?php if ($a->getTotalBlocksInArea('Header') > 0) { ?><div class="has-content"></div><?php } ?>
    </div><!-- #feature ends -->