$(function(){
	$("#slideshow .text, #slideshow .text li").hide();
	
	var step = '';
	
	function initAnimation() {
		switch ( step ) {
			case 5:
				// setTimeout(animationStep5, 5000);
				// step = 1;
				break;
			case 4:
				setTimeout(animationStep4, 1200);
				step = 5;
				break;
			case 3:
				setTimeout(animationStep3, 1200);
				step = 4;
				break;
			case 2:
				setTimeout(animationStep2, 200);
				step = 3;
				break;
			default:
				setTimeout(animationStep1, 1200);
				step = 2;
				break;
		}
	}
	function animationStep1() {
		$("#slideshow .text").slideDown(550, initAnimation);
	}
	function animationStep2() {
		$("#slideshow .text li:eq(0)").fadeIn(350, initAnimation);
	}
	function animationStep3() {
		$("#slideshow .text li:eq(1)").fadeIn(350, initAnimation);
	}
	function animationStep4() {
		$("#slideshow .text li:eq(2)").fadeIn(350, initAnimation);
	}
	function animationStep5() {
		$("#slideshow .text").fadeOut(1250, function(){
			$("#slideshow .text li").hide();
			initAnimation();
		});
	}
	initAnimation();
	
});
