var GLOBAL_flag;
var GLOBAL_flagMax;

$(document).ready(function()
{
		GLOBAL_flag = 0;
		GLOBAL_flagMax = $('.hidden').children().length;		
		setTimeout("illustrationTimer()", 3000);
});
function	illustrationTimer()
{
	GLOBAL_flag++;
	if(GLOBAL_flag >= GLOBAL_flagMax)
		GLOBAL_flag = 0;
	$("#illustrationContainer").children().fadeOut(1000, function()
	{
		$("#illustrationContainer").children().remove();
		$('.element-'+GLOBAL_flag).clone().appendTo('#illustrationContainer');
		setTimeout("illustrationTimer()", 3000);
	});
}
