$(function() {
	$('.anythingSlider').anythingSlider({
		easing: "easeInOutExpo",        // Anything other than "linear" or "swing" requires the easing plugin
		autoPlay: true,                 // This turns off the entire FUNCTIONALY, not just if it starts running or not.
		delay: 9000,                    // 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: false,          // 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: "Go",             // Start text
		stopText: "Stop"               // Stop text
	});
	$('#slideNext').click(function(){
		$('.anythingSlider').anythingSlider('next');
		return false;
	});
	$('#slidePrev').click(function(){
		$('.anythingSlider').anythingSlider('prev');
		return false;
	});
	$('#slide1').click(function(){
		$('.anythingSlider').anythingSlider(1);
		// remove current from all navboxes
		$('.navbox').removeClass('current');
		//add current to this one
		$('#slide1').addClass('current');
		return false;
	});
	$('#slide2').click(function(){
		$('.anythingSlider').anythingSlider(2);
		// remove current from all navboxes
		$('.navbox').removeClass('current');
		//add current to this one
		$('#slide2').addClass('current');
		return false;
	});
	$('#slide3').click(function(){
		$('.anythingSlider').anythingSlider(3);
		// remove current from all navboxes
		$('.navbox').removeClass('current');
		//add current to this one
		$('#slide3').addClass('current');
		return false;
	});
	$('#slide4').click(function(){
		$('.anythingSlider').anythingSlider(4);
		// remove current from all navboxes
		$('.navbox').removeClass('current');
		//add current to this one
		$('#slide4').addClass('current');
		return false;
	});
	$('#slide5').click(function(){
		$('.anythingSlider').anythingSlider(5);
		// remove current from all navboxes
		$('.navbox').removeClass('current');
		//add current to this one
		$('#slide5').addClass('current');
		return false;
	});
});