<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php print $language ?>" xml:lang="<?php print $language ?>">
<head>
  <title><?php print $head_title ?></title>
  <?php print $head; ?>
  <link rel="stylesheet" type="text/css" href="<?php print $directory; ?>/style.css" media="all" />
  <link rel="stylesheet" type="text/css" href="<?php print $directory; ?>/topmenu/topmenu.css" media="all" />
  <link rel="stylesheet" type="text/css" href="<?php print base_path(); ?>misc/drupal.css" media="all" />
  <link rel="stylesheet" type="text/css" href="<?php print base_path(); ?>modules/nice_menus/nice_menus.css" media="all" />
  <script type="text/javascript" src="/misc/drupal.js"></script>
  <!--[if lte IE 6]>
    <script type="text/javascript" src="<?php print $directory; ?>/nice-menus.js"></script>
  <![endif]-->
</head>

<body class="layout-<?php print $layout; ?>">
<div id="header">
  <a href="http://digett.com" title="Digett" id='logo'><img src="<?php print $directory; ?>/logo.png" alt="Digett" /></a>
  <?php if ($site_name) { ?><h1 class='site-name'><a href="<?php print $base_path ?>" title="<?php print t('Home') ?>"><?php print $site_name ?></a></h1><?php } ?>
  <div id="menu">
    <?php print $search_box ?>
  </div>
  <?php if ($header) : ?>
    <div id="header-blocks">
      <?php print $header ?>
    </div>
  <?php endif; ?>
</div>

<?php include dirname(__FILE__).'/topmenu/topmenu.inc'; ?>

<div id="container">
  <div id="content" class="column">
    <div id="main">
      <?php print $breadcrumb ?>
      <h1 class="title"><?php print $title ?></h1>
      <div class="tabs"><?php print $tabs ?></div>
      <?php print $help ?>
      <?php print $messages ?>
      <?php print $content; ?>
    </div>
  </div>
  
  <?php //if ($sidebar_left || is_array($secondary_links)) : ?>
    <div class="column" id="sidebar-left">
      <?php 
      	if($primary_links){
	      	$block->module = 'digett';
	      	$block->delta = 0;
	      	$block->subject = 'Primary Links';
	      	$block->content = theme('item_list',$primary_links);
	      	print theme('block', $block);
      	}
      ?>
      <?php print $sidebar_left ?>
    </div>
  <?php //endif; ?>
  
  <?php if ($sidebar_right) : ?>
    <div class="column" id="sidebar-right">
      <?php print $sidebar_right ?>
    </div>
  <?php endif; ?>
  
</div>

<div id="footer-wrapper">
	<div id="footer">
		<?php print $footer_message ?>
	</div>
</div>

<?php print $closure ?>
</body>
</html>