var theImages = new Array();
var whichImage;

function random() {

    theImages[0] = '/Portals/0/Banners/accsc_1.jpg';
    theImages[1] = '/Portals/0/Banners/accsc_2.jpg';
    theImages[2] = '/Portals/0/Banners/accsc_3.jpg';
    theImages[3] = '/Portals/0/Banners/accsc_4.jpg';
    theImages[4] = '/Portals/0/Banners/accsc_5.jpg';
    theImages[5] = '/Portals/0/Banners/accsc_6.jpg';
    theImages[6] = '/Portals/0/Banners/accsc_7.jpg';
    theImages[7] = '/Portals/0/Banners/accsc_8.jpg';
    theImages[8] = '/Portals/0/Banners/accsc_9.jpg';
    theImages[9] = '/Portals/0/Banners/accsc_10.jpg';
    theImages[10] = '/Portals/0/Banners/accsc_11.jpg';
    theImages[11] = '/Portals/0/Banners/accsc_12.jpg';
    theImages[12] = '/Portals/0/Banners/accsc_13.jpg';
    theImages[13] = '/Portals/0/Banners/accsc_14.jpg';
    theImages[14] = '/Portals/0/Banners/accsc_15.jpg';
    theImages[15] = '/Portals/0/Banners/accsc_16.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="988" height="237" src="' + theImages[whichImage] + '">');
}
