function slideSwitch() {
var $active = $('#banner .active');
if ( $active.length == 0 ) $active = $('#banner img:last');
	var $next =  $active.next().length ? $active.next()
	: $('#banner img:first');
 
	$active.addClass('last-active');
 
	$next.css({opacity: 0.0})
		.addClass('active')
    //adjust value to change the time taken to fade between images
		.animate({opacity: 1.0}, 2000, function() {
		$active.removeClass('active last-active');
	});
}
 
$(function() {
    //adjust value to change the interval between each image change
		setInterval( "slideSwitch()", 10000 );
});
