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





<!-- WEBSITE CONTAINER -->

<div class="tplge_outerContainer">





<!-- CONTENT CONTAINERS -->

<div class="tplge_contentsContainer">





<!-- CONTENT -->

	<div class="tplge_content">

		<header class="tplge_contentHeader">
<div class="tplge_sitename"><?php echo sitename();?></div>
		</header>

	<main class="tplge_contentIn">

<!-- languagemenu -->
<?php echo tf_languagemenu();?>

<!-- locator -->
<?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">«</span>') . '
</div>
</nav>
';
}
?>

<article>

<?php echo content(); ?>

</article>

<nav class="tplge_subsibmenus">
<?php echo tf_submenu();?>
<?php echo tf_siblingsmenu();?>
</nav>

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

<header class="tplge_sidebarHeader">
<div class="tplge_sitename"><?php echo sitename();?></div>
</header>

	<div class="tplge_sidebarNavIn">

		<div class="tplge_menuArea">

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

<?php echo '<h2>' .$tx['menu']['sitemap'] . '</h2>';?>

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

		<aside class="tplge_newsArea">

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

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

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

		</aside>

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

<!-- END SIDEBAR NAV -->


</div>

<!-- END CONTENT CONTAINERS -->





<!-- INFOBOXES -->

<div id="cplus"></div>
<?php echo tf_contentPlus();?>
<?php echo tf_contentPlus('tfContentPlus2','tf_cplus2');?>

<!-- END INFOBOXES -->





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





<!-- 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'; document.getElementById('tplge_olMenuClose').style.display='none'; document.getElementById('tplge_olSearchClose').style.display='none'"></div>

<!-- Menu -->
<div id="tplge_olMenu" class="tplge_olMenu">
<div class="tplge_olMenuIn">

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

<button id="tplge_olMenuClose" class="tplge_olMenuClose" onclick="document.getElementById('tplge_olMenu').style.display='none'; document.getElementById('tplge_olBG').style.display='none'; document.getElementById('tplge_olMenuClose').style.display='none'">X</button>


<!-- search -->
<div id="tplge_olSearch" class="tplge_olSearch">
<div class="tplge_olSearchIn">

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

<button id="tplge_olSearchClose" class="tplge_olSearchClose" onclick="document.getElementById('tplge_olSearch').style.display='none'; document.getElementById('tplge_olBG').style.display='none'; document.getElementById('tplge_olSearchClose').style.display='none'">X</button>

<!-- END OVERLAYS -->





<!-- FIXED NAVIGATION -->

<nav class="tplge_pageNav">

<a href="./" title="<?php echo $tx['locator']['home'];?>"><img src="<?php echo $pth['folder']['templateimages']; ?>homelink.gif" class="tplge_homelinkButton" style="margin-left: 6px;" alt="<?php echo $tx['locator']['home'];?>"></a>
<a href="./?sitemap" title="<?php echo $tx['menu']['sitemap'];?>"><img src="<?php echo $pth['folder']['templateimages']; ?>sitemaplink.gif" class="tplge_sitemaplinkButton" alt="<?php echo $tx['menu']['sitemap'];?>"></a>

<!-- scroll buttons -->
<script>
document.write ("<img src=\"<?php echo $pth['folder']['templateimages']; ?>menulink.gif\" class=\"tplge_menulinkButton\" style=\"margin-right: 9px;\" title=\"<?php echo $tx['menu']['main_menu'];?>\" alt=\"<?php echo $tx['menu']['main_menu'];?>\" onclick=\"document.getElementById('tplge_olMenu').style.display='block'; document.getElementById('tplge_olBG').style.display='block'; document.getElementById('tplge_olMenuClose').style.display='block';\">");
</script>
<noscript><a href="#tplge_menuAnchor" title="<?php echo $tx['menu']['main_menu'];?>"><img src="<?php echo $pth['folder']['templateimages']; ?>menulink.gif" class="tplge_menulinkButton" alt="<?php echo $tx['menu']['main_menu'];?>"></a></noscript>

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

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

</nav>





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