<html lang="de">
<head>
<meta charset="ISO-8859-1" />

	<?php
	//php code for loading the content...
	if( !isset( $HTTP_GET_VARS ) )
	$HTTP_GET_VARS =& $_GET;
	@include("var.php");
	@include($wobinich."functions.php");
	@include($wobinich."buildpage.php");
	error_reporting(0);
	//...php code for loading the content
	?>	
		
<link rel="stylesheet" href="<?php echo $firstparturl,$templatedir;?>main.css" type="text/css" />

<title><?php echo $titel;?></title>

<?php if (!empty($meta)) echo "<meta name=\"description\" content=\"", $meta,"\" />";
?>

<!-- load javascript effects ... -->
	<!-- jQuery (required for AnySlider and Slimbox2) -->
		<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js"></script>
	<!-- AnySlider ...
		//to load anyslider: you need a topic called effects-startpage, put pictures into it and load the effect in an other topic by typing: ***effects-startpage-PLACEHOLDER*** -->
		<?php if (inStr("***effects-startpage-PLACEHOLDER***",$text)) {?>
		<script>window.jQuery || document.write('<script src="<?php echo $firstparturl,$templatedir;?>any-slider/js/jquery.min.js"><\/script>')</script>
		<link rel="stylesheet" href="<?php echo $firstparturl,$templatedir;?>any-slider.css">
		<!-- Anything Slider -->
		<link rel="stylesheet" href="<?php echo $firstparturl,$templatedir;?>any-slider/css/anythingslider.css">
		<script src="<?php echo $firstparturl,$templatedir;?>any-slider/js/jquery.anythingslider.js"></script>
		<!-- Anything Slider optional plugins -->
		<script src="<?php echo $firstparturl,$templatedir;?>any-slider/js/jquery.easing.1.2.js"></script>
		<link rel="stylesheet" href="<?php echo $firstparturl,$templatedir;?>any-slider/css/theme-metallic.css">
		<!-- Define slider dimensions here -->
		<style>
		#slider { width: 400px; height: 300px;}
		div.anythingSlider .anythingWindow {height: 300px;}
		</style>
		<script>
		<!-- AnythingSlider initialization -->
			// DOM Ready
			$(function(){
				$('#slider').anythingSlider({
	 			autoPlay      : true,
				buildArrows         : true,     // If true, builds the forwards and backwards buttons
				buildNavigation     : true,   	// If true, builds a list of anchor links to link to each panel
				buildStartStop      : true, 	// If true, builds the start/stop button
				theme           : 'metallic',
				easing          : 'easeInOutBack'     
				});
			});
		</script>
		<!-- Older IE stylesheet, to reposition navigation arrows, added AFTER the theme stylesheet -->
		<!--[if lte IE 9]>
		<link rel="stylesheet" href="<?php echo $firstparturl,$templatedir;?>anythingslider-ie.css" type="text/css" media="screen" />
		<![endif]-->
		<?php 
		//Placeholder: ***EFFECT-SLIDER-PLACEHOLDER*** replaced by anythingSlider: 
		$effect=loadcontent("effects-startpage");//load the Content of topic effects-startpage->
		$text=str_replace("***effects-startpage-PLACEHOLDER***", "<ul id=\"slider\">$effect</ul>", $text);//put the loaded content in <ul id=..></ul>
		}
		?>
	<!-- ... AnySlider -->

	<!-- Slimbox2 -->
		<?php if (inStr("lightbox[roadtrip]",$text)) { ?>
		<script type="text/javascript" src="<?php echo $firstparturl;?>lightbox/slimbox/js/slimbox2.js"></script>
		<link rel="stylesheet" href="<?php echo $firstparturl;?>lightbox/slimbox/css/slimbox2.css" type="text/css" media="screen" />
		<?php }?>
	<!-- ... Slimbox2 -->
<!-- ...load javascript effects-->

</head>
<body>
	<div id="container">
		<div id="headline">
			<h1>cms.libe.net</h1>
				<p>Simple Homepage Manager </p>
		</div>
		<div id="line"> <?php if (!empty($article)) echo $backlink;?>
		</div>
			<div id="left">
				<?php 
				$menu=buildmenu("1","1","0"); if(!empty($menu)) {echo "<ul>";
				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; 
				echo "</ul>
				</li>";} ?>							
			</div>
			<div id="content">
				<div id="right">
					<?php echo loadcontent("additional-area");?>		
				</div>
				<div id="center">
					<?php echo $text;?>
				</div>
			</div>
	</div>
	<div id="footer"><a href="http://cms.libe.net">powered by cms.libe.net</a>
	</div>

</body>
</html>
