jQuery(document).ready(function($){
	slideSwitch = function(){
		var $active = $('.footer-row.active');
		
		if ($active.length == 0) $active = $('.footer-row:last');
		
		var $next = $active.next('.footer-row').length ? $active.next('.footer-row')
			: $('.footer-row:first');
		
		$active
			.addClass('last-active')
			.animate({opacity: 0.0}, 700);
		
		$next.css({opacity:0.0})
			.addClass('active')
			.animate({opacity: 1.0}, 700, function(){
				$active.removeClass('active last-active');
			});
	};
	
	//run function the first time
	slideSwitch();
	
	//repeat function on interval
	$(function(){
		setInterval( "slideSwitch()", 6000 );
	});
});
