/*///////////////// nivo slider /////////////////////////*/

$(window).load(function() {
	$('#slider').nivoSlider({
		effect: 'random',
		slices: 15,
		animSpeed: 500,
		pauseTime: 5000,
		startSlide: 0
	});
});


/*///////////////// prettyphoto /////////////////////////*/
$(document).ready(function(){
$('.enlarge').css({ opacity: 0 });
$('.enlarge').css({ cursor: 'pointer' });
$('.enlarge').hover(function(){
    $(this).stop().animate({ opacity: 1 }, 500);
    
}, function(){
   $(this).stop().animate({ opacity: 0 }, 300);
 
});
});
/*///////////////// prettyphoto /////////////////////////*/


/*///////////////// ACCORDION /////////////////////////*/
$(document).ready(function(){
	//Set default open/close settings
	$('.acc_container').hide(); //Hide/close all containers
	$('.acc_trigger:first').addClass('active').next().show(); //Add "active" class to first trigger, then show/open the immediate next container
	
	//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
	});
});
/*///////////////// END ACCORDION /////////////////////////*/

