$('ul').shuffle(); //this will shuffle the list
var a = {};
$("ul img").each(function() {
a[this.alt] = $(this).attr("alt");
});
$.operation(a, shuffle);
$('ul').shuffle(); //this will shuffle the list
var a = new Array();
$("ul > img").each(function(i) {
a[i] = $(this).attr("alt");
});
$.operation(a, shuffle);