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

<html lang="<?php echo $sl;?>">
<head>
<?php echo head();?>

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

<?php 

if($adm && $cmsimple_debugMode) 
{
echo '
<style>
.tplge_pageNav {margin-top: 59px;}
</style>
';
}

if($adm && !$cmsimple_debugMode) 
{
echo '
<style>
.tplge_pageNav {margin-top: 35px;}
</style>
';
}

?>

</head>





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

<div class="tplge_websiteContainer">





<!-- FIXED NAVIGATION -->

<nav class="tplge_pageNav">

<a href="./"><img src="<?php echo $pth['folder']['templateimages']; ?>homelink.gif" class="tplge_homelinkButton" alt=""></a>
<a href="./?sitemap"><img src="<?php echo $pth['folder']['templateimages']; ?>sitemaplinkbright.gif" class="tplge_sitemaplinkButton" alt=""></a>

<!-- scroll buttons -->
<a href="#tplge_menuAnchor"><img src="<?php echo $pth['folder']['templateimages']; ?>menulink.gif" class="tplge_menulinkButton" alt=""></a>
<a href="#tplge_newsAnchor"><img src="<?php echo $pth['folder']['templateimages']; ?>newslink.gif" class="tplge_newslinkButton" alt=""></a>
<a href="#tplge_menuAnchor"><img src="<?php echo $pth['folder']['templateimages']; ?>searchlink.png" class="tplge_searchlinkButton" alt=""></a>
<a href="#top"><img src="<?php echo $pth['folder']['templateimages']; ?>toplink.gif" class="tplge_toplinkButton" alt=""></a>

</nav>





<!-- HEADER -->

	<header>
<?php 
if(!$edit && ($s == 0 || (isset($tplge_showHeaderImage) && $tplge_showHeaderImage == 'true')))
{
	echo '<div class="tplge_sitename">' . sitename() . '</div>
<a href="#tplge_contentAnchor"><img src="' . $pth['folder']['templateimages'] . 'scrolltocontent.gif" class="tplge_contentLink" alt=""></a>
<img src="' . tf_images('headerimg') . '" class="tplge_headerimg" alt="">
<div id="tplge_contentAnchor"></div>
';
}

if(!$edit) 
{
	echo '<nav class="tplge_locator">
<span class="tplge_locatortext">' . $tx['locator']['text'] . '</span>' . locator('<span class="tplge_locatorDelimiter">«</span>') . '
</nav>
';
}
?>
	</header>

<!-- END HEADER -->





<!-- CONTENTS CONTAINER -->

<div class="tplge_contentsContainer">





<!-- CONTENT -->

	<div class="tplge_content">
	<main class="tplge_contentIn">

<article>

<?php echo content(); ?>

</article>


<?php echo tf_submenu();?>
<?php echo tf_siblingsmenu();?>

<nav class="tplge_prevtopnext">
<?php 
echo previouspage('prev.gif') . "\n";
echo top('top.gif') . "\n";
echo nextpage('next.gif') . "\n";
?>
</nav>

	</main>
	</div>

<!-- END CONTENT --> 





<!-- SIDEBAR NAV-->

	<div class="tplge_sidebarNav">
	<div class="tplge_sidebarNavIn">

<!-- menu anchor -->
		<div id="tplge_menuAnchor" class="tplge_menuAnchor"></div>

		<div class="tplge_menuArea">

<?php
if(tf_languagemenu() != '')
{
	echo tf_languagemenu();
}
?>

<!-- searchbox -->
<?php echo tf_searchbox();?>

<!-- toc -->
			<nav class="tplge_toc">
<?php echo toc();?>
			</nav>

			<nav class="tplge_icons">
<?php 
echo tf_homelink('homelink.gif') . "\n";
echo tf_printlink('printlink.gif') . "\n";
echo tf_mailformlink('mailformlink.gif') . "\n";
echo tf_sitemaplink('sitemaplink.gif') . "\n";
?>
<div style="clear: both;"></div>
			</nav>

		</div>

	</div>
	</div>

<!-- END SIDEBAR NAV -->





<!-- NEWS AREA -->

	<aside class="tplge_newsArea">
	<div class="tplge_newsAreaIn">

<!-- news anchor -->
<div id="tplge_newsAnchor" class="tplge_newsAnchor"></div>

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

<div class="tplge_newsBox">
<div class="tplge_newsBoxIn tplge_newsBox2">
<?php echo newsbox('News02'); ?>
</div>
</div>

<div class="tplge_newsBox">
<div class="tplge_newsBoxIn tplge_newsBox3">
<?php echo newsbox('News03'); ?>
</div>
</div>

<div style="clear: both;"></div>

	</div>
	</aside>

<!-- END NEWS AREA -->





</div>

<!-- END CONTENTS CONTAINER -->





<!-- FOOTER -->

<footer class="tplge_footer">

<p>
<span>
Powered by <a href="http://www.cmsimple.org/">CMSimple</a> | 
Template: <a href="http://www.ge-webdesign.de/">ge-webdesign.de</a> | 
<?php echo loginlink();?>
</span>
</p>
<div style="clear: both;"></div>

</footer>

<!-- END FOOTER -->





</div>

<!-- END WEBSITE CONTAINERs -->





<!-- scroll to top button -->

<?php echo '<div id="tplge_scrolltoTopButton" class="tplge_scrolltoTopButton"><a href="#top"><img src="' . $pth['folder']['templateimages'] . 'scrolltotop.gif" class="tplge_scrolltoTopButton" title="top" alt="nach oben"></a></div>'; ?>

<script>
window.onscroll = function() {
    tplge_scrolltoTopButton.style.opacity = ((window.pageYOffset || document.documentElement.scrollTop) > 120) ? '1' : '0';
};
tplge_scrolltoTopButton.style.opacity = '0';
tplge_scrolltoTopButton.style.transition = 'opacity 1s';
</script>

</body>
</html>