$(function() {
$('#s1').cycle({
delay: -2000,
fx: 'shuffle',
speed: 'fast',
timeoutFn: calculateTimeout
});
});
// timeouts per slide (in seconds)
var timeouts = [2,4,2];
function calculateTimeout(currElement, nextElement, opts, isForward) {
var index = opts.currSlide;
return timeouts[index] * 1000;
}