<?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="body" <?php echo onload();?>>
<img src="<?=$pth['folder']['templateimages']?>bg.jpg" alt="background" id="background-image">   
<div id="wrapper">
<div id="sitename">
<?php echo sitename();?>
</div>
	<div id="header">
	</div>
	<div id="middle">
		<div id="container">
			<div id="content">
            <div id="box_center">
	           <?php echo locator();?><br><br><?php echo editmenu();?><?php echo content();?><?php echo submenu();?>
   </div>
<div class="subnav">
    <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 class="sidebar" id="sideLeft">
       <div class="box">
		<h6>Menu</h6>
		    <?php echo searchbox();?>
	        <?php echo toc();?>
        </div>
    <div class="box">
	   <h6>Website info</h6>
       <?php echo languagemenu();?><br>
	   <?php $tx['lastupdate']['dateformat']="d.m.Y - H:i";echo lastupdate(1);?>
    <ul>
        <li><?php echo mailformlink();?></li>
	    <li><?php echo printlink();?></li>
	    <li><?php echo sitemaplink();?></li>
    </ul>
        </div>
 <div class="box">
 <h6>Newsbox 01</h6>
<?php echo newsbox("News01");?>
</div>

</div>
<div class="sidebar" id="sideRight">
    <div class="box">
		 <h6>Newsbox 02</h6>
            <?php echo newsbox("News02");?>
    </div>
<div class="box">
	 <h6>Newsbox 03</h6>
<?php echo newsbox("News03");?>
</div>
    <div style="clear: both;"></div>
    </div>
</div>

<div id="footer">
<p>
Powered by
<a href="http://www.cmsimple-xh.de/">CMSimple_XH</a> |
Template by <a href="http://oldnema.compsys.cz">OldNema</a> |
<a href="http://validator.w3.org/check?uri=referer">test (X)html</a> |
<a href="http://jigsaw.w3.org/css-validator/check/referer">test css</a> |
<?php
echo loginlink();
?></p>
<p><?php echo $txc['meta']['description'];?></p>
<div style="clear: both;"></div>
</div>
</div>

</body>
</html>