var intervalDernierInscritSlide = new Array();

function DernierInscritsSlide (cible, moveX, moveY, maxmoveX, maxmoveY, endFunction) {
  slideX = moveX;
  if (cible.style.marginLeft) slideX += parseInt(cible.style.marginLeft);
  
  slideY = moveY;
  if (cible.style.paddingTop) slideY += parseInt(cible.style.paddingTop);
  
  
  // Move X
	if (moveX != 0 && slideX < maxmoveX) cible.style.marginLeft = slideX + "px";
  
  // Move Y
	if (moveY != 0 && slideY < maxmoveY) cible.style.paddingTop = slideY + "px";


	if (slideX < maxmoveX || slideY < maxmoveY) {    
    // Suite de l'animation
    window.setTimeout(function () { DernierInscritsSlide(cible, moveX, moveY, maxmoveX, maxmoveY, endFunction); }, 10);
	} else {
    endFunction();
	}
}

