//RANDOM ATHLETE WITH QUOTE// Set up the image files to be used.
var AthleteWithQuote = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array. Rememeber
// to increment the athleteandquaote[x] index!

AthleteWithQuote[0] = 'images/athletes/about_atlt_sptlght.gif'
AthleteWithQuote[1] = 'images/athletes/talent_atlt_sptlght.gif'
AthleteWithQuote[2] = 'images/athletes/research_atlt_sptlght.gif'
AthleteWithQuote[3] = 'images/athletes/publishers_atlt_sptlght.gif'
AthleteWithQuote[4] = 'images/athletes/pressandnews_atlt_sptlght.gif'
AthleteWithQuote[5] = 'images/athletes/platform_atlt_sptlght.gif'
AthleteWithQuote[6] = 'images/athletes/jobs_atlt_sptlght.gif'
AthleteWithQuote[7] = 'images/athletes/contactus_atlt_sptlght.gif'
AthleteWithQuote[8] = 'images/athletes/advertisers_atlt_sptlght.gif'

var j = 0
var p = AthleteWithQuote.length;

var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = AthleteWithQuote[i]
}

var whichImage = Math.round(Math.random()*(p-1));
function showAthleteWithQuote(){
document.write('<img src="'+AthleteWithQuote[whichImage]+'">');
}

// ======================================


//RANDOM ATHLETE WITH QUOTE// Set up the image files to be used.
var AthleteWithoutQuote = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array. Rememeber
// to increment the athleteandquaote[x] index!

AthleteWithoutQuote[0] = 'images/athletes/lidstrom_sptlght_noquote.gif'
AthleteWithoutQuote[1] = 'images/athletes/thabeet_sptlght_noquote.gif'
AthleteWithoutQuote[2] = 'images/athletes/thomas_sptlght_noquote.gif'
AthleteWithoutQuote[3] = 'images/athletes/cook_sptlght_noquote.gif'
AthleteWithoutQuote[4] = 'images/athletes/carter_sptlght_noquote.gif'
AthleteWithoutQuote[5] = 'images/athletes/langhorn_sptlght_noquote.gif'
AthleteWithoutQuote[6] = 'images/athletes/posada_sptlght_noquote.gif'
AthleteWithoutQuote[7] = 'images/athletes/jacobs_sptlght_noquote.gif'
AthleteWithoutQuote[8] = 'images/athletes/brees_sptlght_noquote.gif'


var j = 0
var p = AthleteWithoutQuote.length;

var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = AthleteWithoutQuote[i]
}

var whichImage = Math.round(Math.random()*(p-1));
function showAthleteWithoutQuote(){
document.write('<img src="'+AthleteWithoutQuote[whichImage]+'">');
}

// ======================================

//RANDOM ATHLETE WITH QUOTE// Set up the image files to be used.
var AthleteActivation = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array. Rememeber
// to increment the athleteandquaote[x] index!

AthleteActivation[0] = 'images/athletes/standin_posada.jpg'
AthleteActivation[1] = 'images/athletes/standin_jacobs.jpg'
AthleteActivation[2] = 'images/athletes/standin_posada.jpg'
AthleteActivation[3] = 'images/athletes/standin_jacobs.jpg'
AthleteActivation[4] = 'images/athletes/standin_posada.jpg'
AthleteActivation[5] = 'images/athletes/standin_jacobs.jpg'
AthleteActivation[6] = 'images/athletes/standin_posada.jpg'
AthleteActivation[7] = 'images/athletes/standin_jacobs.jpg'
AthleteActivation[8] = 'images/athletes/standin_posada.jpg'

var j = 0
var p = AthleteActivation.length;

var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = AthleteActivation[i]
}

var whichImage = Math.round(Math.random()*(p-1));
function showAthleteActivation(){
document.write('<img src="'+AthleteActivation[whichImage]+'">');
}

// ======================================