// (C) 2002 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this header.

// ==============================
// Set the slideshow speed (in milliseconds)
var SlideShowSpeed = 5000;

// Set the duration of crossfade (in seconds)
var CrossFadeDuration = 300;

var Picture = new Array(); // don't change this
var Picture2 = 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.

Picture[1]  = 'slides/painting.jpg';
Picture[2]  = 'slides/p6.jpg';
Picture[3]  = 'slides/p4.jpg';
Picture[4]  = 'slides/p5.jpg';

Picture2[1]  = 'slides/expans/expan01.jpg';
Picture2[2]  = 'slides/expans/expan02.jpg';
Picture2[3]  = 'slides/expans/expan03.jpg';
Picture2[4]  = 'slides/expans/expan04.jpg';
Picture2[5]  = 'slides/expans/expan05.jpg';
Picture2[6]  = 'slides/expans/expan06.jpg';

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];}


var tss2;
var iss2;
var jss2 = 1;
var pss2 = Picture2.length-1;
var preLoad2 = new Array();
for (iss2 = 1; iss2 < pss2+1; iss2++){
preLoad2[iss2] = new Image();
preLoad2[iss2].src = Picture2[iss2];}

function setRunSlideShow(){
	window.setTimeout("runSlideShow();", 1000);
	window.setTimeout("runSlideShow2();", 3000);
}

function runSlideShow(){
if (document.all){
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 runSlideShow2(){
if (document.all){
document.images.PictureBox2.style.filter="blendTrans(duration=CrossFadeDuration)";
document.images.PictureBox2.filters.blendTrans.Apply();}
document.images.PictureBox2.src = preLoad2[jss2].src;

if (document.all) document.images.PictureBox2.filters.blendTrans.Play();
jss2 = jss2 + 1;
if (jss2 > (pss2)) jss2=1;
tss2 = setTimeout('runSlideShow2()', SlideShowSpeed);
}


