$(document).ready(function() { 						
	//BREAKING SLIDER
	$('#breaking').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: 3000,  // 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
	 navigationFormatter: formatText       // Details at the top of the file on this use (advanced use)
  });
	
	function formatText(index, panel) {
	  return index + "";
	}
	
	//SPOTLIGHT SLIDER LAYOUT 1
	$('#slider1').cycle({
		fx: 'fade', // transition types: http://jquery.malsup.com/cycle/browser.html
		timeout: 4000, // how long the slide is displayed
		speed: 300, // the speed of the transition effect
		pause: 1, // pause on hover
		cleartype: true, // IE FIX
		cleartypeNoBg: true // IE FIX
	});	
	
	//SPOTLIGHT SLIDER LAYOUT 3
	$("#slider3 > ul").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 7000, true);
	
	//RECENT REACTIONS CYCLER
	$('.recent-reactions').cycle({
		fx: 'scrollUp', // transition types: http://jquery.malsup.com/cycle/browser.html
		timeout: 1, // how long the slide is displayed
		speed: 35000, // the speed of the transition effect
		easing: 'linear',	
		continuous: 1,
		cleartype: true, // IE FIX
		cleartypeNoBg: true // IE FIX
	});	
}); 

//setup the nivo slider
jQuery(window).load(function() {
	jQuery('#slider2').nivoSlider({
		effect:'random', //Specify sets like: 'fold,fade,sliceDown'
		slices:15,
		animSpeed:300, //Slide transition speed
		pauseTime:4000,
		startSlide:0, //Set starting Slide (0 index)
		directionNav:true, //Next and Prev
		directionNavHide:true, //Only show on hover
		controlNav:true, //1,2,3...
		controlNavThumbs:true, //Use thumbnails for Control Nav
		controlNavThumbsFromRel:false, //Use image rel for thumbs
		controlNavThumbsSearch: '.jpg', //Replace this with...
		controlNavThumbsReplace: '_thumb.jpg', //...this in thumb Image src
		keyboardNav:true, //Use left and right arrows
		pauseOnHover:true, //Stop animation while hovering
		manualAdvance:false, //Force manual transitions
		captionOpacity:0.8 //Universal caption opacity								 
	});
});
