<?php require_once 'nsoconfig.php';?>
<?php include_once '_cake_top.php';?>
<?php include_once '_cake_header.php';?>
<div id="main-content">
	<?php include_once'_cake_searchbar.php'?>
	<div class="pml">
		<?php 
		$page = getPost($_GET['id']);
		$theCat = $_GET['cat'];
		if ($theCat == 18) {
			$file = getFileWithFullPathByPost($_GET['id'], 'vedio');
		}
		?>
		<div class="pmlt1"><img src="images/ic_p.gif"><?php echo $page['title']?></div>
		<div class="h10"></div>
		<div class="pmlt3">
			<div class="pjtt"></div>
			<div class="pjltc lhei">
			<?php if ($theCat == 18):?>
			<embed src="<?php echo $file?>">
			<?php else:?>
			<?php echo $page['content']?>
			<?php endif;?>
			</div>
			<p>&nbsp;</p>
			<p>&nbsp;</p>
		</div>
		<div class="h15"></div>
	</div>
	<?php include_once '_cake_solution_siderbar.php';?>
</div>
<?php include_once '_cake_footer.php';?>