//		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] = 'Images/home_slide/homecoop2.gif'
imgArray[1] = 'Images/home_slide/homeinnov1.gif'
imgArray[2] = 'Images/home_slide/homeexcel1.gif'
imgArray[3] = 'Images/home_slide/homeleader.gif'
imgArray[4] = 'Images/home_slide/homeacad.gif'
imgArray[5] = 'Images/home_slide/homeresp.gif'
imgArray[6] = 'Images/home_slide/homeaccount.gif'
imgArray[7] = 'Images/home_slide/homefriend1.gif'
imgArray[8] = 'Images/home_slide/homediver.gif'


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);
}
