// (C) 2002 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this header.

// ==============================
// Set the following variables...
// ==============================

// Set the slideshow speed (in milliseconds)
var SlideShowSpeed = 5000;

// Set the duration of crossfade (in seconds)
var CrossFadeDuration = 3;

var Picture = new Array(); // don't change this
var Caption = new Array(); // don't change this

Picture[1]  = 'IndexSlideshow2/00writingcenter.jpg';
Picture[2]  = 'IndexSlideshow2/01computerlab.jpg';
Picture[3]  = 'IndexSlideshow2/02collage.jpg';
Picture[4]  = 'IndexSlideshow2/03bathroomdrawing.jpg';
Picture[5]  = 'IndexSlideshow2/04lounge.jpg';
Picture[6]  = 'IndexSlideshow2/05abovewc.jpg';
Picture[7]  = 'IndexSlideshow2/06frontdesk.jpg';
Picture[8]  = 'IndexSlideshow2/07tutor.jpg';
Picture[9]  = 'IndexSlideshow2/08library.jpg';
Picture[10] = 'IndexSlideshow2/09galleryquartet.jpg';

Caption[1]  = "The Writing Center as seen from Rockhill Road.";
Caption[2]  = "The computer lab at the Writing Center is open to all students.";
Caption[3]  = "To promote free expression, the Writing Center encourages students to add to the bathroom collage.";
Caption[4]  = "A student adds to the wall art in the Writing Center bathroom.";
Caption[5]  = "Students can socialize or work on homework in the lounge.";
Caption[6]  = "A view of the Writing Center as seen from the Rockhill parking structure.";
Caption[7]  = "Tutors during the annual Writing Center retreat.";
Caption[8]  = "A tutor works with a fellow tutor during the annual Writing Center retreat.";
Caption[9]  = "The Writing Center has a library with resources on writing that are available to all students.";
Caption[10] = "A trio from the Conservatory of Music serenades attendees at the summer art gallery showing.";

// =====================================
// Do not edit anything below this line!
// =====================================

var tss;
var iss;
var jss = 1;
var pss = Picture.length-1;

var preLoad = new Array();
for (iss = 1; iss < pss+1; iss++){
preLoad[iss] = new Image();
preLoad[iss].src = Picture[iss];}

function runSlideShow(){
if (document.all){
document.images.PictureBox.style.filter="blendTrans(duration=2)";
document.images.PictureBox.style.filter="blendTrans(duration=CrossFadeDuration)";
document.images.PictureBox.filters.blendTrans.Apply();}
document.images.PictureBox.src = preLoad[jss].src;
if (document.getElementById) document.getElementById("CaptionBox").innerHTML= Caption[jss];
if (document.all) document.images.PictureBox.filters.blendTrans.Play();
jss = jss + 1;
if (jss > (pss)) jss=1;
tss = setTimeout('runSlideShow()', SlideShowSpeed);
}