function animateSujets()
{
	if ( sujet = $('sujetpic') )
	{
		sujet.src = '/assets/sujets/' + sujetsPath + '/' + sujets[sujetsId];
		if (sujetsId++ >= sujets.length-1) sujetsId=0;
		window.setTimeout('animateSujets()',4000);
	}
	// <img src="/assets/sujets/{$sujetsPath}/{$sujetsFirst}" id="sujetpic" alt="Sujet" border="0" width="755" height="255">
}

function fadeSujets()
{
	Effect.Fade(sujets2fade[sujetsId], { duration:1, from:1.0, to:0.0 });
	if (sujetsId++ >= sujets2fade.length-1) sujetsId=0;
	Effect.Appear(sujets2fade[sujetsId], { duration:1, from:0.0, to:1.0 });
}


function init()
{		
	sujets2fade = $$('img.fader');
		if (sujets2fade.length > 1)	setInterval('fadeSujets()', 4000);
}
