/*
* Author:      Marco Kuiper (http://www.marcofolio.net/)
*/

/* Time to preview a preview */
var PREVIEWTIME = 1;



function lanceranim (){
	
	setTimeout("animatePreviews()");	
	/*$(this).fadeOut(function(){
							 
			
	});	*/

	}

/* Variable to store which preview is currently viewed */
var currentPreview = -1;

/**
* Animates the previews
*/
function animatePreviews() {
	
	currentPreview++;
	
	if( $(".preview:eq("+currentPreview+")").hasClass("prevtext") ) {
		animateTextPreview($(".preview:eq("+currentPreview+")"));
	} 
	if(currentPreview == 2) 
		currentPreview = -1;
	/*2 pour 3 DIV FAIRE +1 DES QU'ON AJOUTE UN DIV*/
}

function animateTextPreview(previewElement) {
	$(previewElement)
		.fadeIn("slow")
		.animate({ opacity: 1.0 },3500) /*TEMPS D'AFFICHAGE DU DIV*/
		.fadeOut("slow", function(){
			animatePreviews();
		});
}


