var next= 2;
var nextmax=7;
function changeIMG(){
	  var newsrc ="medias/images/design/banners/home_b"+next+".jpg";
	  $('#image_bg').fadeOut(400, function(){
			$(this).attr('src',newsrc);
			if (this.complete) $(this).fadeIn(400);
	   });
	  next++;
	  if(next>nextmax)next=1;
}
var mytimer = setInterval("changeIMG()",8000);
