/*
    anythingSlider v1.2
    
    By Chris Coyier: http://css-tricks.com
    with major improvements by Doug Neiner: http://pixelgraphics.us/
    based on work by Remy Sharp: http://jqueryfordesigners.com/


	To use the navigationFormatter function, you must have a function that
	accepts two paramaters, and returns a string of HTML text.
	
	index = integer index (1 based);
	panel = jQuery wrapped LI item this tab references
	@return = Must return a string of HTML/Text
	
	navigationFormatter: function(index, panel){
		return index + " Panel"; // This would have each tab with the text 'X Panel' where X = index
	}
*/

function formatText(index, panel) {
		  return index + "";
	    }
    
        $(function () {
        
            $('.anythingSlider').anythingSlider({
                easing: "easeInOutExpo",        // 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: 5000,                    // How long between slide transitions in AutoPlay mode
                startStopped: false,            // If autoPlay is on, this can force it to start stopped
                animationTime: 600,             // How long the slide transition takes
                hashTags: false,                 // Should links change the hashtag in the URL?
                buildNavigation: true,          // If true, builds and list of anchor links to link to each slide
        		pauseOnHover: true,             // If true, and autoPlay is enabled, the show will pause on hover
        		startText: "Play",             // Start text
		        stopText: "Pause",               // Stop text
		        navigationFormatter: formatText       // Details at the top of the file on this use (advanced use)
            });
            
            $("#slide-jump1").click(function(){
                $('.anythingSlider').anythingSlider(1);
            });
			
			$("#slide-jump2").click(function(){
                $('.anythingSlider').anythingSlider(2);
            });
			
			$("#slide-jump3").click(function(){
                $('.anythingSlider').anythingSlider(3);
            });
			
			$("#slide-jump4").click(function(){
                $('.anythingSlider').anythingSlider(4);
            });
			
			$("#slide-jump5").click(function(){
                $('.anythingSlider').anythingSlider(5);
            });
			
			$("#slide-jump6").click(function(){
                $('.anythingSlider').anythingSlider(6);
            });
			$("#slide-jump7").click(function(){
                $('.anythingSlider').anythingSlider(7);
            });
			$("#slide-jump8").click(function(){
                $('.anythingSlider').anythingSlider(8);
            });
			$("#slide-jump9").click(function(){
                $('.anythingSlider').anythingSlider(9);
            });
			$("#slide-jump10").click(function(){
                $('.anythingSlider').anythingSlider(10);
            });
            
        });
