//		This code for slideshow was written by Srinivas Chillappa (srinivas.chillappa@ttu.edu).
//		Copyright 2003 by Srinivas Chillappa.
//		If you want to use this code, you must include this notice in the header of the webpage, 
//		where you intend using this code. You should retain this notice.

var slideShowSpeed = 4000;
var crossFadeDuration = .5;
var transnum = 12;

var imgArray = new Array() 

imgArray[0] = 'SOM/Images/slideshow/image1.jpg'
imgArray[1] = 'SOM/Images/slideshow/image2.jpg'
imgArray[2] = 'SOM/Images/slideshow/image3.jpg'
imgArray[3] = 'SOM/Images/slideshow/image4.jpg'
imgArray[4] = 'SOM/Images/slideshow/image5.jpg'
imgArray[5] = 'SOM/Images/slideshow/image6.jpg'
imgArray[6] = 'SOM/Images/slideshow/image7.jpg'
imgArray[7] = 'SOM/Images/slideshow/image8.jpg'
imgArray[8] = 'SOM/Images/slideshow/image9.jpg'
imgArray[9] = 'SOM/Images/slideshow/image10.jpg'



var ss;
var k = 0;
var ln = imgArray.length;
var currImage = new Array();
for (i = 0; i < ln; i++) {
currImage[i] = new Image();
currImage[i].src = imgArray[i];
}
function cs() {
if (document.all) {
if (transnum == 12) transnum = 21;
else if (transnum == 21) transnum = 22;
else if (transnum == 22) transnum = 10;
else if (transnum == 10) transnum = 11;
else if (transnum == 11) transnum = 12;
document.images.cs.style.filter="revealTrans(duration='"+crossFadeDuration+"', transition='"+transnum+"')";
document.images.cs.filters.revealTrans.Apply();
}
document.images.cs.src = currImage[k].src;
if (document.all) {
document.images.cs.filters.revealTrans.Play();
}
k = k + 1;
if (k > (ln - 1)) k = 0;
ss = setTimeout('cs()', slideShowSpeed);
}
