<!--
// ==============================================
// Copyright 2003 by jsCode.com
// Source: jsCode.com
// Author: etLux
// Free for all; but please leave in the header.
// ==============================================
//
// Rotation Script file for Family Matters Website
//
// Set up the Arrays to be used.

var theImages = new Array()
var theAlts = new Array()
var theQuotes = new Array()

// To add more image files, continue with the
// pattern below, adding to the array. Rememeber
// to increment the theImages[x] index!

theImages[0] = 'http://www4.nau.edu/fronske/banners/1.jpg'
theImages[1] = 'http://www4.nau.edu/fronske/banners/2.jpg'
theImages[2] = 'http://www4.nau.edu/fronske/banners/3.jpg'
theImages[3] = 'http://www4.nau.edu/fronske/banners/4.jpg'
theImages[4] = 'http://www4.nau.edu/fronske/banners/5.jpg'
theImages[5] = 'http://www4.nau.edu/fronske/banners/6.jpg'
theImages[6] = 'http://www4.nau.edu/fronske/banners/7.jpg'
theImages[7] = 'http://www4.nau.edu/fronske/banners/8.jpg'
theImages[8] = 'http://www4.nau.edu/fronske/banners/9.jpg'
theImages[9] = 'http://www4.nau.edu/fronske/banners/10.jpg'
theImages[10] = 'http://www4.nau.edu/fronske/banners/11.jpg'
theImages[11] = 'http://www4.nau.edu/fronske/banners/12.jpg'
theAlts[0] = 'Professor Teaching Students'
theAlts[1] = 'Business College Students'
theAlts[2] = 'NAU Graduates'
theAlts[3] = 'Recreating Students'
theAlts[4] = 'NAU Students'
theAlts[5] = 'NAU Students'
theAlts[6] = 'CTC Test Takers'
theAlts[7] = 'Aspen Trees'
theAlts[8] = 'Smiling Student'
theAlts[9] = 'NAU Students'
theAlts[10] = 'Graduating Students Celebrate'
theAlts[11] = 'The Grand Canyon'

// ======================================
// do not change anything below this line
// ======================================

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]+'" alt="'+theAlts[whichImage]+'">');
}
