<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<?php
	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,"\" />";
?>
<?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 -->";
?>
<link href="<?php echo $firstparturl,$templatedir;?>styles.css" rel="stylesheet" type="text/css" />

<style>#buttons a {width: <?php echo floor(690/(1+substr_count(buildmenu("1","1","1"),"<li")));?>px;}</style>

</head>
<body>
<div class="bg_foot">
<div id="main">
<!-- header begins -->
<div id="header">
    <div id="buttons">


	<?php 
	$menu=buildmenu("1","1","1"); if(!empty($menu)) {
	if ($start=="1")echo "<li class=\"level_1_010\"><a href=\"$firstparturl\" id=\"mainmenu_active\">HOME</a></li>";else echo "<li class=\"level_2_222\"><a href=\"$firstparturl\" id=\"mainmenu_link\">HOME</a></li>";	
	echo $menu; 
	} ?>

    </div>
	<div id="logo"><a href="#"><?php echo $titel;?></a>
	  <h3><a href="http://www.metamorphozis.com/" id="metamorph">Design by Metamorphosis Design</a> <a href="http://cms.libe.net">powered by cms.libe.net</a></h3>
	</div>
</div>
<!-- header ends -->
        <!-- content begins -->
        <div id="content">
            <div id="left">
           	    <?php if (!empty($titel)) echo "<h2>", $titel, "</h2>";?>
                <div class="left_b">
			<?php echo $text;?>
                </div>
            </div>
            <div id="right">

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

            	echo "<h1>",$menuforlevel[2],"</h1>
                <div class=\"tit_bot\">
                  <ul>

			$menu 

                  </ul>
                  <br />
           	  </div>";} ?>
	
		<?php echo loadcontent("additional-area");?>	

         </div>
         <div style="clear: both;"><img src="images/spaser.gif" alt="" width="1" height="1" /></div>
</div>
<!-- content ends -->
 <!-- footer begins -->
<div id="footer">
  Copyright  2010. Designed by <a href="http://www.metamorphozis.com/" title="Flash Templates">Flash Templates</a>  <a href="http://cms.libe.net">powered by cms.libe.net</a><br />
		<a href="#">Privacy Policy</a> | <a href="#">Terms of Use</a> | <a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional"><abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a> | <a href="http://jigsaw.w3.org/css-validator/check/referer" title="This page validates as CSS"><abbr title="Cascading Style Sheets">CSS</abbr></a>
</div>
<!-- footer ends -->
</div>
</div>
</body>
</html>
