	<?php
	if ($cf['xhtml']['endtags'] == 'true') {
	echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'."\n".
	'<html xmlns="http://www.w3.org/1999/xhtml">'."\n";
	} else {
	echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">'."\n".'<html>'."\n";}
	?>
	<head>
	 <?php echo head();?>
		</head>
		<body id="templates" <?php echo onload();?>>
	       <div id="top"><a name="TOP"></a></div>

<div id="wrapper">
	<div id="header">
      <?php echo imagescroller($pth['folder']['base'] . 'templates/kite/headers/');?>
    </div>
	<div id="middle">
		<div id="container">
			<div id="content">
            <div class="locator"><?php echo $tx['locator']['text']; ?>&nbsp;<?php echo locator(); ?></div>
              <div class="content_in">
              <?php echo editmenu(); ?>
              <?php echo content(); ?>
              <?php echo submenu(); ?>
              <div style="clear: both;"></div>
			  </div>
              <div id="nav">
              <div class="subnav_prev"><?php echo previouspage();?></div>
			  <div class="subnav_top"><?php echo top();?></div>
			  <div class="subnav_next"><?php echo nextpage();?></div></div>
            </div>
		</div>

		<div id="sideLeft">
           <div class="sideLeft_in">
            <div id="menu"><?php echo searchbox(); ?>
							<?php echo toc();?>
								<ul class="subnav">
									<li><?php echo printlink();?></li>
									<li><?php echo sitemaplink();?></li>
									<li><?php echo mailformlink();?></li>
								</ul>
                                <div id="languagemenu"><?php echo languagemenu(); ?></div>
							</div>
           </div>
        <div class="sideLeft_in">
            <?php echo newsbox('News01'); ?>
		</div>
        <div class="sideLeft_in">
            <?php echo newsbox('News02'); ?>
		</div>
        <div class="sideLeft_in">
            <?php echo newsbox('News03'); ?>
		</div>
        </div>

	</div>

	<div id="footer">
       <div class="footer_in">
					<span>Powered by <a href="http://www.cmsimple-xh.de/" target="_blank">CMSimple_XH</a></span> |
					<span>Template by: <a href="http://oldnema.compsys.cz" target="_blank">OldNema</a></span> |
					<span>Plugin Imagescroller_XH by: <a href="http://3-magi.net/?CMSimple_XH/Imagescroller_XH" target="_blank">Christoph M. Becker</a></span> | <span><a href="http://jigsaw.w3.org/css-validator/check/referer">css</a></span> |  
					<span><?php echo loginlink();?></span> <br><span> &copy; <?php echo sitename()?> | <?php echo lastupdate(FALSE);?> </span>
	   </div>
    </div>
</div>

</body>
</html>