<?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>
';
}

if($edit) 
{
echo '
<style>
.tplge_sitename {display: none;}
</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 class="tplge_header">
<div class="tplge_sitename"><a href="./"><?php echo sitename();?></a></div>
</header>

<header class="tplge_placeholder">
<div class="tplge_sitename"><a href="./"><?php echo sitename();?></a></div>
</header>

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



<!-- CONTENT CONTAINERS -->

<div class="tplge_contentsContainer">



<!-- CONTENT -->

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

<!-- locator -->
<?php 
if(!$edit) 
{
echo '<nav class="tplge_locator">
<div class="tplge_locator_L2">
<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">
	<div class="tplge_sidebarNav_L2">

		<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 
if(function_exists('pex_csstree') && isset($plugin_cf['pagexplorer']['replace_toc_by_csstree']) && $plugin_cf['pagexplorer']['replace_toc_by_csstree'] == 'true')
{
	echo pex_csstreeToc();
}
else
{
	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 class="tplge_newsBox tplge_newsBox2">
<?php echo newsbox('News02'); ?>
</div>

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

		</aside>

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

<!-- END SIDEBAR NAV -->



<!-- FOOTER -->

<footer class="tplge_footer">

<p>
<span>Powered by <a href="http://www.cmsimple.org/">CMSimple</a>&nbsp;&nbsp;&nbsp;</span>
<span>Template: <a href="http://www.ge-webdesign.de/">ge-webdesign.de</a>&nbsp;&nbsp;&nbsp;</span>
<span><?php echo loginlink();?></span>
</p>
<div style="clear: both;"></div>

</footer>

<!-- END FOOTER -->



</div>

<!-- END CONTENT CONTAINERS -->



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

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

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

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

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



</body>
</html>