function DoAnimation(items, delay, bounceOffSet) {
$(items[0]).animate({left: bounceoffset, top:-8, opacity:0.6, leaveTransforms:true}, {duration:600, queue:true})
.delay(delay)
.promise()
.done(function() {
items.splice(0, 1);
if (items.length > 0)
{
DoAnimation(items, delay, bounceOffSet + 160);
}
});
}
var items = $('.bounceholder ul:eq(' + bounceholder + ') li');
DoAnimation(items, 1000, 0);