
$(document).ready(function ()
{
 	$('#home_cycle1').cycle({ 
	    fx:     'fade', 
	    timeout: 3000,
        pause: 1,
        timeoutFn: calculateTimeout 
	}); 
	
	$('#home_cycle2').cycle({ 
	    fx:     'fade', 
	    timeout: 3500,
		pause: 1,
        timeoutFn: calculateTimeout 
	});
	 
	$('#home_cycle3').cycle({ 
	    fx:     'fade', 
	    timeout: 3300,
		pause: 1,
        timeoutFn: calculateTimeout 
	});
	$('#home_cycle4').cycle({ 
	    fx:     'fade', 
	    timeout: 3100,
		pause: 1,
        timeoutFn: calculateTimeout 
	});
	$('#home_cycle5').cycle({ 
	    fx:     'fade', 
	    timeout: 3100,
		pause: 1,
        timeoutFn: calculateTimeout 
	});
}); 

function calculateTimeout(numRand) {
    var numRand = Math.floor(Math.random()*5000)+2000;
    return numRand;
} 

