$(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
});

 $('.home_bg').bkgSlide({
            images          : images,                       // list of images to use
            imagePath       : imgPath,                      // path where to find the images
            speed           : 4000,                         // time in milliseconds between two image changes, 0 to disable autoplay
            direction       : 'next',                     // direction for autoplay ('random' / 'next' / 'prev')
            wrap            : true,                         // whether or not to wrap when reaching one end of the images list
            nav             : true,                         // whether ot not to setup navigation handlers
                                                            // ( true or 'all' for all buttons
                                                            // or an array with wanted options in the order you want them :
                                                            // [ 'prev', 'list', 'next', 'toggle' ]
                                                            // or a string with a single option )
            stopOnNav       : false,                         // whether or not to stop autoplay when using the navigation handlers
            width           : 'auto',                       // width of the background images containers ('auto' will get it from target)
            height          : 882,                          // height of the background images containers ('auto' will get it from target)
            containersClass : '',                           // class to add to the containers
            effect          : 'fadeOut',                    // what kind of effect to use for transitions ('fadeOut' / 'slideUp' / 'hide')
            duration        : 1000,                          // duration of the transition
            afterInit       : function(target, bkgSlider){} // callback function launched after initialization
        });

});
