$(function() {
	var $placeholder = $('#placeholder'),
		$caption = $('div.caption');

	$placeholder.crossSlide({
		fade: 1
	}, [
		{
			src:  'images/slider/2.jpg',
			alt:  '"Job Connect are flexible and adapt quickly to our ever changing needs!"',
			from: '80% 40% 1.1x',
			to:   '100% 70% 1.3x',
			time: 7
		},
		{
			src:  'images/slider/3.jpg',
			alt:  '"Profound Industry contacts Nationally and Internationally allow opportunities to enhance your career"',
			from: '100% 100% 1.0x',
			to:   '100% 100% 1.0x',
			time: 4
		}, {
			src:  'images/slider/5.jpg',
			alt:  '"Job Connect is my first choice. They ask plenty of questions so they know exactly what I want..."',
			from: '100% 50% 1.5x',
			to:   '80% 0% 1x',
			time: 8
		}, {
			src:  'images/slider/6.jpg',
			alt:  '"Job Connect have supplied quality Engineers, Admin Staff & Tradespeople for our Major Construction Project"',
			from: '100% 100% 1x',
			to:   '70% 70% 1.7x',
			time: 6
		}, {
			src:  'images/slider/4.jpg',
			alt:  '"We really enjoy working with Job Connect, and are happy to recommend their services to others"',
			from: '20% 80% 1.3x',
			to:   '10% 40% 1.1x',
			time: 6
		}, {		
			src:  'images/slider/1.jpg',
			alt:  '"I have found that Job Connect looks outside the square and provides us with well rounded solutions.."',
			from: '50% 100% 1x',
			to:   '50% 20% 1.3x',
			time: 6
		}, {		
			src:  'images/slider/7.jpg',
			alt:  '"The Job Connect staff have always been prompt, courteous and efficient.."',
			from: '100% 30% 1.4x',
			to:   '50% 10% 1.1x',
			time: 8
		}, {		
			src:  'images/slider/8.jpg',
			alt:  '"supporting the local community.."',
			from: '100% 100% 1.0x',
			to:   '100% 100% 1.0x',
			time: 5
		}, {		
			src:  'images/slider/9.jpg',
			alt:  '"Matched my specific skills and preferences to find me a great permanent job.."',
			from: '50% 50%',
			to:   '100% 50% 1.3x',
			time: 8
		}
	], function(idx, img, idxOut, imgOut) {
		if (idxOut == undefined) {
			$caption.text(img.alt).animate({ opacity: .7 })
		} else {
			$caption.animate({ opacity: 0 })
		}
	});
	$caption.show().css({ opacity: 0 })
});
