$(document).ready(function(){
//Anything Slider
	$('#anythingslider').anythingSlider({
		startStopped    : false, // If autoPlay is on, this can force it to start stopped
		width           : 599,   // Override the default CSS width
		height          : 368,   // Override the default CSS height
		delay			: 5000,  // Speed in miliseconds
		easing          : 'easeInOutBack',
		buildArrows     : false,  // If true, builds the forwards and backwards buttons
		autoPlayLocked  : false,  // If true, user changing slides will not stop the slideshow
		//resumeDelay     : 6000,  // Resume slideshow after user interaction, only if autoplayLocked is true.
		stopAtEnd : false,
		onShowStop : function(e, slider){
			setTimeout(function(){
				if (slider.currentPage === slider.pages) { slider.gotoPage(1); }
			}, 5000);
		}
	});
});
