$(document).ready(function() {
		//Fader code

		function slideSwitch() {
			var $active = $('#slideshow-fade DIV.active');

			if ( $active.length == 0 ) $active = $('#slideshow-fade DIV:last');

		 // use this to pull the divs in the order they appear in the markup
		var $next =  $active.next().length ? $active.next()
        : $('#slideshow-fade DIV:first');

			$active.addClass('last-active');

			$next.css({opacity: 0.0})
				.addClass('active')
				.animate({opacity: 1.0}, 1000, function() {
					$active.removeClass('active last-active');
				});
			}

			setInterval(slideSwitch, 5000 );
			
			// End of fader code
});