var theImages = new Array()

theImages[0] = 'images/charles_mingus.jpg'
theImages[1] = 'images/dizzy_gillespie.jpg'
theImages[2] = 'images/billie_holiday.jpg'
theImages[3] = 'images/benny_goodman.jpg'
theImages[4] = 'images/art_tatum.jpg'
theImages[5] = 'images/abbey_lincoln.jpg'
theImages[6] = 'images/art_pepper.jpg'
theImages[7] = 'images/count_basie.jpg'
theImages[8] = 'images/dave_brubeck.jpg'
theImages[9] = 'images/duke_ellington.jpg'
theImages[10] = 'images/ella_fitzgerald.jpg'
theImages[11] = 'images/gerry_mulligan.jpg'
theImages[12] = 'images/horace_silver.jpg'
theImages[13] = 'images/jelly_roll_morton.jpg'
theImages[14] = 'images/ornette_coleman.jpg'
theImages[15] = 'images/abbey_lincoln.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]
}

var whichImage = Math.round(Math.random()*(p-1));

function showImage(){
    //document.write('<img src="'+theImages[whichImage]+'">');
    document.getElementById("subnav_back").style.backgroundImage = "url('" + theImages[whichImage] + "')";
}