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









<!-- HEADER -->

<header>

<!-- language menu -->
<div class="tplge_langmenu">
<?php echo languagemenu(); ?>
</div>

<!-- site title -->
<?php if(!$edit) echo '<div class="tplge_sitetitle"><a href="./">' . sitename() . '</a></div>'; ?>
	<div class="tplge_clearBoth"></div>

<!-- locator -->
<?php echo '<nav class="tplge_locator">
<p class="tplge_locText">' . $tx['locator']['text'] . '</p>
' . tf_locator('&laquo;') . '
</nav>
';?>

</header>





<!-- CONTENT -->

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

<!-- menus -->

<?php if(!$edit && tf_submenu()!='') echo '<div id="tplge_submenu" class="tplge_submenu">' . tf_submenu() . '</div>';?>
<?php if(!$edit && $s>0 && tf_submenu()=='') echo '<div id="tplge_sibmenu" class="tplge_sibmenu">' . tf_siblingsmenu() . '</div>';?>
<?php if(!$edit && $s==0) echo '<div id="tplge_sibmenu0" class="tplge_sibmenu0">' . tf_siblingsmenu() . '<div class="tplge_clearBoth"></div></div>';?>
	<div class="tplge_clearBoth"></div>


<?php echo content();?>
<div class="tplge_clearBoth"></div>

	<div class="tplge_prevtopnext">
<span><?php echo tf_previouspage('prev.gif');?></span>
<span><?php echo tf_top('top.gif');?></span>
<span><?php echo tf_nextpage('next.gif');?></span>
	<div class="tplge_clearBoth"></div>
	</div>

	<div 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'); ?>
	</div>
	<div class="tplge_clearBoth"></div>

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

<!-- END CONTENT --> 





<!-- NEWS AREA -->

<div id="tplge_newsArea" class="tplge_newsArea">
<div id="tplge_newsAreaIn" class="tplge_newsAreaIn">
	<div class="tplge_newsBox">
	<div class="tplge_newsBoxIn">
	<div id="tplge_newsAnchor" class="tplge_newsAnchor"></div>
<?php echo newsbox('News01'); ?>
	</div>
	</div>

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

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

	<div class="tplge_newsBox tplge_newsBoxToc">
	<div class="tplge_newsBoxIn">
	<div id="tplge_menuAnchor" class="tplge_menuAnchor"></div>
	<h2><?php echo $tx['menu']['sitemap']; ?></h2>

	<!-- searchbox -->
	<div id="tplge_searchboxContainer" class="tplge_searchboxContainer">
<?php echo str_replace('class="submit" value="' . $tx['search']['button'],'class="submit" title="' . $tx['search']['button'] . '" value="  ',searchbox());?>
	</div>
	<div class="tplge_clearBoth"></div>

	<!-- toc -->
<?php echo toc();?>
	</div>
	</div>

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

<!-- END NEWS AREA -->





<!-- FOOTER -->

<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 
if($adm && !$edit)
{
echo '<a href="http://validator.w3.org/check?uri=referer">html5</a> | 
<a href="http://jigsaw.w3.org/css-validator/check/referer">css</a> | ';
}
?>

<?php echo loginlink();?>
</p>

<div class="tplge_clearBoth"></div>
</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>





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