$('document').ready(function(){
	
	
		
	// Only load shadowbox when necessary
	if($('ul.thumbs').get(0))
	{
		$.getScript('/assets/js/shadowbox.js', function() {

		  	Shadowbox.init({skipSetup: true});
			Shadowbox.options.slideshowDelay = 5;

			$('a.thumb').shadowbox({
		        gallery:            "Foto's",
				continuous: true,
				troubleElements: [],
				onOpen: function(currentImage){ 
				                Shadowbox.play();
								Shadowbox.pause(); 
				        }
		    });
		
		

		});
	}
		

});
