var theImages = new Array();
var whichImage;

function random() {

    theImages[0] = '/Portals/0/Images/Banners/01.jpg';
    theImages[1] = '/Portals/0/Images/Banners/02.jpg';
    theImages[2] = '/Portals/0/Images/Banners/03.jpg';
    theImages[3] = '/Portals/0/Images/Banners/04.jpg';
    theImages[4] = '/Portals/0/Images/Banners/05.jpg';
    theImages[5] = '/Portals/0/Images/Banners/06.jpg';
    theImages[6] = '/Portals/0/Images/Banners/07.jpg';
    theImages[7] = '/Portals/0/Images/Banners/08.jpg';
    theImages[8] = '/Portals/0/Images/Banners/09.jpg';
    theImages[9] = '/Portals/0/Images/Banners/10.jpg';
    theImages[10] = '/Portals/0/Images/Banners/11.jpg';
    theImages[11] = '/Portals/0/Images/Banners/12.jpg';
    theImages[12] = '/Portals/0/Images/Banners/13.jpg';
    theImages[13] = '/Portals/0/Images/Banners/14.jpg';
    theImages[14] = '/Portals/0/Images/Banners/15.jpg';
    theImages[15] = '/Portals/0/Images/Banners/16.jpg';
    theImages[16] = '/Portals/0/Images/Banners/17.jpg';
    theImages[17] = '/Portals/0/Images/Banners/18.jpg';
    theImages[18] = '/Portals/0/Images/Banners/19.jpg';
    theImages[19] = '/Portals/0/Images/Banners/20.jpg';

    var j = 0;
    var p = theImages.length;
    var preBuffer = new Array();
    for (i = 0; i < p; i++) {
        preBuffer[i] = new Image();
        preBuffer[i].src = theImages[i];
    }
    whichImage = Math.round(Math.random() * (p - 1));

    showImage();

}

function showImage() {
    document.write('<img width="691" height="118" src="' + theImages[whichImage] + '">');
}

