$(document).ready(function () 
{
	$("a.light-box").fancybox(
	{ 	
		'overlayShow' : false,
		'zoomSpeedIn' : 600,
		'zoomSpeedOut' : 300,
		'easingIn' : 'easeOutBack',
		'easingOut' : 'easeInBack' 
	}); 
	
	$("ul.menu li").mouseenter(function() 
	{
		$(this).children('ul').slideDown(500, 'easeInSine');
	});
	
	// Projecten
	
	$('.content-project-box').mouseenter(function(){$(this).css('background','#E3F3D9')});
	$('.content-project-box').mouseleave(function(){$(this).css('background','#FFF')});
	

    var counter = 1,
        divs = $('#posit_vacature_1, #posit_vacature_2');

    function showDiv () 
    {
        divs.fadeOut(500)      
            .filter(function (index) 
            { 
            	return index == counter % 2; 
            }) 
            .fadeIn(1000);

        counter++;
    }; 

    showDiv();
    
    setInterval(function () 
    {
        showDiv();
    }, 7 * 1000);   






	
});
