<?php
/**
 * @copyright	Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
 * @license		GNU/GPL, see LICENSE.php
 * Joomla! is free software. This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses.
 * See COPYRIGHT.php for copyright notices and details.
 */

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
<head>
<jdoc:include type="head" />
<link rel="stylesheet"  href="<?php echo $this->baseurl ?>/templates/flavorite/css/style.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/flavorite/css/960.css" type="text/css" />
<link href='http://fonts.googleapis.com/css?family=Lobster' rel='stylesheet' type='text/css'>

<!--[if lte IE 6]>
<link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/ieonly.css" rel="stylesheet" type="text/css" />
<![endif]-->
<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/flavorite/js/jquery.innerfade.js"></script>
<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/flavorite/js/jquery.equalheights.js"></script>
<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/flavorite/js/code.js"></script>


</head>
<body>
<div id="top"></div>
<div id="shadow">
         <?php if($this->countModules('abs1')) : ?>
                 <jdoc:include type="modules" name="abs1" style="xhtml" />
  <div id="imageround1"></div>
      <?php endif; ?>
               <?php if($this->countModules('abs2')) : ?>
                       <jdoc:include type="modules" name="abs2" style="xhtml" />
  <div id="imageround2"></div>
        <?php endif; ?>
  <div class="container_12 clearfix" id="container">
    <div id="top2" class="container_12">
   
         <?php if($this->countModules('language')) : ?>
      <div id="language">
        <jdoc:include type="modules" name="language" style="xhtml" />
      </div>
      <?php endif; ?>
         <?php if($this->countModules('icon')) : ?>
      <div id="icon">
        <jdoc:include type="modules" name="icon" style="xhtml" />
      </div>
      <?php endif; ?>
      
    </div>
    <div id="minishadow" class="container_12 clearfix">
      <div class="grid_12" id="header">
     <?php if($this->countModules('logo')) : ?>
							   <div id="logo" class="grid_3 alpha"><jdoc:include type="modules" name="logo" style="xhtml" /></div>
						<?php endif; ?>
        <div id="childright" class="grid_9 omega">
          <?php if($this->countModules('search')) : ?>
							<div id="search">
         <jdoc:include type="modules" name="search" style="xhtml" />
          </div>
						<?php endif; ?>
        <?php if($this->countModules('left')) : ?>
							  <div id="featurenews"><jdoc:include type="modules" name="featurenews" style="xhtml" /></div>
						<?php endif; ?>
        </div>
      </div>
      <div class="clear"></div>
<?php if($this->countModules('menu')) : ?>
							      <div  id="menu" class="grid_12">
      <jdoc:include type="modules" name="menu" style="xhtml" />
      </div>
						<?php endif; ?>
                        
<?php if($this->countModules('slider')) : ?>
							      <div class="grid_12" id="slider">
        <div class="child"><jdoc:include type="modules" name="slider" style="xhtml" /></div>
      </div>
      <div id="sliderbelow" class="grid_12"></div>
						<?php endif; ?>
                        <?php if($this->countModules('minibanner')) : ?>
							      <div class="grid_12 minibanner" id="slider">
        <div class="child"><jdoc:include type="modules" name="minibanner" style="xhtml" /></div>
      </div>

						<?php endif; ?>
    </div>
        <?php if ($this->countModules( 'user1 and user2 and user3' )) : ?>
    <div id="userall">
      <?php if($this->countModules('user1')) : ?>
							<div class="grid_4" id="user1">
        <div class="child">
          <jdoc:include type="modules" name="user1" style="xhtml" />
        </div>
      </div>
						<?php endif; ?>
      
            <?php if($this->countModules('user2')) : ?>
							<div class="grid_4" id="user2">
        <div class="child">
          <jdoc:include type="modules" name="user2" style="xhtml" />
        </div>
      </div>
						<?php endif; ?>
                              <?php if($this->countModules('user3')) : ?>
							<div class="grid_4" id="user3">
        <div class="child">
          <jdoc:include type="modules" name="user3" style="xhtml" />
        </div>
      </div>
						<?php endif; ?>
    </div>
    <?php endif; ?>
       
       <div id="maincontent" class="container_12 clearfix">
       <div class="maincontentchild">
       
<?php if($this->countModules('leftmenu')) : ?>
<div class="grid_3" id="leftmenu">
  <div id="child" class="equal1">
    <jdoc:include type="modules" name="leftmenu" style="xhtml" />
  </div>
</div>
<?php endif; ?>
    
         <?php if( JRequest::getVar( 'view' ) == 'frontpage' ) { ?>

    <?php } else { ?>
    

      <?php if ($this->countModules('leftmenu') && $this->countModules('block3')) : ?>
      
    <div id="block2 " class="grid_9">
      <div class="child equal1">
        <jdoc:include type="component" />
      </div>
    </div>
     
    <!--Left + Content or Content + Right-->
    
    <?php elseif ($this->countModules('leftmenu') || $this->countModules('block3')) : ?>
    <div id="block2" class="grid_9">
      <div class="child equal1">
        <jdoc:include type="component" />
      </div>
    </div>
    
    <!--Only Content-->
    
    <?php else: ?>
    <div class="grid_12 alpha omega" >
      <jdoc:include type="component" />
    </div>
    <?php endif; ?>
  
     <?php } ?>
    

  

    <?php if($this->countModules('block3')) : ?>
    <div id="block3" class="grid_4 ">
      <div class="child equalblock clearfix">
        <jdoc:include type="modules" name="block3" style="xhtml" />
      </div>
    </div>
    <?php endif; ?>
  </div>
  </div>
  </div>
</div>
  <div class="clear"></div>
    <div id="sitemap">
     <div id="sitemapchild" class="container_12"> 
        <h4>Sitemap of Flavroites</h4>
                      <?php if($this->countModules('user4')) : ?>
							<div class="grid_3 alpha" id="user4">
        <div class="child">
          <jdoc:include type="modules" name="user4" style="xhtml" />
        </div>
      </div>
						<?php endif; ?>
      
                      <?php if($this->countModules('user5')) : ?>
							<div class="grid_3" id="user5">
        <div class="child">
          <jdoc:include type="modules" name="user5" style="xhtml" />
        </div>
      </div>
						<?php endif; ?>
                      <?php if($this->countModules('user6')) : ?>
							<div class="grid_3" id="user6">
        <div class="child">
          <jdoc:include type="modules" name="user6" style="xhtml" />
        </div>
      </div>
						<?php endif; ?>
                        
                                        <?php if($this->countModules('user7')) : ?>
							<div class="grid_3 omega" id="user7">
        <div class="child">
          <jdoc:include type="modules" name="user7" style="xhtml" />
        </div>
      </div>
						<?php endif; ?>
      
      </div>
      
    </div>
<div class="clear"></div>
<div  id="footer">
  <div class="child">
   <?php if($this->countModules('fmenu')) : ?>
							 <div  id="fmenu">
    <jdoc:include type="modules" name="fmenu" style="xhtml" />
    </div>
						<?php endif; ?>
    <div id="fright"> Copyright 2010 - 2011 Flavorite. Designed By <a href="http://www.emaxglobal.com" target="_blank">Emaxglobal</a> </div>
  </div>
</div>
</body>
</html>
