$(function(){

			$('#slider1').anythingSlider({
				autoPlay		: true,
				startStopped    : false, // If autoPlay is on, this can force it to start stopped
				width           : 1027,   // Override the default CSS width
				height           : 277,   // Override the default CSS width
				theme           : 'metallic',
				easing          : 'easeInOutBack',
//				autoPlayLocked  : true,  // If true, user changing slides will not stop the slideshow
//				resumeDelay     : 10000, // Resume slideshow after user interaction, only if autoplayLocked is true (in milliseconds).
				onSlideComplete : function(slider){
					// alert('Welcome to Slide #' + slider.currentPage);
				},
				stopAtEnd : true,
				onShowStop : function(e, slider){
					setTimeout(function(){
						if (slider.currentPage === slider.pages) { slider.gotoPage(1); }
					}, 5000);
				}
			});
			
});
