$(document).ready(function(){
	timer = false;

	var startWellness = function() {
		stopWellness();
		timer = setInterval(function(){
			$('.wellness-box ul').animate({ marginTop: '-85px' }, 500, function(){
				$(this).css('margin-top', 0).find('li:first').appendTo(this);
			});
		}, 5000);
	};
	var stopWellness = function(){
		if(timer) {
			clearInterval(timer);
			timer = false;
		}
	};


	$('.wellness-box').hover(stopWellness, startWellness);

	startWellness();
});
