$(document).ready(function($){

	if($('#projectimgs').length>0){
		$('#projectimgs').cycle({ 
	    fx:    'fade', 
	    timeout:  3200,
	    speed: 500 
		});	
	}

	if($('#projectimgs2').length>0){
		$('#projectimgs2').nivoSlider({
	        effect:'fold,sliceDownLeft', // Specify sets like: 'fold,fade,sliceDown'
	        slices:8, // For slice animations
	        boxCols: 2, // For box animations
	        boxRows: 4, // For box animations
	        animSpeed:1000, // Slide transition speed
	        pauseTime:4000, // How long each slide will show
	        startSlide:0, // Set starting Slide (0 index)
	        directionNav:true, // Next & Prev navigation
	        directionNavHide:false, // Only show on hover
	        controlNav:true, // 1,2,3... navigation
	        controlNavThumbs:false, // Use thumbnails for Control Nav
	        controlNavThumbsFromRel:false, // Use image rel for thumbs
	        keyboardNav:false, // Use left & right arrows
	        pauseOnHover:false, // Stop animation while hovering
	        manualAdvance:false, // Force manual transitions
	
	        prevText: 'Vorige', // Prev directionNav text
	        nextText: 'Volgende' // Next directionNav text
	    });
	}
	$('.newsitem').cycle({ 
	    fx:    'scrollLeft', 
	    timeout:  3200,
	    speed: 1000,
	    cleartypeNoBg: true,
    	cleartype: true	, 
    	pager: '#newsnav'
	});	
	
	jQuery("a.photobox").fancybox({
		'zoomSpeedIn':	0, 
		'zoomSpeedOut':	0,
		'overlayShow': true
	});    
	
	jQuery("a.youtube").fancybox({
		'zoomSpeedIn':	100, 
		'zoomSpeedOut':	100,
		'width': 425,
		'height': 344,
		'overlayShow': true
	});    

	jQuery("a.iframe").fancybox({
		'zoomSpeedIn':	100, 
		'zoomSpeedOut':	100,
		'width': 950,
		'height': 550,
		'overlayShow': true,
		'overlayOpacity': 0.7,
		'type': 'iframe'
	});    
});

