<?php 
$tplge_showHeaderImage = 'true';
include_once($pth['folder']['template'] . 'templatefuncs/templatefuncs.php');
?>
<!DOCTYPE html>

<html lang="<?php echo $sl;?>">
<head>
<?php echo head();?>
<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;}
.parallaxContainer {margin-top: -60px;}
</style>
';
}

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

if($adm && $edit) 
{
	echo '
<style>
.tplge_contentsContainer {top: 48px;}
.tplge_sitename {display: none;}
</style>
';
}

if($s == 0 || isset($parallaxmax)) 
{
	echo '
<style>
header {min-height: 190vh;}
.tplge_contentlink {display: block;}
</style>
';
}
else
{
	echo '
<style>
.parallax_level1 img {margin: 120vh auto 20vh auto;}
</style>
';
}
?>
</head>





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


<!-- OUTER CONTAINER -->

<div class="tplge_outerContainer">
<div id="top"><div id="TOP"></div></div>



<!-- Parallax Container-->
<div id="parallaxContainer" class="parallaxContainer">
	<div id="parallax_bg" class="parallax_bg"></div>
	<div id="parallax_level1" class="parallax_level1"><img src="<?php echo $pth['folder']['templateimages']; ?>level1.jpg" alt=""></div>
	<div id="parallax_level2" class="parallax_level2"><img src="<?php echo $pth['folder']['templateimages']; ?>level2.jpg" alt=""></div>
	<div id="parallax_level3" class="parallax_level3"><img src="<?php echo $pth['folder']['templateimages']; ?>level4.jpg" alt=""></div>
	<div id="parallax_level4" class="parallax_level4"><img src="<?php echo $pth['folder']['templateimages']; ?>level3.jpg" alt=""></div>
</div>



<!-- CONTENT CONTAINER -->

<div class="tplge_contentsContainer">



<!-- HEADER -->

<header>

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

<div class="tplge_contentlink"><a href="#tplge_contentAnchor">&raquo;</a></div>
<div class="tplge_sitename"><?php echo sitename();?></div>

</header>

<!-- END HEADER -->



<!-- CONTENT -->

<!-- content anchor -->
<div id="tplge_contentAnchor" class="tplge_contentAnchor"></div>
<div style="clear: both;"></div>

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

	<div id="tplge_content" class="tplge_content">
	<main class="tplge_contentIn">

<article>

<?php echo content(); ?>

</article>

<nav class="tplge_subsibmenus">
<?php //echo tf_submenu();?>
<?php //echo tf_siblingsmenu();?>
<?php echo tf_subsibmenu();?>
</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 --> 

<!--
<div class="tplge_betweenCN">
<div class="tplge_belowContent"></div>
<div class="tplge_aboveNewsContent"></div>
</div>
-->

<!-- NEWS AREA-->

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

<div class="tplge_newsBox tplge_newsBox1">
<div class="tplge_newsBoxIn">

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

<?php echo newsbox('News01'); ?>
</div>
</div>

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

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


<div class="tplge_newsBox tplge_newsBoxMenu">
<div class="tplge_newsBoxIn">

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

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

<!-- END NEWS AREA -->



<!-- 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> | </span> 
<span>Template: <a href="http://www.ge-webdesign.de/">ge-webdesign.de</a> | </span> 
<span><?php echo loginlink();?></span>
</p>
<div style="clear: both;"></div>

</footer>

<!-- END FOOTER -->



</div>

<!-- END CONTENT CONTAINERS -->



</div>

<!-- END OUTER CONTAINER -->



<!-- FIXED NAVIGATION -->

<nav class="tplge_pageNav">

<!-- home and sitemap buttons -->
<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 -->
<script>
document.write ("<img src=\"<?php echo $pth['folder']['templateimages']; ?>menulink.gif\" class=\"tplge_menulinkButton\" 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>



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