// JavaScript Document
$(document).ready(function() {
	
	
	$("a[rel^='photo']").prettyPhoto({animationSpeed:'fast',theme:'light_square',slideshow:10000});
	$("a[rel^='video']").prettyPhoto({animationSpeed:'fast',theme:'dark_square',slideshow:10000});
	  
	//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().fadeOut(100); //Remove all .acc_trigger classes and slide up the immediate next container
		$(this).toggleClass('active').next().fadeIn(500); //Add .acc_trigger class to clicked trigger and slide down the immediate next container
	}
	else{
	$('.acc_trigger').removeClass('active').next().fadeOut(100); 
	}
	return false; //Prevent the browser jump to the link anchor
	});
      
	$('.ppy').popeye({
            caption:    false,
            navigation: 'permanent',
        });
	
	
});
