
// Set up the image files to be used.
var theImagesRight = new Array() // do not change this
var theLinksRight = new Array()
// To add more image files, continue with the
// pattern below, adding to the array.

theImagesRight[0] = 'http://www.wmich.edu/coe/images/features/pt3.gif'
theImagesRight[1] = 'http://www.wmich.edu/coe/images/features/ed_tech.gif'
theImagesRight[2] = 'http://www.wmich.edu/coe/images/features/global_gate.gif'
theImagesRight[3] = 'http://www.wmich.edu/coe/images/features/occu_ed.gif'
theImagesRight[4] = 'images/features/diet.gif'
theImagesRight[5] = 'images/features/pe.gif'
theImagesRight[6] = 'images/features/gearup.gif'
theImagesRight[7] = 'images/features/ways-to-give.jpg'

theLinksRight[0] = 'http://www.wmich.edu/pt3/'
theLinksRight[1] = 'http://www.wmich.edu/edtech/'
theLinksRight[2] = 'http://www.wmich.edu/coe-committees/intl/'
theLinksRight[3] = 'http://www.wmich.edu/gus/occupnedn.html'
theLinksRight[4] = 'http://www.wmich.edu/fcs/dietetics/'
theLinksRight[5] = 'http://www.wmich.edu/coe/hper/'
theLinksRight[6] = 'http://www.wmich.edu/gearup/'
theLinksRight[7] = '/coe/waystogive.html'

// do not edit anything below this line

j = 0
p = theImagesRight.length;
var preBufferRight = new Array()
for (i = 0; i < p; i++){
   preBufferRight[i] = new Image()
   preBufferRight[i].src = theImagesRight[i]
}
var whichImageRight = Math.round(Math.random()*(p-1));
function showImageRight(){
document.write('<a href="'+theLinksRight[whichImageRight]+'"><img src="'+theImagesRight[whichImageRight]+'" border="0"></a>');
}

// math randomizer for random functions
rnd.today=new Date();
rnd.seed=rnd.today.getTime();

function rnd() {
        rnd.seed = (rnd.seed*9301+49297) % 233280;
        return rnd.seed/(233280.0);
};

function rand(number) {
        return Math.ceil(rnd()*number);
};



// random happy people for homepage
hhpp = new Array()
hhpp[0] = "<img src='images/home/coeindex/04.jpg' border=0>";
hhpp[1] = "<img src='images/home/coeindex/06.jpg' border=0>";
hhpp[2] = "<img src='images/home/coeindex/13.jpg' border=0>";
hhpp[3] = "<img src='images/home/coeindex/15.jpg' border=0>";
hhpp[4] = "<img src='images/home/coeindex/04.jpg' border=0>";
hhpp[5] = "<img src='images/home/coeindex/bridge.jpg' border=0>";
hhpp[6] = "<img src='images/home/coeindex/Ed19.jpg' border=0>";
hhpp[7] = "<img src='images/home/coeindex/Ed5.jpg' border=0>";
hhpp[8] = "<img src='images/home/coeindex/homepage2.jpg' border=0>";
hhpp[9] = "<img src='images/home/coeindex/Millwood3.jpg' border=0>";
hhpp[10] = "<img src='images/home/coeindex/sculpture-sangren-closeup.jpg' border=0>";

function csPeeps() {    
msg = hhpp[rand(hhpp.length)-1] 
   return msg;
   }


//DATE SCRIPT

month = new Array(12);
      month[0]="January"

      month[1]="February"

      month[2]="March"

      month[3]="April"

      month[4]="May"

      month[5]="June"

      month[6]="July"

      month[7]="August"

      month[8]="September"

      month[9]="October"

      month[10]="November"

      month[11]="December"



    day = new Array(7);

      day[0]="Sunday"

      day[1]="Monday"

      day[2]="Tuesday"

      day[3]="Wednesday"

      day[4]="Thursday"

      day[5]="Friday"

      day[6]="Saturday"



    today=new Date();

    d0=today.getDay();

    m0=today.getMonth();

    d1=today.getDate();

	y0=today.getYear();
	
//END DATE SCRIPT