$(document).ready(function() {
	function formatText(index, panel) {
	  return index + "";
	}
  $(function () {

		
		$('.anythingSlider2').anythingSlider({
			startStopped    : true, // If autoPlay is on, this can force it to start stopped
			width               : 600,   // if resizeContent is false, this is the default width if panel size is not defined
			resizeContents      : false, // If true, solitary images/objects in the panel will expand to fit the viewport
			theme           : 'metallic',
			easing          : 'easeInCirc',
//				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).
			autoPlay: false,                 // This turns off the entire FUNCTIONALY, not just if it starts running or not.
			buildNavigation: false,         // If true, builds and list of anchor links to link to each slide
			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);
			}
/*
			easing: "easeInCirc",                // Anything other than "linear" or "swing" requires the easing plugin
			autoPlay: false,                 // This turns off the entire FUNCTIONALY, not just if it starts running or not.
			delay: 3000,                    // How long between slide transitions in AutoPlay mode
			startStopped: false,            // If autoPlay is on, this can force it to start stopped
			animationTime: 500,             // How long the slide transition takes
			hashTags: true,                 // Should links change the hashtag in the URL?
			buildNavigation: false,         // If true, builds and list of anchor links to link to each slide
			pauseOnHover: false,             // If true, and autoPlay is enabled, the show will pause on hover
			startText: "",              // Start text
			stopText: "",               // Stop text
			navigationFormatter: formatText   // Details at the top of the file on this use (advanced use)
*/
		});

		$("#slide-jump").click(function(){
			 $('.anythingSlider').anythingSlider(6);
		});

  });
   
 });
