$(function(){$(".anythingSlider").anythingSlider({easing:"easeInOutExpo",autoPlay:true,delay:9E3,startStopped:false,animationTime:600,hashTags:false,buildNavigation:false,pauseOnHover:true,startText:"Go",stopText:"Stop"});$("div .mininav ul li").each(function(b){$(this).bind("click",function(){var a=b+1;$(".anythingSlider").anythingSlider(a);$(".navbox").removeClass("current");$("#slide"+a).addClass("current");return false})})});

// HTML for the nav buttons must follow this example
// <div class="mininav">
// 	<ul>
// 		<li><a id="slide1" class="navbox current" href="/">link</a></li>
// 		<li><a id="slide2" class="navbox" href="/">link</a></li>
// 		<li><a id="slide3" class="navbox" href="/">link</a></li>
// 		<li><a id="slide4" class="navbox" href="/">link</a></li>
// 	</ul>
// </div>

// Current slide a tag should have "current" class


// $(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,          // This should always be false at what cheer
// 		pauseOnHover: true,             // If true, and autoPlay is enabled, the show will pause on hover
// 		startText: "Go",             // Start text
// 		stopText: "Stop"               // Stop text
// 	});
// 	
// 	$("div .mininav ul li").each(
// 		function( intIndex ){
// 			$( this ).bind (
// 				"click",
// 				function(){
// 					var realIndex = intIndex + 1;
// 					$('.anythingSlider').anythingSlider(realIndex);
// 					// remove current from all navboxes
// 					$('.navbox').removeClass('current');
// 					//add current to this one
// 					$('#slide'+realIndex).addClass('current');
// 					return false;
// 				}
// 				);
// 		}
// 		);
// });