<!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" xml:lang="en" lang="en">
<head>
<title><?php print $head_title; ?></title>
<?php print $head; ?>
<?php print $styles; ?>
<link rel="stylesheet" media="print" href="<?php print base_path().$directory;?>/styles/print.css" />
</head>
<body class="layout-<?php print $layout; ?>" <?php print theme("onload_attribute"); ?>>

<?php if ($top_menu) { ?>
  <div id="top_menu">
    <?php print $top_menu ; ?>
  </div>
<?php } ?>

  <div id="header" class="row <?php if($top_menu) print 'top_menu'; ?>">
    <h1 class="site-name"><?php print $site_name; ?></h1>
  </div><!-- #header -->
  
  <div id="main" class="row">
  
    <div class="container">
    
      <div id="content-right" class="column">
      
        <div class="container">
        
          <div id="content" class="column">
            <div class="padding">
              <h1><?php print $title; ?></h1>
              <?php if ($tabs != ""): ?>
                <?php print $tabs ?>
              <?php endif; ?>
              <?php if ($help != ""): ?>
                <p id="help"><?php print $help ?></p>
              <?php endif; ?>
              <?php if ($messages != ""): ?>
                <div id="message"><?php print $messages ?></div>
              <?php endif; ?>
              <!-- start main content -->
              <?php print($content) ?>
              <!-- end main content -->
            </div><!-- .padding -->
          </div><!-- #content -->
          
          <?php if($sidebar_right): ?>
          <div id="sidebar-right" class="column">
            <div class="padding">
              <?php print $sidebar_right; ?>
            </div><!-- .padding -->          
          </div><!-- #sidebar-right -->
          <?php endif; ?>
          
        </div><!-- .container>.container -->
        
      </div><!-- .column -->
      
      <?php if($sidebar_left): ?>
      <div id="sidebar-left" class="column">
        <div class="padding">
          <?php print $sidebar_left; ?>
        </div><!-- .padding -->
      </div><!-- #sidebar-left" -->
      <?php endif; ?>
      
    </div><!-- .container -->
    
  </div><!-- #content -->

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

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