if(jQuery){
	$(document).ready(function(){
		/*$('#slideshow_holder').cycle({ 
			fx: 'fade',
			speed: 600,
			timeout: 4000, 
			pager: '#slideshow_nav' 
		});*/
		
		$('#slideshow_holder').nivoSlider({
			effect:'fold', //Specify sets like: 'fold,fade,sliceDown'
			slices:10,
			animSpeed:750,
			pauseTime:4000,
			startSlide:0, //Set starting Slide (0 index)
			directionNav:true, //Next & Prev
			directionNavHide:false, //Only show on hover
			controlNav:true, //1,2,3...
			controlNavThumbs:false, //Use thumbnails for Control Nav
			controlNavThumbsFromRel:false, //Use image rel for thumbs
			keyboardNav:true, //Use left & right arrows
			pauseOnHover:false, //Stop animation while hovering
			manualAdvance:false, //Force manual transitions
			captionOpacity:0 //Universal caption opacity
		});

		
		$('#quotes').cycle({ 
			fx: 'fade',
			speed: 600,
			timeout: 8000, 
			next: '#arrow_right',
			prev: '#arrow_left',
			delay: 2000
		});
		
		$("#arrow_left").css("top",$("#quotes_container").height()/2 - 25);
		$("#arrow_right").css("top",$("#quotes_container").height()/2 - 25);
		
		$(".nivo-controlNav").css("top",345 - ($(".nivo-controlNav").height() + 78 ));
	});
}

