$(document).ready(function() {
	$("#samples").cycle({
		fx: 'scrollLeft',
		speed: 'fast',
		random: false,
		pager: '#nav-bar #nav-buttons',
		timeout: 5000,
		startingSlide: 0
	});
	// Set mouse over and out pausing event handlers.  We set this manually rather than using the option on the cycle plugin so we can check for and prevent
	// un-pausing of the cycle on mouse out when it's not supposed to.
	$("#samples").hover(function() {
		if (!Slidebox.Paused) {
			$('#samples').cycle('pause');
		}
	},function() {
		if (!Slidebox.Paused) {
			$('#samples').cycle('resume');
		}
	});
});

