<?php
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
require_once dirname(__FILE__) . DS . 'functions.php';
$date                   = ($this->params->get("date", 1)  == 0)?"false":"true";
$css                    = ($this->params->get("css", 1)  == 0)?"false":"true";
$timerrun                  = ($this->params->get("timerrun", 1)  == 0)?"false":"true";
$size                                            = $this->params->get("size");
$image                                           = $this->params->get("image");
$color                                           = $this->params->get("color");
require_once dirname(__FILE__) . DS . 'timer.php';

?>
<!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>
  <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<jdoc:include type="head" />
  <link rel="stylesheet" href="<?php echo $this->baseurl; ?>/templates/system/css/system.css" type="text/css" />
  <link rel="stylesheet" href="<?php echo $this->baseurl; ?>/templates/system/css/general.css" type="text/css" />
  <link rel="stylesheet" type="text/css" href="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template; ?>/css/template.css" />
  <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/<?php echo $this->params->get('shine'); ?>.css" type="text/css" />
  <!--[if IE 6]><link rel="stylesheet" href="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template; ?>/css/style.ie6.css" type="text/css" media="screen" /><![endif]-->
  <script type="text/javascript" src="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template; ?>/script.js"></script>
  <style type="text/css">
  body, p, td, tr { font-size: <?php echo $size; ?>; }
  body { background-image: url('<?php echo $this->baseurl; ?>/templates/<?php echo $this->template; ?>/<?php echo $image; ?>'); background-color: <?php echo $color; ?>; }
</style>
 </head>
<body>
<div class="PageBackgroundGlare">
    <div class="PageBackgroundGlareImage"></div>
</div>
<div class="Main">
<div class="Sheet">
    <div class="Sheet-tl"></div>
    <div class="Sheet-tr"><div></div></div>
    <div class="Sheet-bl"><div></div></div>
    <div class="Sheet-br"><div></div></div>
    <div class="Sheet-tc"><div></div></div>
    <div class="Sheet-bc"><div></div></div>
    <div class="Sheet-cl"><div></div></div>
    <div class="Sheet-cr"><div></div></div>
    <div class="Sheet-cc"></div>
    <div class="Sheet-body">
<div class="Header">
    <div class="Header-png"></div>
    <div class="Header-jpeg"></div>
<div class="logo">
 <h1 id="name-text" class="logo-name"><a href="/<?php echo $this->baseurl ?>/"><?php echo $mainframe->getCfg('sitename') ;?></a></h1>
         <!-- BEGINNE: Datum -->
<?php if($date == "true") : ?>
      <div class="date">
         <div>
         <?php $now = &JFactory::getDate(); echo $now->toFormat("%A, %d %b %Y"); ?>
      </div>
         </div>
<?php endif; ?>
         <!-- END: Date -->
         <!-- BEGINNE:  Textbox-->
<?php $textbox = $this->params->get( 'textbox' ); ?>
                 <h1 class="textbox">
                        <a href="index.php" title="<?php echo $siteName; ?>"><span><?php echo $textbox; ?></span></a>
                </h1>
         <!-- END: Textbox -->
</div>
</div>
<jdoc:include type="modules" name="user3" />
<div class="contentLayout">
<div class="sidebar1">
<jdoc:include type="modules" name="left" style="artblock" />

</div>
<div class="content">
<?php if ($this->countModules('breadcrumb') || artxHasMessages()) : ?>
<div class="Post">
    <div class="Post-body">
<div class="Post-inner">
<div class="PostContent">
<jdoc:include type="modules" name="breadcrumb" />
<jdoc:include type="message" />

</div>
<div class="cleared"></div>

</div>

    </div>
</div>
<?php endif; ?>
<jdoc:include type="component" />

</div>
<div class="sidebar2">
<jdoc:include type="modules" name="right" style="artblock" />

</div>

</div>
<div class="cleared"></div>
<div class="Footer">
 <div class="Footer-inner">
  <jdoc:include type="modules" name="syndicate" />
  <div class="Footer-text"><jdoc:include type="modules" name="footer" /></div>
  <!-- BEGINNE: CSS-Valide -->
<?php if($css == "true") : ?>
  <div class="Footer-css">
      <a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank" title="<?php echo JText::_("CSS Validity");?>" style="text-decoration: none;">
                <img src="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template; ?>/images/css.gif" border="none" alt="<?php echo JText::_("CSS Validity");?>" />
                </a>
  </div>
  <?php endif; ?>
         <!-- END: CSS-Valide -->
         <br />
         <!-- BEGINNE: Timer -->
 <?php if($timerrun == "true") : ?>
      <div class="white">
                 <p>Die Seite wurde in
                 <?php $endTime = endTime($timer); echo $endTime . ' ' . ""; ?>
                 Sekunden generiert.</p>
         </div>
<?php endif; ?>
 <!-- END: Timer -->
 </div>
 <div class="Footer-background"></div>
</div>
    </div>
</div>
  <p class="page-footer"><a href="http://www.blechdose-live.de">Joomla template</a> created by Blechdose.
  </p>

</div>
</body>
</html>