$(document).ready(function(){
	
	$("#homeAds a:first").addClass("active");
	$("#homeAds a").everyTime(5000, function(i) {
		var $active = $('#homeAds .active');
		var $next = ($('#homeAds .active').next().length > 0) ? $('#homeAds .active').next() : $('#homeAds a:first'); 
		$active.fadeOut(function() {
			 $active.removeClass('active');
			 $next.fadeIn().addClass('active');
		});
	});

});
