// (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 = 10000;

// 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]  = 'http://www.cretepark.com/slideshow_images/img1.jpg';
Picture[2]  = 'http://www.cretepark.com/slideshow_images/img2.jpg';
Picture[3]  = 'http://www.cretepark.com/slideshow_images/img3.jpg';
Picture[4]  = 'http://www.cretepark.com/slideshow_images/img4.jpg';
Picture[5]  = 'http://www.cretepark.com/slideshow_images/img5.jpg';
Picture[6]  = 'http://www.cretepark.com/slideshow_images/img6.jpg';
Picture[7]  = 'http://www.cretepark.com/slideshow_images/img7.jpg';
Picture[8]  = 'http://www.cretepark.com/slideshow_images/img8.jpg';
Picture[9]  = 'http://www.cretepark.com/slideshow_images/img9.jpg';
Picture[10] = 'http://www.cretepark.com/slideshow_images/img10.jpg';
Picture[11] = 'http://www.cretepark.com/slideshow_images/img11.jpg';
Picture[12] = 'http://www.cretepark.com/slideshow_images/img12.jpg';
Picture[13] = 'http://www.cretepark.com/slideshow_images/img13.jpg';
Picture[14] = 'http://www.cretepark.com/slideshow_images/img14.jpg';
Picture[15] = 'http://www.cretepark.com/slideshow_images/img15.jpg';
Picture[16] = 'http://www.cretepark.com/slideshow_images/img16.jpg';
Picture[17] = 'http://www.cretepark.com/slideshow_images/img17.jpg';
Picture[18] = 'http://www.cretepark.com/slideshow_images/img18.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]  = "Crete Park District Office";
Caption[2]  = "Trick-or-Treat Trail";
Caption[3]  = "Park Rentals Available";
Caption[4]  = "Ballet By Miss Teresa";
Caption[5]  = "Little Putters Golf";
Caption[6]  = "Crete Park District Bike Trail";
Caption[7]  = "Adult &amp; Teen Programs Too";
Caption[8]  = "Hall Rentals Available";
Caption[9]  = "Pataky T-Ball";
Caption[10] = "Bring Your Booty To Crete Park!";
Caption[11] = "We Even Have Classes For Pets!";
Caption[12] = "Early Childhood Programs";
Caption[13] = "Over 57 Acres Of Family Fun!";
Caption[14] = "2008 Fall Softball Leagues Are Forming";
Caption[15] = "Join A New Circle Of Friends";
Caption[16] = "Fall Preschool Begins September 3, 2008";
Caption[17] = "Before &amp; After School Care Available";
Caption[18] = "Search No Further! The Fun Is At The Park!";

// =====================================
// 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);
}
