$(document).ready(function () {
  
    function mycarousel_initCallback(carousel) {
        $('#featured-item-next').bind('click', function () {
            carousel.next();
            return false;
        });
        $('#featured-item-prev').bind('click', function () {
            carousel.prev();
            return false;
        });

        // Disable autoscrolling if the user clicks the prev or next button.
        carousel.buttonNext.bind('click', function () {
            carousel.startAuto(0);
        });

        carousel.buttonPrev.bind('click', function () {
            carousel.startAuto(0);
        });

        // Pause autoscrolling if the user moves with the cursor over the clip.
        carousel.clip.hover(function () {
            carousel.stopAuto();
        }, function () {
            carousel.startAuto();
        });
	

    };
   

    $('#featured_content').jcarousel({
        scroll: 1,
        auto: 10, // Sets the time delay between automatic scrolling of the panel
        wrap: 'last',
        initCallback: mycarousel_initCallback,
        // This tells jCarousel NOT to autobuild prev/next buttons
        buttonNextHTML: null,
        buttonPrevHTML: null
    });

     $('a.lightbox').lightBox({
	overlayBgColor: '#000',
	overlayOpacity: 0.6,
	imageLoading: 'http://www.avd-gorinchem.com/images/lightbox-ico-loading.gif',
	imageBtnClose: 'http://www.avd-gorinchem.com/images/lightbox-btn-close.gif',
	imageBtnPrev: 'http://www.avd-gorinchem.com/images/lightbox-btn-prev.gif',
	imageBtnNext: 'http://www.avd-gorinchem.com/images/lightbox-btn-next.gif',
	containerResizeSpeed: 300,
	txtImage: 'Afbeelding',
	txtOf: 'van'
   });

});
