

// Supersized Random Background

jQuery(function($){
				
				$.supersized({
				
					// Functionality
					start_slide             :   0,			// Start slide (0 is random)
					new_window				:	1,			// Image links open in new window/tab
					image_protect			:	0,			// Disables image dragging and right click with Javascript
															   
					// Size & Position						   
					min_width		        :   0,			// Min width allowed (in pixels)
					min_height		        :   0,			// Min height allowed (in pixels)
					vertical_center         :   1,			// Vertically center background
					horizontal_center       :   1,			// Horizontally center background
					fit_always				:	0,			// Image will never exceed browser width or height (Ignores min. dimensions)
					fit_portrait         	:   1,			// Portrait images will not exceed browser height
					fit_landscape			:   0,			// Landscape images will not exceed browser width
															   
					// Components
					slides 					:  	[			// Slideshow Images
														{image : '/Images/Backgrounds/Background_01.jpg', title : 'Zilver'},
														{image : '/Images/Backgrounds/Background_02.jpg', title : 'Broche'},
														{image : '/Images/Backgrounds/Background_03.jpg', title : 'Koeler'},
														{image : '/Images/Backgrounds/Background_04.jpg', title : 'Porseleine theepot'}
												]
					
				});
		    });

 
 // Hover Category

$(function() {
			
			$('ul#categories li, ul#home-categories li, ul#photos li').animate({"opacity": "1"}, 0);
    
			$('ul#categories li, ul#home-categories li, ul#photos li').hover(
			function() {
			$(this).stop().animate({"opacity": "0.7"}, "fast");
			},
			function() {
			$(this).stop().animate({"opacity": "1"}, "fast");
			});
			
			});


// Fancybox

$(document).ready(function() {
			

			$("a#lightbox").fancybox();

			
		});

// Accordion

$(document).ready(function(){
	
//Set default open/close settings
$('.acc_container').hide(); //Hide/close all containers

//On Click
$('.acc_trigger').click(function(){
	if( $(this).next().is(':hidden') ) { //If immediate next container is closed...
		$('.acc_trigger').removeClass('active').next().slideUp(); //Remove all .acc_trigger classes and slide up the immediate next container
		$(this).toggleClass('active').next().slideDown(); //Add .acc_trigger class to clicked trigger and slide down the immediate next container
	}
	return false; //Prevent the browser jump to the link anchor
});

});
