<?php
  /**
   * Copyright 2011 Zazavi - http://www.zazavi.com
   * Zazavi is free software released under the terms of the GNU General Public License.
   * You should have received a copy of the license.  If not, see <http://www.gnu.org/licenses/>.
   */
  
  if (!defined("_VALID_PHP"))
      die('Direct access to this location is not allowed.');
?>	
<?php include("header.php");?>
  <?php if($content->pageid):?>
  <!-- Breadcrumbs -->
  <div id="crumbs">
      <div class="wrap"><strong><?php echo _YOUAREHERE;?>:</strong> <em><?php echo _HOME;?> &rsaquo; <?php echo $content->getBreadcrumbs();?></em></div>
  </div>
  <!-- Breadcrumbs /-->
  <?php endif;?>  

  <?php if ($modtop != 0): ?>
    <?php if($content->pageid):?>
    <!-- Top Modules -->
      <div id="topmodule"><?php include(ZAZAVILITE . "includes/top_modules.php");?></div>
    <!-- Top Modules /-->
    <?php else:?>
    <!-- Top Modules Home Page Only -->
    <div id="home-top-module"><?php include(ZAZAVILITE . "includes/top_modules.php");?></div>
    <!-- Top Modules Home Page Only /-->	
    <?php endif;?>  
  <?php endif; ?>

  <!-- Left and Right Layout -->
  <?php switch(true): case $totalleft >= 1 && $totalright >= 1: ?>
  <div id="content-left-right">
  	<div class="wrap">
      <div id="left-col">
        <div class="left-col-inner">
          <?php include(ZAZAVILITE . "includes/left_modules.php");?>
        </div>
      </div>
      <div id="right-col-sml">
        <div class="right-col-inner">
          <?php include(ZAZAVILITE . "includes/right_modules.php");?>
        </div>
      </div>
      <div id="main-col-left-right">
        <div class="main-col-inner">
          <?php $content->displayPage();?>
        </div>
      </div>
    <div class="clear"></div>
    </div>
  </div>
  <?php break;?>
  <!-- Left and Right Layout /--> 
  
  <!-- Left Layout -->
  <?php case $totalleft >= 1: ?>
  <div id="content-left">
    <div class="wrap">
        <div id="left-col">
          <div class="left-col-inner">
            <?php include(ZAZAVILITE . "includes/left_modules.php");?>
          </div>
        </div>
        <div id="main-col-right">
          <div class="main-col-inner">
            <?php $content->displayPage();?>
          </div>
        </div>
      <div class="clear"></div>
    </div>
   </div>
   <?php break;?>
  <!-- Left Layout /--> 
  
  <!-- Right Layout -->
  <?php case $totalright >= 1: ?>
  <div id="content-right">
    <div class="wrap">
        <div id="right-col">
          <div class="right-col-inner">
            <?php include(ZAZAVILITE . "includes/right_modules.php");?>
          </div>
        </div>
        <div id="main-col-left">
          <div class="main-col-inner">
            <?php $content->displayPage();?>
          </div>
        </div>
      <div class="clear"></div>
    </div>
  </div>
  <?php break;?>
  <!-- Right Layout -->
  
  <?php default: ?>
  <!-- Full Layout -->
  <div id="main-col">
  	<div class="wrap">
      <div class="main-col-inner">
        <?php $content->displayPage();?>
      </div>
    </div>
  </div>
  <?php break;?>
  <!-- Full Layout /-->
  <?php endswitch;?>
  
  <?php if ($modbot != 0): ?>
  <!-- Bottom Modules -->
  <?php include(ZAZAVILITE . "includes/bot_modules.php");?>
  <!-- Bottom Modules /-->
  <?php endif; ?>  
<?php include("footer.php");?>