var pos = new Array();
var mouv = new Array();
var total= new Array();

function mouve(type,nb,c) {	

  if ( pos[c] == null ) pos[c] = 0;
  if ( mouv[c] == null ) mouv[c] = 0;
  if ( total[c] == null ) total[c] = 0;

	clip = document.getElementById(c);
	total[c] = (nb-2)*213*(-1);	
	if(type=='next') {
		if(pos[c]>total[c]) {
			pos[c] -= 5;
		}
	} else {
		if(pos[c]<0) {
			pos[c] += 5;
		}
	}
	clip.style.marginLeft = pos[c]+'px';
	mouv[c] = setTimeout('mouve(\''+type+'\','+nb+',\''+c+'\')',25);
}
function stop_mouve(c) {
	clearInterval(mouv[c]);
}
