<?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 {height: 20px;}
</style>
';
}

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

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

</head>



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



<!-- CONTAINERS -->

<div class="tplge_contentsContainer">



<!-- CONTENT -->

<div class="tplge_content">

<header>

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

<!-- site title -->
<?php 
if(!$edit)
{
	echo '<div class="tplge_sitename">' . sitename() . '</div>';
}
?>

</header>


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



	<main class="tplge_contentIn">

<article>

<nav class="tplge_sibmenu">
<?php if($s>=0) echo tf_siblingsmenu('default','permanent'); ?>
</nav>
<div style="clear: both;"></div>

<?php echo content(); ?>

</article>



<nav class="tplge_submenu">
<?php echo tf_submenu();?>
</nav>
<div style="clear: both;"></div>

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

		<div class="tplge_tocArea">

<!-- <img src="<?php //echo $pth['folder']['templateimages']; ?>gayde-logo-01.png" class="tplge_sidebarLogo" alt=""> -->

<!-- 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_subnav">
<?php echo newsbox('Subnav'); ?>
</nav>

<nav id="tplge_icons" 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 class="tplge_newsArea">

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

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

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

<!-- END SIDEBAR NAV -->



</div>

<!-- END CONTAINERS -->



<!-- CONTENTPLUS BEREICHE -->

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



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



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

<!-- END FIXED NAVIGATION -->



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

</body>
</html>