// (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;
var SlideShowSpeedX = 2000;
var SlideShowSpeedY = 4000;

// Set the duration of crossfade (in seconds)
var CrossFadeDuration = 3;
var CrossFadeDurationX = 6;
var CrossFadeDurationY = 9;
var Picture = new Array(); // don't change this
var Caption = new Array(); // don't change this
var PictureX = new Array(); // don't change this
var CaptionX = new Array(); // don't change this
var PictureY = new Array(); // don't change this
var CaptionY = 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]  = '/images/slideshow1/001.jpg';
Picture[2]  = '/images/slideshow1/002.jpg';
Picture[14]  = '/images/slideshow1/015.jpg';
Picture[3]  = '/images/slideshow1/003.jpg';
Picture[4]  = '/images/slideshow1/004.jpg';
Picture[13]  = '/images/slideshow1/014.jpg';
Picture[6]  = '/images/slideshow1/006.jpg';
Picture[7]  = '/images/slideshow1/007.jpg';
Picture[12]  = '/images/slideshow1/008.jpg';
Picture[11]  = '/images/slideshow1/009.jpg';
Picture[10]  = '/images/slideshow1/010.jpg';
Picture[5]  = '/images/slideshow1/011.jpg';
Picture[8]  = '/images/slideshow1/012.jpg';
Picture[9]  = '/images/slideshow1/013.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!




// =====================================
// Do not edit anything below this line!
// =====================================

var tss;
var tssX;
var tssY;

var iss;
var issX;
var issY;

var jss = 1;
var jssX = 1;
var jssY = 1;

var pss = Picture.length-1;
var pssX = PictureX.length-1;
var pssY = PictureY.length-1;

var preLoad = new Array();
for (iss = 1; iss < pss+1; iss++){
preLoad[iss] = new Image();
preLoad[iss].src = Picture[iss];}

var preLoadX = new Array();
for (issX = 1; issX < pssX+1; issX++){
preLoadX[issX] = new Image();
preLoadX[issX].src = PictureX[issX];}

var preLoadY = new Array();
for (issY = 1; issY < pssY+1; issY++){
preLoadY[issY] = new Image();
preLoadY[issY].src = PictureY[issY];}

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.all) document.images.PictureBox.filters.blendTrans.Play();
jss = jss + 1;
if (jss > (pss)) jss=1;
tss = setTimeout('runSlideShow()', SlideShowSpeed);
}

function runSlideShowX(){
if (document.all){
document.images.PictureBoxX.style.filter="blendTrans(duration=2)";
document.images.PictureBoxX.style.filter="blendTrans(duration=CrossFadeDurationX)";
document.images.PictureBoxX.filters.blendTrans.Apply();}
document.images.PictureBoxX.src = preLoadX[jssX].src;

if (document.all) document.images.PictureBoxX.filters.blendTrans.Play();
jssX = jssX + 1;
if (jssX > (pssX)) jssX=1;
tssX = setTimeout('runSlideShowX()', SlideShowSpeedX);
}

function runSlideShowY(){
if (document.all){
document.images.PictureBoxY.style.filter="blendTrans(duration=2)";
document.images.PictureBoxY.style.filter="blendTrans(duration=CrossFadeDurationY)";
document.images.PictureBoxY.filters.blendTrans.Apply();}
document.images.PictureBoxY.src = preLoadY[jssY].src;

if (document.all) document.images.PictureBoxY.filters.blendTrans.Play();
jssY = jssY + 1;
if (jssY > (pssY)) jssY=1;
tssY = setTimeout('runSlideShowY()', SlideShowSpeedY);
}