$(document).ready(function() { 
 Loadreferenties();
 Loadnieuws();
 Loadopdrachten();
 setInterval("Loadreferenties()", 5000);
 setInterval("Loadnieuws()", 8000);
 setInterval("Loadopdrachten()", 2000);
});

function Loadreferenties()
{
 $.ajax({
  type: "GET",
  url: "/ajax/referenties.php",
  cache: false,
  success: function(msg){
   $("#referenties").html(msg);
  }
 });
}
function Loadnieuws()
{
 $.ajax({
  type: "GET",
  url: "/ajax/nieuws.php",
  cache: false,
  success: function(msg){
   $("#nieuws").html(msg);
  }
 });
}
function Loadopdrachten()
{
 $.ajax({
  type: "GET",
  url: "/ajax/opdrachten.php",
  cache: false,
  success: function(msg){
   $("#opdrachten").html(msg);
  }
 });
}
