// JavaScript Document
// (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 = 3000;

// 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.iconarch.com/assets/engage/plays/chris_olmsted.jpg';
Picture[2]  = 'http://www.iconarch.com/assets/engage/plays/Group5_AvenirTour.jpg';
Picture[3]  = 'http://www.iconarch.com/assets/engage/plays/IMG_1032.JPG';
Picture[4]  = 'http://www.iconarch.com/assets/engage/plays/IMG_1043.jpg';
Picture[5]  = 'http://www.iconarch.com/assets/engage/plays/IMG_1052.jpg';
Picture[6]  = 'http://www.iconarch.com/assets/engage/plays/j_055.jpg';
Picture[7]  = 'http://www.iconarch.com/assets/engage/plays/j_065.jpg';
Picture[8]  = 'http://www.iconarch.com/assets/engage/plays/j_164.jpg';
Picture[9] = 'http://www.iconarch.com/assets/engage/plays/Janis_FAIAdinner.jpg';
Picture[10]  = 'http://www.iconarch.com/assets/engage/plays/katefenway.jpg';
Picture[11]  = 'http://www.iconarch.com/assets/engage/plays/MichelleA_David.jpg';
Picture[12]  = 'http://www.iconarch.com/assets/engage/plays/Nancy_FAIAdinner.jpg';
Picture[13]  = 'http://www.iconarch.com/assets/engage/plays/novice.JPG';
Picture[14]  = 'http://www.iconarch.com/assets/engage/plays/Steve_Jenny_08Golf.jpg';
Picture[15]  = 'http://www.iconarch.com/assets/engage/plays/teacher.JPG';
Picture[16]  = 'http://www.iconarch.com/assets/engage/plays/team.jpg';
Picture[17]  = 'http://www.iconarch.com/assets/engage/plays/walk_ for_hunger.jpg';
Picture[18]  = 'http://www.iconarch.com/assets/engage/plays/davidw1.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]  = "Olmsted Green Job Site Tour: I could live here... - 2008";
Caption[2]  = "ICON Staff touring nearly finished Avenir project in Boston - 2008";
Caption[3]  = "Annual ICON Bowling Event - 2008";
Caption[4]  = "Annual Summer Party in Fresh Air - 2007";
Caption[5]  = "Annual Summer Party in Fresh Air - 2007";
Caption[6]  = "Annual Summer Party Canoeing Extravaganza - 2007";
Caption[7]  = "Annual Summer Party Canoeing Pros - 2007";
Caption[8]  = "Annual Summer Party Cricket Game - 2007";
Caption[9] = "ICON sponsors the AIA Dinner - 2008";
Caption[10]  = "Fenway Park Tour - 2006";
Caption[11]  = "Birthday Celebration at the Office - 2007";
Caption[12]  = "ICON sponsors the AIA Dinner - 2008";
Caption[13]  = "Annual ICON Golf Tournament - 2008";
Caption[14]  = "Annual ICON Golf Tournament - 2008";
Caption[15]  = "Annual ICON Golf Tournament - 2008";
Caption[16]  = "ICON Softball Team - 2008";
Caption[17] = "ICON participates in the Walk for Hunger - 2008";
Caption[18] = "An ICON-er mushes in Voluntown, CT - 2010";

// =====================================
// 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);
}
