jQuery('#slider').cycle({
    delay:  -2000, 
    fx:     'fade',
    timeoutFn: calculateTimeout
});



var timeouts = [3,3,3,5];
function calculateTimeout(currElement, nextElement, opts, isForward) {
    var index = opts.currSlide;
    return timeouts[index] * 1000;
}

$(document).ready(function() {
			$("#various3").fancybox({
				'width'				: '400px',
				'height'			: '400px',
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none'
			});

		});

jQuery(document).ready(function() {
    $("#various3").trigger('click');
});

