$(document).ready(function(){
	
	// home page banner rotation
	$("div#feature img:first").addClass("active").show();
		setTimeout(bannerRotate, 1000);

});

function bannerRotate() {
	$active = $("div#feature img.active");
	if ( $active.hasClass('last') ) 
		$next = $("div#feature img:first");
	else $next = $active.next();
	$("div#feature img").removeClass("active");
	$active.fadeOut();
	$next.addClass("active").fadeIn();
	setTimeout(bannerRotate, 3000);
}

