
$.metadata.setType("attr", "validate");

jQuery(document).ready(function($) {
	

	var div_count = $('#cycle-rotation .cycle-slide').length;
	
	if(div_count <= 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
			pause:   1, //slides pause when moused over.  change to 0 for no pause
   		cleartype:  true,
    	cleartypeNoBg:  true
});
	

});



