$(document).ready(function(){
    var delay = 10000;
			$('#slider1').anythingSlider({
                startPanel    : 1,
				startStopped    : false, // If autoPlay is on, this can force it to start stopped
				width           : 950,   // Override the default CSS width
                height          : 400,   // Override the default CSS width
				theme           : 'metallic',
				autoPlayLocked  : false,  // If true, user changing slides will not stop the slideshow
				resumeDelay     : 500, // Resume slideshow after user interaction, only if autoplayLocked is true (in milliseconds).
                delay           : delay,
	            buildNavigation : true,
                buildArrows     : false,
                stopAtEnd      : true,
                onSlideComplete : function(slider){
                     if ($('#slider1').data('AnythingSlider').pages == $('#slider1').data('AnythingSlider').currentPage)
                     {
                         //onShowStop not working so we have to create this workaround
                        var t=setTimeout("$('#slider1').anythingSlider(1)",delay);
                     }
				}
			});
});



