$(document).ready(function () {
	$('#explore #exploreBtn').click(function() {
		$(this).next().toggle('slow', function(){$.scrollTo( '#exploreBtn', 800 );});
		$('#explore #exploreBtn').toggleClass('open');
		return false;
	}).next().hide();

	$('.anythingSlider').anythingSlider({
		easing: "linear",        // 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: 8000,                    // How long between slide transitions in AutoPlay mode
		startStopped: false,            // If autoPlay is on, this can force it to start stopped
		animationTime: 3000,             // 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: "&nbsp;",                // Start text
		stopText: "&nbsp;",               // Stop text
		navigationFormatter: null // Details at the top of the file on this use (advanced use)
	});
	
	$("#one").click(function(){
		$('.anythingSlider').anythingSlider(1);
	});
	$("#two").click(function(){
		$('.anythingSlider').anythingSlider(2);
	});
	$("#three").click(function(){
		$('.anythingSlider').anythingSlider(3);
	});
	$("#four").click(function(){
		$('.anythingSlider').anythingSlider(4);
	});
	$("#five").click(function(){
		$('.anythingSlider').anythingSlider(5);
	});
	
	$('.jclock').jclock();
});
