jQuery(function($) {
	$('#home-image .word').hide();
	$('#home-image .word:first').addClass('active-word').show();
	
	setInterval(function() {
		var $activeWord = $('#home-image .active-word');
		$('#home-image .word').removeClass('active-word');
		
		$activeWord.fadeOut(1000, function() {
			if($activeWord.next().length == 0)
				$activeWord = $('#home-image .word:first');
			else
				$activeWord = $activeWord.next();
				
			$activeWord.addClass('active-word');
				
			$activeWord.fadeIn(1000);
		});
			
	}, 3000);
});
