<?php include_once($pth['folder']['template'] . 'templatefuncs/templatefuncs.php');?>
<!DOCTYPE html>

<html lang="<?php echo $sl;?>">
<head>
<?php echo head();?>
<script type="text/javascript" src="<?php echo $pth['folder']['template'];?>templatefuncs/scripts/smoothscroll.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=1">
</head>

<body id="body" <?php echo onload();?>>
<!-- utf-8 check: äöüß -->
<div id="top"><div id="TOP"></div></div>





<!-- 
############################################# 
              H E A D E R
############################################# 
-->

<header>
<div id="tplge_header" class="tplge_header"><div class="tplge_headerIn"></div></div>
</header>





<!-- 
############################################# 
            M A I N  (content)
############################################# 
-->

<main>
<div id="tplge_main" class="tplge_main">
<div id="tplge_mainIn" class="tplge_mainIn">


<!-- C O N T E N T -->

	<div id="tplge_content" class="tplge_content">

		<div class="tplge_langmenu"><?php echo languagemenu();?></div>
		<div class="tplge_clearBoth"></div>

<h1 class="tplge_contentHeader"><?php echo sitename();?></h1>

<!-- locator -->
		<div id="tplge_locator" class="tplge_locator">
<span class="locator_text"><?php echo $tx['locator']['text']; ?></span><?php echo locator();?>
		</div>


		<div id="tplge_article" class="tplge_article">
			<article>
<?php echo content();?>
<?php echo submenu();?>
			</article>

			<div id="tplge_prevtopnext" class="tplge_prevtopnext">
<span><?php echo previouspage('prev.gif');?></span>
<span><?php echo top('top.gif');?></span>
<span><?php echo nextpage('next.gif');?></span>
<div class="tplge_clearBoth"></div>
			</div>
		</div>
	</div>



<!-- S I D E B A R -->

	<div id="tplge_sidebarNav" class="tplge_sidebarNav">

		<div id="tplge_menuAnchor" class="tplge_menuAnchor"></div>
		<div class="tplge_searchboxContainer">
<?php echo str_replace('class="submit" value="' . $tx['search']['button'],'class="submit" title="' . $tx['search']['button'] . '" value="&nbsp;&nbsp;',searchbox());?>
		</div>

		<nav>
<?php echo toc(); ?>
		</nav>

		<div id="tplge_icons" class="tplge_icons">
<?php echo tf_homelink('homelink.gif'); ?>
<?php echo tf_printlink('printlink.gif'); ?>
<?php echo tf_mailformlink('mailformlink.gif'); ?>
<?php echo tf_sitemaplink('sitemaplink.gif'); ?>
		</div>

		<div class="tplge_newsbox">
<?php echo newsbox('News01');?>
		</div>
	</div>

<div class="tplge_clearBoth"></div>
</div>
</div>
</main>





<!-- 
############################################# 
                F O O T E R
############################################# 
-->

<footer>
<div id="tplge_footer" class="tplge_footer">



<!-- FOOTER LINKS -->

Powered by <a href="http://www.cmsimple.org/">CMSimple</a> | 
Template: <a href="http://www.ge-webdesign.de/">ge-webdesign.de</a> | 

<?php 
if($adm && !$edit)
{
echo '<a href="http://validator.w3.org/check?uri=referer">html5</a> | 
<a href="http://jigsaw.w3.org/css-validator/check/referer">css</a> | ';
}
?>

<?php echo loginlink();?>

</div>
</footer>





<!-- 
############################################# 
   I N T E R N A L  N A V  B U T T O N S
############################################# 
-->

<!-- scroll to top button -->
<?php echo '<div id="tplge_up" class="tplge_up"><a href="#top"><img src="' . $pth['folder']['templateimages'] . 'scrolltoTop.gif" title="top" alt="nach oben"></a></div>'; ?>

<script>
window.onscroll = function() {
	tplge_up.style.display = ((window.pageYOffset || document.documentElement.scrollTop) > 120) ? 'block' : 'none';
    tplge_up.style.opacity = ((window.pageYOffset || document.documentElement.scrollTop) > 120) ? '1' : '0';
};
tplge_up.style.display = 'none';
tplge_up.style.opacity = '0';
</script>

<!-- scroll buttons -->

<a href="#tplge_locator"><img src="<?php echo $pth['folder']['templateimages']; ?>contentlink.gif" class="tplge_scrolltoContentButton" <?php if($adm) echo 'style="top: 60px;"';?> title="zum Seiteninhalt" alt=""></a>

<a href="#tplge_menuAnchor"><img src="<?php echo $pth['folder']['templateimages']; ?>menulink.gif" class="tplge_scrolltoMenuButton" <?php if($adm) echo 'style="top: 60px;"';?> title="zum Hauptmenü" alt=""></a>

<nav><div class="tplge_fixed"> </div></nav>

</body>
</html>