<?php 
$tplge_showHeaderImage = 'true';
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>





<!-- WEBSITE CONTAINER -->

<div class="tplge_outerContainer">





<!-- HEADER -->

<header>
<?php echo '<div class="tplge_sitename">' . sitename() . '</div>';?>
<nav class="tplge_horinav">
<?php echo toc(1,6,1);?>
</nav>

<div class="tplge_headerimage">
<?php 
if(!$edit && !isset($_REQUEST['login']) && ($s == 0 || isset($tplge_showHeaderImage) && $tplge_showHeaderImage == 'true'))
{
	echo '<img src="' . $pth['folder']['templateimages'] . 'header.jpg" alt="headerimage">';
//	echo '<img src="' . pdvars('01','standard.jpg') . '" alt="Header Image">';
	echo "\n";
}
?>
</div>
</header>





<!-- LOCATOR -->

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





<!-- CONTENT 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();?>
<?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>

<nav 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'); ?>
</nav>

	</main>
	</div>

<!-- END CONTENT --> 



<!-- INFOBOXES -->

<?php echo tf_contentPlus();?>
<?php echo tf_contentPlus('tfContentPlus2','tf_cplus2');?>

<!-- END INFOBOXES -->



</div>
</div>

<!-- END CONTENT CONTAINERS -->





<!-- NEWSAREA -->

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

	<nav id="tplge_tocArea" class="tplge_tocArea">
	<div id="tplge_menuAnchor" class="tplge_menuAnchor"></div>

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

<?php echo '<h4 class="tplge_newsboxToc">' . $tx['menu']['sitemap'] . '</h4>' . toc(); ?>

	</nav>

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

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

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

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

<!-- END NEWSAREA -->





</div>

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





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

<script>
document.write ("<img src=\"<?php echo $pth['folder']['templateimages']; ?>menulink.gif\" class=\"tplge_menulinkButton\" alt=\"\" onclick=\"document.getElementById('tplge_olMenu').style.display='block'; document.getElementById('tplge_olBG').style.display='block'\">");
</script>
<noscript><a href="#tplge_menuAnchor"><img src="<?php echo $pth['folder']['templateimages']; ?>menulink.gif" class="tplge_menulinkButton" alt=""></a></noscript>

<script>
document.write ("<img src=\"<?php echo $pth['folder']['templateimages']; ?>searchlink.png\" class=\"tplge_searchlinkButton\" alt=\"\" onclick=\"document.getElementById('tplge_olSearch').style.display='block'; document.getElementById('tplge_olBG').style.display='block'\">");
</script>
<noscript><a href="#tplge_menuAnchor"><img src="<?php echo $pth['folder']['templateimages']; ?>searchlink.png" class="tplge_searchlinkButton" alt=""></a></noscript>

<a href="#tplge_newsAnchor"><img src="<?php echo $pth['folder']['templateimages']; ?>newslink.gif" class="tplge_newslinkButton" alt=""></a>
<a href="#top"><img src="<?php echo $pth['folder']['templateimages']; ?>toplink.gif" class="tplge_toplinkButton" alt=""></a>

</nav>



<!-- OVERLAYS -->

<!-- background -->
<div id="tplge_olBG" class="tplge_olBG" onclick="document.getElementById('tplge_olMenu').style.display='none'; document.getElementById('tplge_olSearch').style.display='none'; document.getElementById('tplge_olBG').style.display='none'"></div>



<!-- Menu -->

<div id="tplge_olMenu" class="tplge_olMenu">

<button id="tplge_olMenuClose" class="tplge_olMenuClose" onclick="document.getElementById('tplge_olMenu').style.display='none'; document.getElementById('tplge_olBG').style.display='none'">X</button>
<!-- <h4><?php // echo $tx['menu']['sitemap'];?></h4> -->

<!-- toc -->
	<div class="tplge_olMenuToc">
<?php echo toc();?>
	</div>
</div>



<!-- search -->

<div id="tplge_olSearch" class="tplge_olSearch">

<button id="tplge_olSearchClose" class="tplge_olSearchClose" onclick="document.getElementById('tplge_olSearch').style.display='none'; document.getElementById('tplge_olBG').style.display='none'">X</button>
<!-- <h4><?php // echo $tx['menu']['sitemap'];?></h4> -->

<!-- searchbox -->
	<div class="tplge_olSearchbox">
<?php echo tf_searchbox();?> 
	</div>
</div>

<!-- END OVERLAYS -->





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