<?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($edit) 
{
echo '
<style>
.tplge_contentsContainer {background-image: none;}
header {min-height: 0;}
</style>
';
}

if($adm && $cmsimple_debugMode) 
{
echo '
<style>
.tplge_pageNav {padding-top: 59px;}
.tplge_header {padding-top: 59px;}
h1.tplge_sitename {padding-top: 72px;}
</style>
';
}

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

?>

</head>





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





<!-- MAIN CONTAINER -->

<div class="tplge_mainContainer">





<!-- HEADER -->

<header>

<!-- sitename -->
<?php 
if(!$edit && !isset($_REQUEST['login']) && !isset($_REQUEST['logout']))
{
	echo tf_sitename();
}
?>


<!-- header images -->
<?php 
if(!$edit && !isset($_REQUEST['login']) && !isset($_REQUEST['logout']))
{
	echo '<a href="#tplge_contentsContainer"><img src="' . tf_images('headerimg') . '" class="tplge_headerimage" alt=""></a>';
//	echo '<a href="#tplge_contentsContainer"><img src="' . $pth['folder']['templateimages'] . 'header.jpg" class="tplge_headerimage" alt=""></a>';
}
?>

</header>





<!-- CONTENTS CONTAINER -->

<div id="tplge_contentsContainer" class="tplge_contentsContainer">





<!-- CONTENT -->

<div class="tplge_content">

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



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

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

<!-- END CONTENT CONTAINER -->



</div>

<!-- END MAIN CONTAINER -->





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





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