// (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 = 9000;

// 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

// Specify the image files...
// To add more images, just continue
// the pattern, adding to the array below.
// To use fewer images, remove lines
// starting at the end of the Picture array.
// Caution: The number of Pictures *must*
// equal the number of Captions!

Picture[1]  = '/uploadedimages/photos/Rick Warren at CBU 09-10-08.jpg';
Picture[2]  = '/uploadedimages/photos/SON ribbon cutting.JPG';
Picture[3]  = '/uploadedimages/photos/Alex and Marcel from Rwanda.JPG';
Picture[4]  = '/uploadedimages/photos/Behavioral Sciences 25-year banner.jpg';
Picture[5]  = '/uploadedimages/photos/BHowardHSUSC.jpg';
Picture[6]  = '/uploadedimages/photos/BMW Mini Worx.JPG';
Picture[7]  = '/uploadedimages/photos/CIMG8864.JPG';
Picture[8]  = '/uploadedimages/photos/Krista Miller.jpg';

// Specify the Captions...
// To add more captions, just continue
// the pattern, adding to the array below.
// To use fewer captions, remove lines
// starting at the end of the Caption array.
// Caution: The number of Captions *must*
// equal the number of Pictures!

Caption[1]  = "Pastor Rick Warren, in introducing the new 'Living With Purpose' bible study at CBU on Sept. 10, said he estimates this could be the 'largest college Bible study thus far,' and that CBU could be 'setting the tone for universities all over the world.'";
Caption[2]  = "Dr. Ronald L. Ellis, CBU President, uses oversized scissors to cut the ceremonial ribbon at the dedication ceremony and grand opening of the new CBU School of Nursing facilities. Dr. Ellis is flanked by (left to right): donors Shelby and Ferne Collinsworth; Phil Fouke, son of the late Peggy Fouke-Wortz, who was a longtime friend of CBU; Lucas Wehner, CBU international student and friend of the Knuppe family; Sherry Messner, representing the Women of Vision fundraising group, and Dr. Connie Milton, dean of the School of Nursing.";
Caption[3]  = "Rwandan nationals Alex Muganza (left) and classmate Marcel Gatete attend the international student welcome event that was hosted by CBU faculty and staff in the Staples Room at CBU in late August.";
Caption[4]  = "School of Behavioral Sciences faculty and staff will host a reunion celebration in honor of the 25-year anniversary of the counseling program on May 1, 2009 at CBU. Faculty and staff members pictured include (left to right): Denitria Davidson, Dr. Carol Minton, Dr. Kathryn Fagan, Debbie Jahant, Jill Sandoval, Mischa Routon, Dr. Nathan Lewis, Marilyn Moore, Dr. Gary Collins, Dr. Ken Pearce, Dr. Bruce Stokes and Dr. Aine Bergin.";
Caption[5]  = "Dr. Howard also participated in an invitational summit of church music professors at Truett Seminary/Baylor University, July 20-22. Conversations focused on the theme 'Building the Next Generation of Worship Leaders.'";
Caption[6]  = "The Jabs School of Business conducted an 11-day study abroad program to Oxford, UK. The students had the opportunity to see theory in action by visiting the BMW Mini Worx factory (photo below, left) and seeing international product produced just feet away from where they were standing. They learned the history of the local area by visiting the town of Bath, Blenheim Palace, Stonehenge, and Oxford Castle.";
Caption[7]  = "Office of Spiritual Life staff participated in Collegiate Week at Glorieta Conference Center in New Mexico this summer. They won third place in a volleyball competition.";
Caption[8]  = "CBU's Krista Jo Miller, far left, performs in summer production of Quilters.";

// =====================================
// 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);
}
