$(function() {
	var
		$test3 = $('#test3'),
		$caption = $('div.caption'),
		$resume = $('#resume'),
		$freeze = $('#freeze'),
		$stop = $('#stop'),
		$restart = $('#restart'),
		STOP = 1, RUN = 2, PAUSE = 3;


	$test3.crossSlide({
		fade: 1
	}, [
		{
			src:  'src/dinamic/kenburns1.jpg',
			alt:  'Sand Castle',
			from: 'left bottom 1.5x',
			to:   '80% 0% 1x',
			time: 5
		}, {
			src:  'src/dinamic/kenburns2.jpg',
			alt:  'Sunflower',
			from: 'top left',
			to:   'bottom right 1.3x',
			time: 4
		}, {
			src:  'src/dinamic/kenburns3.jpg',
			alt:  'Flip Flops',
			from: '100% 80% 1.3x',
			to:   '80% 0% 1x',
			time: 5
		}
		
	], function(idx, img, idxOut, imgOut) {
		if (idxOut == undefined) {
			$caption.text(img.alt).animate({ opacity: .5 })
		} else {
			$caption.animate({ opacity: 0 })
		}
	});
	$caption.show().css({ opacity: 0 })

});
