<!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=ISO-8859-1" />
<title><?php echo $titel;?></title>
<?php if (!empty($meta)) echo "<meta name=\"description\" content=\"", $meta,"\" />";
?>
<link rel="stylesheet" type="text/css" href="<?php echo $firstparturl,$templatedir;?>main.css" />
<script type="text/javascript" src="<?php echo $firstparturl;?>plugins/jquery/jquery-1.7.2.min.js"></script>

		

<!-- superfish  ... -->
		<link rel="stylesheet" type="text/css" href="<?php echo $firstparturl;?>plugins/superfish/css/superfish.css" media="screen">
		<script type="text/javascript" src="<?php echo $firstparturl;?>plugins/superfish/js/hoverIntent.js"></script>
		<script type="text/javascript" src="<?php echo $firstparturl;?>plugins/superfish/js/superfish.js"></script>
		<script type="text/javascript">
		// initialise plugins
		jQuery(function(){
			jQuery('ul.sf-menu').superfish({ 
			    delay:       500,                            // one second delay on mouseout 
			    animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animation 
			    speed:       'fast',                          // faster animation speed 
			    autoArrows:  true,                           // disable generation of arrow mark-up 
			    dropShadows: false,                            // disable drop shadows 
			    hoverClass:    'sfHover',          // the class applied to hovered list items 
		   	    pathClass:     'overideThisToUse' // the class you have applied to list items that lead to the current page 
			});
		});
		</script>
		<style>
		<?php $sfwidth="600";?>
		ul.sf-menu li { width:150px; margin-top: -1px; }
		.sf-menu ul {width:150px;}
		ul.sf-menu li li:hover ul,
		ul.sf-menu li li.sfHover ul {left:200px;}
		ul.sf-menu li li li:hover ul,
		ul.sf-menu li li li.sfHover ul {left:200px;}
		.sf-menu li {
			background: #ccc;font-family: 'Verdana', cursive;filter:alpha(opacity=90);opacity: .9;-moz-opacity: .9;text-transform:capitalize;
		}

		
		.sf-menu a:focus, .sf-menu li a:hover, .sf-menu a:active {
			background: url('<?php echo $firstparturl,$templatedir;?>menupkt2.png');
			outline:		0;color:#ccc;
		}
		
		.sf-menu{margin-top:0px;}
		
		.sf-menu li li a,.sf-menu li li a:hover{
		background:#4c4c4c none;  border-style:solid;
  			border-width:2px;font-size:13px;height:10px;
 			 border-color:#fff;text-transform:uppercase;
		}
		.sf-menu li li li {
			background:		none;
		}
		.sf-menu li a{
			border:	0px;height:12px;background: url('<?php echo $firstparturl,$templatedir;?>menupkt2.png');
			}
		.sf-menu a, .sf-menu a:visited {
		    color: #fff;
		}
		</style>
<!-- ... superfish -->

<!-- corner -->
		<script type="text/javascript" src="<?php echo $firstparturl;?>plugins/jquerycorner/jquery.corner.js"></script>
		<script type="text/javascript">
			$('#center').corner("bottom 10px");
			$('#right').corner("10px");
			$('#footer a').corner("10px");
		</script>
<!-- ... corner -->


<!-- Lightbox -->
		<?php if (inStr("lightbox",$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 -->

<!-- ... Shadow animation jQuery plugin... -->
<script type="text/javascript" src="<?php echo $firstparturl;?>plugins/jquery/jquery.animate-shadow-min.js"></script>
<script type="text/javascript">
    $(document).ready(function() {
            $("#center").animate({boxShadow: '0 0 30px #000'});
	    $("#right").animate({boxShadow: '5 5 10px #000'});
    });
</script>
<!-- ... Shadow animation jQuery plugin -->



</head>
<body>

<div style="color:#000;text-align:center;font-size:50px;text-shadow: 3px 3px 3px #000;font-family: 'Verdana', cursive;"><?php echo $page_title;?></div>
<div style="color:#000;text-align:center;margin-left:100px;font-size:30px;text-shadow: 3px 3px 3px #000;font-family: 'Verdana', cursive;"><?php echo $page_description;?></div>

<div class="container">

	 <div class="glass-oben">

	 </div>
	 <div class="glass-mitte">
	   <?php if ($start==1) {?><div class="linksoben"></div><?php }?>
		<div id="headline-menu">	


				<ul class="sf-menu">
					<?php 
					echo buildmenuul("3");
					?>
				</ul>
		</div>	

<div id="menu-left">				
				<?php 
				echo str_replace("150px", "60px", buildmenu("3","3","3","0","1" ));
				?>	
		
</div>								<div id="backlink">
									<?php if (!empty($article)) echo $backlink;?>
							</div>
				   <div class="centertext">


							
							<table width=100%><tr><td width=99%>
								<?php if ($start!=1) {echo "<h1>". $titel. "</h1>"; if (!empty($smalldescription)) echo "<h2>". $smalldescription. "</h2>";}?>
								<?php //if ($start==1) {$newest= newest(3,0,1,12); if (strlen($newest)>35){echo "<h1>New Topics</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", "1"));//if there is no text in an topic build a menu?>
								<?php if ($level>=3)echo str_replace("150px", "100px", buildmenu($level+1,$level+1,$level+1,"0","1" ));?>
								<?php if ($start!=1) if ($addfeedback==1) {echo "<div style=\"clear:left;\"></div><br><h1>Kommentare</h1>";include("plugins/libe/feedback.php");}?>

					</td><td style="vertical-align: top;padding-right:20px;">	<?php if ($start==1) {$newest= newest(3,0,1,1); if (strlen($newest)>80){echo "<h2>NEWS <a href=\"$firstparturl"."rss.php\"><img src=\"". $firstparturl. "image/rss.png\" alt=\"Newsfeed\" style=\"border:0\"></a></h2>"; echo $newest; echo "<br><br>weitere Beitr&auml;ge ...<br>", newest(4,3,0,1);}} //New Entries if there are any: count the stringlengh and deside if there is an entry ?>
						 </td></tr></table>		




				 </div>
		</div>

	<div class="glass-unten">						<div id="prevnext">
							<?php if (!empty($prev_topic)) echo "<", $prev_topic, "... ";
							if (!empty($next_topic)) echo " ...", $next_topic, ">";?>
						</div></div>




<div class="footer">
<div align="left" style="margin-left:90px;text-align:right;">
 <br/><a href="http://cms.libe.net">powered by cms.libe.net</a></div>
</div>
</div>

</div>
</body>
</html>

