<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
Design by Free CSS Templates
http://www.freecsstemplates.org
Released for free under a Creative Commons Attribution 2.5 License
--><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
				
<link rel="stylesheet" href="<?php echo $firstparturl,$templatedir;?>default.css" type="text/css" />
<title><?php echo $titel;?></title>
<?php if (!empty($meta)) echo "<meta name=\"description\" content=\"", $meta,"\" />";
?>
		<script type="text/javascript" src="<?php echo $firstparturl;?>plugins/jquery/jquery-1.7.2.min.js"></script>
<!-- Lightbox -->
		<?php if (inStr("lightbox[roadtrip]",$text)) { ?>

		<link rel="stylesheet" href="<?php echo $firstparturl;?>plugins/lightbox/css/lightbox.css" type="text/css" media="screen" />
		<script type="text/javascript" src="<?php echo $firstparturl;?>plugins/jquery/jquery-ui-1.8.18.custom.min.js"></script>
		<script type="text/javascript" src="<?php echo $firstparturl;?>plugins/jquery/jquery.smooth-scroll.min.js"></script>
		<script type="text/javascript" src="<?php echo $firstparturl;?>plugins/lightbox/js/lightbox.js"></script>
		<?php }?>
<!-- ... Lightbox -->


<body>
<div id="logo">
	<h1><?php echo $page_title;?></h1><br>
	<h2><a href="<?php echo $firstparturl;?>"><?php echo $page_description;?></a></h2>
</div>
<div id="menu">
												<?php 
												$menu=buildmenu("1","1","1"); if(!empty($menu)) {echo "<ul>";
												if ($start=="1")echo "<li class=\"level_1_010\"><a href=\"$firstparturl\" class=\"mainmenu_active\">HOME</a></li>";else echo "<li class=\"level_2_222\"><a href=\"$firstparturl\" class=\"mainmenu_link\">HOME</a></li>";	
												echo $menu; 
													echo "</ul>
												</li>";} ?>

</div>
<div id="content">
	<div id="sidebar">

												<?php 
												$menu=buildmenu("1","1","0"); if(!empty($menu)) {

												echo "		<div id=\"login\" class=\"boxed\">
													<h2 class=\"title\">Menu</h2>
													<div class=\"content\"><ul>";
												echo $menu; 
												echo "</ul>
												</li></div></div>";} ?>
			
		

	</div>
	<div id="main"><?php if (!empty($article)) echo $backlink, "<br /><br />";?>
		<div id="welcome" class="post">
					<?php if (!empty($smalldescription)) echo "<h2>". $smalldescription. "</h2><br>";?>
					<?php if ($start==1) {$newest= newest(3,0,1,12); if (strlen($newest)>84){echo "<h1>New Topics <a href=\"$firstparturl"."rss.php\"><img src=\"". $firstparturl. "image/rss.png\" alt=\"Newsfeed\" style=\"border:0\"></a></h1>"; echo $newest; echo "<br>";}} //New Entries if there are any: count the stringlengh and deside if there is an entry ?>
					<?php echo $text;?>
					<?php if (empty($text) and $start!=1) echo str_replace('width="150"','width="100"', buildmenu($level+1,$level+1,$level+1,"0","1"));//if there is no text in an topic build a menu?>
					<?php if ($start!=1) if ($addfeedback==1) {echo "<div style=\"clear:left;\"></div><br><h1>Kommentare</h1>";include("plugins/libe/feedback.php");}?>

		</div>
	</div>
	<div id="extra" style="clear: both;"></div>
</div>
<div id="footer">
	<p id="legal">Copyright (c) 2007 The Wild. All Rights Reserved. Designed by <a href="http://www.freecsstemplates.org/">Free CSS Templates</a>.<!--%@##--> Design provided by <a href="http://www.freewebtemplates.com">Free Website Templates</a>.<!--##@%--></p>
	<p id="links"><a href="http://cms.libe.net">powered by cms.libe.net</a>
</div>
</body></html>
