// JavaScript Document
// This file is used as the random image rotator for the home page.
// It must be included along with the table information in the html to display the language flags.

// Create a new array, will be used for linking images.
var images = new Array()

// To add url for each image file here 
images[0] = 'http://www.okstate.edu/finaid/test/Summer 07-10-07 025.JPG'
images[1] = 'http://www.okstate.edu/finaid/assets/dustin_campbell_library2.jpg'
images[2] = 'http://www.okstate.edu/finaid/assets/dustin_campbell_morril.jpg'
images[3] = 'http://www.okstate.edu/finaid/assets/dustin_campbell_seretean.jpg'
images[4] = 'http://www.okstate.edu/finaid/assets/dustin_campbell_clock2.jpg'
images[5] = 'http://www.okstate.edu/finaid/assets/library3.jpg' 
images[6] = 'http://www.okstate.edu/finaid/assets/oldcentral_dustin_campbell.jpg' 

// Randomize array selection
var j = 0
var k = images.length;
var temp = new Array()
for (i = 0; i < k; i++){
   temp[i] = new Image()
   temp[i].src = images[i]
}
var whichImage = Math.round(Math.random()*(k-1));
function DisplayImage(){
document.write('<img src="../test/'+images[whichImage]+'" width="300" height="230">');
}
//-->// JavaScript Document