$(function() {
		   
		slide_func_header(1);
			function slide_func_header (x) 
			{
				if (x>8)
				{
					x=1;
				}
			//	alert(x);
					$("#promotion_"+x+":hidden").show('slide','',500,callback(x));
							  setTimeout(function() {slide_func_header((x+1))}, 6000);
							 // colorier(' + (x + 1) +');
			}
			
	function callback(x){
		//alert('oki'+x);
		setTimeout(function(){
			$("#promotion_"+x).hide('slide','',500,'');
		}, 5500);
	};
});

function lookup(inputString) {
    if(inputString.length>=2){
        $.post("_ajax.php?choix=recherche", {queryString: ""+inputString+""}, function(data){
            if(data.length >0) {
				//alert(data);
					$("#suggestions").show();
                $('#autoSuggestionsList').html(data);
            }
        });
    }
	else
	{
		 $('#suggestions').hide();
	}
} // lookup

function fill_hide() {
		setTimeout("$('#suggestions').hide();", 200);
}


