$(document).ready(function() {
	
	DD_roundies.addRule('#work', '15px', true);
	DD_roundies.addRule('#noteupload', '15px', true);
	DD_roundies.addRule('#header .item', '10px', true);
	DD_roundies.addRule('#opbeddag a img', '15px', true);
	DD_roundies.addRule('.rounded', '15px', true);
	DD_roundies.addRule('.btn_form', '7px', true);
	
	$('#slider').nivoSlider({
		effect:'random',
		slices:15,
		startSlide:Math.floor(Math.random()*($('#slider img').length)),
		animSpeed:500,
		pauseTime:4000,
		directionNav:false,
		controlNav:true,
		pauseOnHover:false,
		captionOpacity:0.8
	});
	
	$("a.fancy").fancybox({
		'titleShow'		: false
	});
	
	$(".scrollable").scrollable({ 
		vertical: true, 
		mousewheel: true,
		circular: true
	}).autoscroll({
		interval: 1500
	});
	
	$('#work .items a').click(function(e){
		e.preventDefault();
	}).hover(function(){
		$(this).stop().find('span').slideDown('fast');
		$(this).find('img').animate({opacity: 1}, 500);
	}, function(){
		$(this).stop().find('span').slideUp('fast');
		$(this).find('img').animate({opacity: 0.5}, 500);
	});
	
});

