<?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>





<!-- 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']; ?>sitemaplink.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>

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

<!-- sitename -->
<div class="tplge_sitetitle">
<?php 
if(!$edit && !isset($_REQUEST['login']))
{
echo '
<div class="tplge_header">
' . tf_sitename() . '
<div class="tplge_headerStars">* * * * * * *</div>
</div>
';
}
?>
</div>



<!-- locator / breadcrumb navigation -->
<?php 
if(!$edit) 
{
echo '<nav class="tplge_locator">
<span class="tplge_locatortext">&nbsp;' . $tx['locator']['text'] . '</span>' . locator('<span class="tplge_locatorDelimiter">&laquo;</span>') . '
</nav>
';
}
?>

</header>





<!-- CONTAINERS -->

<div class="tplge_contentsContainer">
<div class="tplge_contentsContainerIn">





<!-- CONTENT -->

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

<article>

<?php echo content(); ?>

</article>


<?php echo tf_submenu();?>

<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>

<!-- 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";
?>
</nav>

	</div>
	</div>

<!-- END SIDEBAR NAV -->





<!-- SIDEBAR NEWS-->

	<div class="tplge_sidebarNews">

<!-- news area -->
<aside class="tplge_newsArea">

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

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

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

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

<!-- END news area -->
</aside>

	</div>

<!-- END SIDEBAR NEWS--> 





</div>
</div>

<!-- END SITE CONTAINER -->





<!-- FOOTER -->

<footer class="tplge_footer">

<p>
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();?>
</p>

</footer>

<!-- END FOOTER -->





<!-- 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>