delai=5000;
var itf_strip_obj=new Object();
itf_strip_obj.current=0;
itf_strip_obj.steps=50;
itf_strip_obj.counter=0;
itf_strip_obj.thumbs=new Array('umf','cgibat','cequami');
itf_strip_obj.timer_auto=setTimeout("itf_strip_automove()",delai);
function itf_strip_automove() {
  if(itf_strip_obj.timer_auto!=0) {
    clearTimeout(itf_strip_obj.timer_auto);
  }
  if(itf_strip_obj.current==itf_strip_obj.thumbs.length-1) {
    itf_strip_change(-itf_strip_obj.thumbs.length);
  } else {
    itf_strip_change(1);
  }
  itf_strip_obj.timer_auto=setTimeout("itf_strip_automove()",delai);
}
function itf_strip_move(d) {
  if(itf_strip_obj.timer_auto!=0) {
    clearTimeout(itf_strip_obj.timer_auto);
  }
  itf_strip_obj.timer_auto=setTimeout("itf_strip_automove()",delai*3);
  itf_strip_change(d);
}
function itf_strip_change(d) {
  var new_current=Math.min(Math.max(itf_strip_obj.current+d,0),itf_strip_obj.thumbs.length-1);
  if(itf_strip_obj.current!=new_current) {
    itf_strip_obj.current=new_current;
    for(var i=0;i<itf_strip_obj.thumbs.length;i++) {
      var m=document.getElementById('partenaire_'+itf_strip_obj.thumbs[i]);
      m.x=m.offsetLeft;
      m.new_x=((i-itf_strip_obj.current)*180);
    }
    itf_strip_obj.counter=0;
    itf_strip_slide();
  }
}
function itf_strip_slide() {
  if(itf_strip_obj.timer!=0) {
    clearTimeout(itf_strip_obj.timer);
  }
  itf_strip_obj.counter++;
  for(var i=0;i<itf_strip_obj.thumbs.length;i++) {
    var m=document.getElementById('partenaire_'+itf_strip_obj.thumbs[i]);
    m.x=itf_strip_mouvement("mouvRal",itf_strip_obj.counter,m.x,m.new_x-m.x,itf_strip_obj.steps);
    m.style.left=Math.round(m.x)+'px';
  }
  if(itf_strip_obj.counter<itf_strip_obj.steps) {
    itf_strip_obj.timer=setTimeout("itf_strip_slide()",20);
  } else {
    // suite
  }
}
function itf_strip_mouvement(mouv, t, b, c, d, s) {
  switch(mouv) {
  case "lineaire":
      return c*t/d+b;
    break;
  case "mouvAcc":
      return c*(t /= d)*t+b;
    break;
  case "mouvRal":
      return -c*(t /= d)*(t-2)+b;
    break;
  case "mouvAccRal":
      if ((t /= d/2)<1) {
        return c/2*t*t+b;
      }
      return -c/2*((--t)*(t-2)-1)+b;
    break;
  case "mouvRetour":
      if (s == undefined) {
        s = 1.70158;
      }
      return c*((t=t/d-1)*t*((s+1)*t+s)+1)+b;
    break;
  }
}
var itf_strip2_obj=new Object();
itf_strip2_obj.current=0;
itf_strip2_obj.steps=150;
itf_strip2_obj.counter=0;
itf_strip2_obj.thumbs=25;
itf_strip2_obj.timer_auto=setTimeout("itf_strip2_automove()",delai);
function itf_strip2_automove() {
  if(itf_strip2_obj.timer_auto!=0) {
    clearTimeout(itf_strip2_obj.timer_auto);
  }
  if(itf_strip2_obj.current==itf_strip2_obj.thumbs-5) {
    itf_strip2_change(-itf_strip2_obj.thumbs);
  } else {
    itf_strip2_change(5);
  }
  itf_strip2_obj.timer_auto=setTimeout("itf_strip2_automove()",delai);
}
function itf_strip2_move(d) {
  if(itf_strip2_obj.timer_auto!=0) {
    clearTimeout(itf_strip2_obj.timer_auto);
  }
  itf_strip2_obj.timer_auto=setTimeout("itf_strip2_automove()",delai*3);
  itf_strip2_change(d);
}
function itf_strip2_change(d) {
  var new_current=Math.min(Math.max(itf_strip2_obj.current+d,0),itf_strip2_obj.thumbs-5);
  if(itf_strip2_obj.current!=new_current) {
    itf_strip2_obj.current=new_current;
    for(var i=0;i<itf_strip2_obj.thumbs;i++) {
      var m=document.getElementById('catalogue_'+i);
      m.x=m.offsetLeft;
      m.new_x=((i-itf_strip2_obj.current)*104);
    }
    itf_strip2_obj.counter=0;
    itf_strip2_slide();
  }
}
function itf_strip2_slide() {
  if(itf_strip2_obj.timer!=0) {
    clearTimeout(itf_strip2_obj.timer);
  }
  itf_strip2_obj.counter++;
  for(var i=0;i<itf_strip2_obj.thumbs;i++) {
    var m=document.getElementById('catalogue_'+i);
    m.x=itf_strip_mouvement("mouvRal",itf_strip2_obj.counter,m.x,m.new_x-m.x,itf_strip2_obj.steps);
    m.style.left=Math.round(m.x)+'px';
  }
  if(itf_strip2_obj.counter<itf_strip2_obj.steps) {
    itf_strip2_obj.timer=setTimeout("itf_strip2_slide()",20);
  } else {
    // suite
  }
}

