    Array.prototype.shuffle = function( b ) {
        var i = this.length, j, t;
        while( i ) {
            j = Math.floor( ( i-- ) * Math.random() );
            t = b && typeof this[i].shuffle!=='undefined' ? this[i].shuffle() : this[i];
            this[i] = this[j];
            this[j] = t;
        }

        return this;
    }    
    images = new Array();

    images[0] = new Array(HTTP_SERVER+'images/iphone_backgrounds/bg1b.jpg',1600,872);
    images[1] = new Array(HTTP_SERVER+'images/iphone_backgrounds/bg2b.jpg',1600,872);
    images[2] = new Array(HTTP_SERVER+'images/iphone_backgrounds/bg3b.jpg',1600,872);
    
    images = images.shuffle();
    
    var i=1, image = new Array();
    
    image = images[0];
    var bg1 = new Image(image[1], image[2]);
    bg1.src = image[0];
    document.body.style.backgroundImage = "url("+image[0]+")";
    document.body.style.backgroundPosition='top center';
    document.body.style.backgroundAttachment='fixed';
    document.body.style.backgroundRepeat='no-repeat';

    
    images = images.shuffle();
    setInterval(function(){
        if(i>2) i=0;
        image = images[i];
        document.body.style.backgroundImage = "url("+image[0]+")";
        document.body.style.backgroundPosition='top center';
        document.body.style.backgroundAttachment='fixed';
        document.body.style.backgroundRepeat='no-repeat';
        i++;
    }, 120000);

    image = images[1];
    var bg2 = new Image(image[1], image[2]);
    bg2.src = image[0];
    image = images[2];
    var bg3 = new Image(image[1], image[2]);
    bg3.src = image[0];