$(function() {	
		$("#ultimas_noticias").jCarouselLite({
			btnNext: ".noticiadesce",
			btnPrev: ".noticiasobe",
			vertical: true
		});
		$("#galeria").jCarouselLite({
			btnNext: ".galeriadesce",
			btnPrev: ".galeriasobe",
			vertical: true,
			visible: 2
		});
		$("#videos").jCarouselLite({
			btnNext: ".galeria_videos_desce",
			btnPrev: ".galeria_videos_sobe",
			vertical: true,
			visible: 4,
			circular: false
		});
		$("#videos_apoio").jCarouselLite({
			btnNext: ".galeria_videos_desce",
			btnPrev: ".galeria_videos_sobe",
			vertical: true,
			visible: 2,
			circular: false
		});
		$("#apoio_destaque").jCarouselLite({
			btnNext: ".apoiodesce",
			btnPrev: ".apoiosobe",
			vertical: true,
			visible: 8
		});
});

/*   
 * jQuery shuffle   
 *   
 * Copyright (c) 2008 Ca Phun Ung    
 * Dual licensed under the MIT (MIT-LICENSE.txt)   
 * and GPL (GPL-LICENSE.txt) licenses.   
 *   
 * http://yelotofu.com/labs/jquery/snippets/shuffle/   
 *   
 * Shuffles an array or the children of a element container.   
 * This uses the Fisher-Yates shuffle algorithm    
 */   
    
(function($){

	$.fn.shuffle = function() {
		return this.each(function(){
			var items = $(this).children().clone(true);
			return (items.length) ? $(this).html($.shuffle(items)) : this;
		});
	}
	
	$.shuffle = function(arr) {
		for(var j, x, i = arr.length; i; j = parseInt(Math.random() * i), x = arr[--i], arr[i] = arr[j], arr[j] = x);
		return arr;
	}
	
})(jQuery);