$.fn.cycle.transitions.fadeZoom2 = function($cont, $slides, opts) {
	opts.before.push(function(curr, next, opts) {
		$.fn.cycle.commonReset(curr,next,opts,false,false);
		opts.cssBefore.left = next.cycleW/2;
		opts.cssBefore.top = next.cycleH/2;
		opts.cssBefore.opacity = 0;
		opts.animIn	= {
			top: -next.cycleH/8,
			left: -next.cycleW/8,
			width: next.cycleW*1.25,
			height: next.cycleH*1.25,
			opacity: 1
		};
		opts.animOut = {
			top: -next.cycleH,
			left: -next.cycleW,
			width: next.cycleW*3,
			height: next.cycleH*3,
			opacity: 0
		};
	});
	opts.cssBefore = { width: 0, height: 0 , opacity: 0};

};

$(document).ready(function() {
    $('.slideshow').cycle({
		fx: 'fadeZoom2',
		speed: 8000,
		speedOut: 14000,
		easeIn: 'linear',
		easeOut: 'linear',
		delay: -5000,
		continuous: 1
	});
});
