// rotating gallery home
$(document).ready(function(){
	
	// function formatText(index, panel) {
	// 	return index + "";
	// }
    

        
	$('.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: 7000,                    // How long between slide transitions in AutoPlay mode
		startStopped: false,            // If autoPlay is on, this can force it to start stopped
		animationTime: 900,             // How long the slide transition takes
		hashTags: true,                 // 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: function(index, panel){
			return panel.attr("title"); // This would have each tab with the text 'X Panel' where X = index
		}
	});
	
	$(".cover", this).stop().animate({top:'190px'},{queue:false,duration:160});
	
	// Caption Sliding (Partially Hidden to Visible)
	$('.boxgrid.caption').hover(function(){
		$(".cover", this).stop().animate({top:'80px'},{queue:false,duration:160});
	}, function() {
		$(".cover", this).stop().animate({top:'190px'},{queue:false,duration:160});
	});
		
	// $('a.forward').live('mouseover mouseout', function(){
	// 	if (event.type == 'mouseover') {
	// 		$(".cover.boxcation", this).stop().animate({top:'80px'},{queue:false,duration:160});
	// 	} else {
	// 		$(".cover", this).stop().animate({top:'190px'},{queue:false,duration:160});
	// 	}
	// });
		
});