Array.prototype.shuffle = function() {
    var i = this.length;
    while(i){
        var j = Math.floor(Math.random()*i);
        var t = this[--i];
        this[i] = this[j];
        this[j] = t;
    }
    return this;
};

function replaceNoImg(obj, url) {
    if ( obj.src == '' || obj.src.match('http://images-[a-z]+.amazon.com/') && obj.width == 1 && obj.height == 1 ) {
        obj.src = '/images/noimage_s.gif';
    }
};
