<?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">
</head>

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





<!-- fixed header (pageNav) -->
<div class="tplge_pageNav">

<!-- scroll buttons -->
<a href="./"><img src="<?php echo $pth['folder']['templateimages']; ?>homelink.gif" class="tplge_homelinkButton" alt=""></a>
<a href="./?sitemap"><img src="<?php echo $pth['folder']['templateimages']; ?>sitemaplink.gif" class="tplge_sitemaplinkButton" alt=""></a>
<!--
<a href="#tplge_content"><img src="<?php // echo $pth['folder']['templateimages']; ?>contentlink.gif" class="tplge_contentlinkButton" alt=""></a>
-->
<a href="#tplge_menuLink"><img src="<?php echo $pth['folder']['templateimages']; ?>menulink.gif" class="tplge_menulinkButton" alt=""></a>
<a href="#tplge_menuLink"><img src="<?php echo $pth['folder']['templateimages']; ?>searchlink.png" class="tplge_searchlinkButton" alt=""></a>
<a href="#tplge_newsLink"><img src="<?php echo $pth['folder']['templateimages']; ?>newslink.gif" class="tplge_newslinkButton" alt=""></a>
<a href="#top"><img src="<?php echo $pth['folder']['templateimages']; ?>toplink.gif" class="tplge_toplinkButton" alt=""></a>

</div>





<!-- 
############################################# 
             CONTENTS CONTAINER
############################################# 
-->

<div id="tplge_siteContainer" class="tplge_siteContainer" <?php if($adm) echo 'style="padding-top: 60px;"' ?>>


<?php 
if(!$edit) 
{
	echo '	<div class="tplge_langmenu">' . languagemenu() . '	</div>
';
}
?>

<?php if(!$edit) echo '<h1 class="tplge_sitetitle">' . sitename() . '</h1>'; ?>
	<div class="tplge_clearBoth"></div>

<!-- locator -->
<?php 
if($s > 0 && !$edit) 
{
echo '
	<div class="tplge_locator">' . tf_locator('&laquo;') . '
	</div>
';
}
?>





<!-- CONTENT -->

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

		<div id="tplge_menus" class="tplge_menus">
<?php if($s == 0 && !$edit) echo toc();?>

<?php if(!$edit && submenu() != '') 
{
	echo '			<div id="tplge_submenu" class="tplge_submenu">
' . submenu() . '			<div class="tplge_clearBoth"></div>
			</div>
';
}
?>
		<div class="tplge_clearBoth"></div>
		</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>

<!-- END CONTENT --> 

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





<!-- SIDEBAR -->

	<div id="tplge_sidebar" class="tplge_sidebar">

<!-- newsarea -->
		<div id="tplge_newsArea" class="tplge_newsArea">
		<div id="tplge_newsLink" class="tplge_newsLink"></div>
			<div class="tplge_news">
			<div class="tplge_newsIn">
<?php echo newsbox('News01'); ?>
			</div>
			</div>

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

<!-- tocarea -->
		<div id="tplge_tocArea" class="tplge_tocArea">
		<div class="tplge_tocAreaIn">
		<div id="tplge_menuLink" class="tplge_menuLink"></div>
		
<h4><?php echo $tx['menu']['sitemap']; ?></h4>

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

<?php echo toc();?>

		</div>
		</div>

<!-- END SIDEBAR -->

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





<!-- 
############################################# 
                 FOOTER
############################################# 
-->

	<div id="tplge_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 
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>
	</div>
	
	
<!-- END CONTENTS CONTAINER -->

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

</body>
</html>