<?php

include ("includes/functions.php");

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Het Kompas :: Welkom</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width">

<? MetaStuff (); ?>
<link href="style.css" rel="stylesheet" type="text/css" />
<link href="colorbox.css" rel="stylesheet"  />
<script type="text/javascript" src="includes/AC_RunActiveContent.js" language="javascript"></script>

<script type="text/javascript">
<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<style type="text/css">
td img {display: block;}
</style>
<script src="Scripts/AC_ActiveX.js" type="text/javascript"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js" type="text/javascript"></script> 
<script  src="Scripts/jquery.colorbox.min.js" type="text/javascript" ></script>

<link rel="stylesheet" href="includes/meanmenu.css" media="all" />
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="includes//jquery.meanmenu.js"></script> 
<script>
jQuery(document).ready(function () {
    jQuery('nav').meanmenu();
});
</script>

<!--<script type="text/javascript"> 
	$(document).ready(function()
	{
	    $('#verbouwingen').show();
  		$.fn.colorbox({'href':'#verbouwingen', 'open':true, 'inline':true, 'innerWidth':'750px', 'innerHeight':'600px'}); 
	   	$().bind('cbox_closed', function()
		{
      	$('#verbouwingen').hide();
	    }); 
	});
</script>-->  

</head>
<body bgcolor="#f2eeea">

<div style='display:none'>
	<div id="verbouwingen">
		<br />
		<p align="center">
			<img src="http://www.hetkompas.be/images/renovatie_nl_3.jpg" width="700" height="525" />
		</p>
		<p align="center"><a href='#' onclick='parent.jQuery.fn.colorbox.close(); return false;'>KLIK HIER OM VERDER TE GAAN NAAR ONZE WEBSITE</a></p>
	</div>
</div>

<div align="center">
	<div id="Wrapper">
		<div id="Header">
			<div id="HeaderNavigContainer">
				<div id="mobile-nav">
				<nav class="mob-menu">
					<ul class="HeaderNavig">
					<li><a href="index.php" id="current">Welkom</a></li>
					<li><a href="fotogal.php">Foto's</a></li>
					<li><a href="artikels.php">Artikels &amp; Media</a></li>
					<li><a href="contact.php">Contacteer Ons</a></li>
					<li><a href="ligging.php">Praktisch &amp; Ligging</a></li>
				</ul>
				</nav>
				</div>
			</div>
			<div class="langsel"><a href="index_fr.php">Fran&#231;ais</a></div>
		</div>
		<div id="SubHeader">&nbsp;</div>
		<div id="Content">
			<table width="100%" cellpadding="0" cellspacing="0">
				<tr>
					<td id="LeftSide">
						<div class="LeftSide">
						<? SubMenu (); ?>
						</div>
					</td>
					<td id="CenterPage">
						<div class="CenterPage">
						<? ToonInhoud (); ?>
						<br/><br/>
                        <iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.hetkompas.be%2F&amp;send=false&amp;layout=standard&amp;width=450&amp;show_faces=true&amp;action=like&amp;colorscheme=light&amp;font&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>
                        </div>
					</td>
					<td id="RightSide"><!--<br />
						<iframe width="234" height="200" src="http://www.youtube.com/embed/RlFMSB-MAJo?rel=0&autoplay=1&wmode=transparent" frameborder="0" allowfullscreen></iframe>
                        <!--<object width="234" height="157"><param name="movie" value="http://www.youtube.com/v/nWt6y00nZ_s&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/nWt6y00nZ_s&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="234" height="157"></embed></object>
						 <br /><br />
						<a href="virtualtour/index.htm"><img src="images/virtualtour.png" width="234" height="157" alt="Het Kompas foto 2" /></a><br /><br />
                        <img src="images/HomePagePhoto-1212-2.jpg" width="234" height="157" alt="Het Kompas foto 2" />	<br />-->
                        <img src="images/nl en fr trans.png" width="234" height="234" alt="Het Kompas foto 2" />	<br />
                        <a href="http://www.faq.hetkompas.be/FAQ NL.pdf" target="new"><img src="images/faq.png" width="234" height="127" alt="Het Kompas Faq" /></a></a>	<br />
					</td>
				</tr>
			</table>
		</div>
	</div>
	<div id="Footer">&nbsp;</div>
	<div id="FooterContent">
		<? FooterContent (); ?>
	</div>
</div>
<? GoogleAnal (); ?>

<script>
  (function (w,i,d,g,e,t,s) {w[d] = w[d]||[];t= i.createElement(g);
    t.async=1;t.src=e;s=i.getElementsByTagName(g)[0];s.parentNode.insertBefore(t, s);
  })(window, document, '_gscq','script','//widgets.getsitecontrol.com/137588/script.js');
</script>

</body>
</html>


<?php

function ToonInhoud ()
{
	$sql_command = "SELECT * FROM mod_PageEdit WHERE publiceren = 1 ORDER BY id DESC";
	
	$sql_result = (mysql_query($sql_command)) or die("<b>A fatal MySQL error occured</b>.\n<br />Query: " . $query . "<br />\nError: (" . mysql_errno() . ") " . mysql_error());

	while ($row=mysql_fetch_array($sql_result)) 
		{
	echo '<h1>'.$row['titel'].'</h1>';
	echo '<p>'.$row['inhoud'].'</p>';
		}
}

?>
