index_courant = 0;
index_max = 7;
fonds_concept = new Array();
for (i=index_courant; i<=index_max; i++){
  fonds_concept.push('fond_0'+i+'.jpg');
} 

function changefond() {
  index_courant+=1;
  if (index_courant>index_max){
    index_courant = 0;
  }
  setTimeout("changefond()",3000);
  container = $('container');
  if (container) {
    url = 'url(/images/'+fonds_concept[index_courant]+')';
    container.style.backgroundImage=url;
  }  
}

changefond();
