/* jQuery Rotate */
(function($){$.fn.rotate=function(){var container=$(this);var totale=container.find("div").size();var current=0;var i=setInterval(function(){if(current>=totale)current=0;container.find("div").filter(":eq("+current+")").fadeIn("slow").end().not(":eq("+current+")").fadeOut("slow");current++;},10000);return container;};})(jQuery);

/* jQuery Shuffle */
(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);
