$(document).ready(function(){
	$(function() {
	  $("a[rel^='lightbox']").lightbox();
	});
	$(function() {
		$(".table").find("tr:even").addClass("suda");
	});
	$("#carusel").jCarouselLite({
		btnPrev: "#btn-prev",
		btnNext: "#btn-next",
		auto: 4000,
		speed: 350,
		visible: 5
	});
  $('.hslide').shuffle();
  $("#myheader-slides").cycle({ 
		speed: 2000,
		timeout: 7000
	});
  
});
(function($){
    $.fn.shuffle = function() {
        var allElems = this.get(),
            getRandom = function(max) {
                return Math.floor(Math.random() * max);
            },
            shuffled = $.map(allElems, function(){
                var random = getRandom(allElems.length),
                    randEl = $(allElems[random]).clone(true)[0];
                allElems.splice(random, 1);
                return randEl;
           });
        this.each(function(i){
            $(this).replaceWith($(shuffled[i]));
        });
        return $(shuffled);
    };
})(jQuery);
