// remap jQuery to $
(function($){})(window.jQuery);


/* trigger when page is ready */

$(window).load(function() {
         $('#featured').orbit({
            bullets: true,
            animation: 'fade',                  // fade, horizontal-slide, vertical-slide, horizontal-push
     		animationSpeed: 800,                // how fast animtions are
     		timer: true, 			 // true or false to have the timer
     		advanceSpeed: 7000, 		 // if timer is enabled, time between transitions 
     		pauseOnHover: true, 		 // if you hover pauses the slider
     		startClockOnMouseOut: true, 	 // if clock should start on MouseOut
     		startClockOnMouseOutAfter: 0, 	 // how long after MouseOut should the timer start again
     		captions: true, 			 // do you want captions?
     		captionAnimation: 'slideOpen', 		 // fade, slideOpen, none
     		captionAnimationSpeed: 3000, 	 // if so how quickly should they animate in
         });
         
         });


$(document).ready(function (){

		
	
	$("img.a").hover(
function() {
$(this).stop().animate({"opacity": "0"}, "slow");
},
function() {
$(this).stop().animate({"opacity": "1"}, "slow");
});

//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 "active" state and slide up the immediate next container
			$(this).toggleClass('active').next().slideDown(); //Add "active" state to clicked trigger and slide down the immediate next container
		}
		return false; //Prevent the browser jump to the link anchor
		});
		
			

         
 

});




/* optional triggers

$(window).load(function() {
	
});

$(window).resize(function() {
	
});

*/
