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

Name       : Scribbled   
Description: A two-column, fixed-width design with dark color scheme.
Version    : 1.0
Released   : 20110620

-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
<?php
/*Include HEAD*/
if( !isset( $HTTP_GET_VARS ) )
$HTTP_GET_VARS =& $_GET;
@include("var.php");
@include($wobinich."functions.php");
@include($wobinich."buildpage.php");
error_reporting(0);
?>				
<title><?php echo $titel;?></title>
<?php if (!empty($meta)) echo "<meta name=\"description\" content=\"", $meta,"\" />";
?>
<link href="<?php echo $firstparturl,$templatedir;?>style.css" rel="stylesheet" type="text/css" media="screen" />
<?php 
echo"
<!--lightbox -->
<script type=\"text/javascript\" src=\"",$firstparturl, "lightbox/js/prototype.js\"></script>
<script type=\"text/javascript\" src=\"",$firstparturl, "lightbox/js/scriptaculous.js?load=effects,builder\"></script>
<script type=\"text/javascript\" src=\"",$firstparturl, "lightbox/js/lightbox.js\"></script>
<link rel=\"stylesheet\" href=\"", $firstparturl, "lightbox/css/lightbox.css\" type=\"text/css\" media=\"screen\" />
<!--lightbox -->";
?>
<style>#menu a {width: <?php echo floor(580/(1+substr_count(buildmenu("1","1","1"),"<li")));?>px;}</style>
</head>
<body>
<div id="wrapper">
	<div id="wrapper-bgbtm">
		<div id="bg1">
			<div id="bg2">
				<div id="bg3">
					<div id="header">
						<div id="logo">
							<h1><a href=""><?php echo $titel;?></a></h1>
							<p>template design by <a href="http://www.freecsstemplates.org/">CSS Templates</a> cms by <a href="http://cms.libe.net/">cms.libe.net</a></p>
						</div>
					</div>
					<!-- end #header -->
					<div id="menu">
						<ul>
							<?php 
							if ($start=="1")echo "<li><a href=\"$firstparturl\" id=\"mainmenu_active\">Home</a></li>";else echo "<li><a href=\"$firstparturl\" id=\"mainmenu_link\">Home</a></li>";	
							echo buildmenu("1","1","1");?>
						</ul>
					</div>
					<!-- end #menu -->
					<div id="page">
						<div id="page-bgtop">
							<div id="page-bgbtm">
								<div id="content">
									<div class="post">
										<h2 class="title"><a href="#"><?php echo $titel;?></a></h2>
										<p class="meta"><?php if (!empty($article)) echo $backlink;?></div></p>
										<div class="entry">
											<p><?php echo $text;?></p>
										</div>
									</div>
			
								</div>
								<!-- end #content -->
								<div id="sidebar">
									<ul>
										<?php $menu=buildmenu("2","2","2"); if(!empty($menu)) echo "
										<li>
											<h2>",$menuforlevel[2],"</h2>
											<ul>
											", $menu,"
											</ul>
										</li>"; ?>
										<?php $menu=buildmenu("3","3","3"); if(!empty($menu)) echo "
										<li>
											<h2>",$menuforlevel[3],"</h2>
											<ul>
											", $menu,"
											</ul>
										</li>"; ?>
									</ul>

								<?php echo loadcontent("additional-area");?>		
								</div>
								<!-- end #sidebar -->
								<div style="clear: both;">&nbsp;</div>
							</div>
						</div>
					</div>
					<!-- end #page -->
				</div>
			</div>
		</div>
		<div id="footer">
			<p>Copyright (c) 2011 Sitename.com. All rights reserved. Design by <a href="http://www.freecsstemplates.org/"> CSS Templates</a>. <a href="http://cms.libe.net">powered by cms.libe.net</a></p>
		</div>
		<!-- end #footer -->
	</div>
</div>
</body>
</html>
