// JavaScript Document

$(document).ready(function(){
	var num_div = $('#cycle_rotation div').length;
	if (num_div <= 1) {
		$("#cycle_next").hide();
		$("#cycle_prev").hide();
	}
	
	$('#cycle_rotation').cycle({ 
			fx:     'fade', //how the slides change. Can also use
			speed:   1500, //how quickly the slides change. In milliseconds
			timeout: 6000, //how long slide is displayed before change. In milliseconds
			next:   '#cycle_next', //id for the next button
			prev:   '#cycle_prev', //id for the previous button
			pager:  '#cycle_nav', //id for the rotation navigation
			pause:   1 //slides pause when moused over.  change to 0 for no pause
	});
	
});
