(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);

$(function() {

    $("#adBarRt span").shuffle();

});

$(function() {

    $("#p7ABc1_2 span").shuffle();

});

$(function() {

    $("#partVenueLink div.linkBox").shuffle();

});

$(function() {

    $("#artistLink div.linkBox").shuffle();

});

$(function() {

    $("#oshSitesLink div.linkBox").shuffle();

});

$(function() {

    $("#wisResLink div.linkBox").shuffle();

});

$(function() {

    $(".thisMonth span").shuffle();

});
