$(document).ready(function(){
   $('#partners_carousel').jcarousel({scroll: 3});
   $('#diensten_carousel').jcarousel({scroll: 3});
   $('#partners-wide_carousel').jcarousel();

   $('#contact').formly({'onBlur':false, 'theme':'Light'});
   $('#contact2').formly({'onBlur':false, 'theme':'Light'});

   $('#cssdropdown li.headlink').hover(
      function() { $('ul', this).css('display', 'block'); },
      function() { $('ul', this).css('display', 'none');
   });

   $('.verdieping .content').hide();
      $('.verdieping h3').click(function(){
         $(this).next('.content').slideToggle();
   });

    $('.vragen .content').hide();
      $('.vragen h3').click(function(){
         $(this).next('.content').slideToggle();
   });
   
   $("a[rel^='prettyPhoto']").prettyPhoto({theme: 'light_rounded',slideshow:5000, autoplay_slideshow:true});
});

$(window).load(function() {
   $('#slider').nivoSlider({
      controlNav: true
   });
});
