// ==============================
// Set the following variables...
// ==============================

// Set the slideshow speed (in milliseconds)
var SlideShowSpeed = 9000;

// Set the duration of crossfade (in seconds)
var CrossFadeDuration = 3;

// declare the arrays - don't change this.

var Picture = new Array(); 
var Picture2 = new Array();
var Picture3 = new Array();



// 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/slideshow1_1.jpg';
Picture[2]  = 'slides/slideshow1_2.jpg';
Picture[3]  = 'slides/slideshow1_3.jpg';

Picture2[1]  = 'slides/slideshow2_1.jpg';
Picture2[2]  = 'slides/slideshow2_2.jpg';
Picture2[3]  = 'slides/slideshow2_3.jpg';

Picture3[1]  = 'slides/slideshow3_1.jpg';
Picture3[2]  = 'slides/slideshow3_2.jpg';
Picture3[3]  = 'slides/slideshow3_3.jpg';


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

var tss;
var iss;
var jss = 1;
var pss = Picture.length-1;
var pss2 = Picture2.length-1;
var pss3 = Picture3.length-1;

//preloaders

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

var preLoad2 = new Array();
	for (iss = 1; iss < pss2+1; iss++)
		{
		preLoad2[iss] = new Image();
		preLoad2[iss].src = Picture2[iss];
		}

var preLoad3 = new Array();
	for (iss = 1; iss < pss3+1; iss++)
		{
		preLoad3[iss] = new Image();
		preLoad3[iss].src = Picture3[iss];
		}

//slideshow effects

function runSlideShow(){
	

	if (document.all){
	document.images.PictureBox.style.filter="blendTrans(duration=2)";
	document.images.PictureBox.style.filter="blendTrans(duration=3)";
	document.images.PictureBox.filters.blendTrans.Apply();
	//#2
	document.images.PictureBox2.style.filter="blendTrans(duration=2)";
	document.images.PictureBox2.style.filter="blendTrans(duration=6)";
	document.images.PictureBox2.filters.blendTrans.Apply();
	//#3
	document.images.PictureBox3.style.filter="blendTrans(duration=2)";
	document.images.PictureBox3.style.filter="blendTrans(duration=9)";
	document.images.PictureBox3.filters.blendTrans.Apply();
	
	}
	//#1
	document.images.PictureBox.src = preLoad[jss].src;
	if (document.all) document.images.PictureBox.filters.blendTrans.Play();
	//#2

	document.images.PictureBox2.src = preLoad2[jss].src;
	if (document.all) document.images.PictureBox2.filters.blendTrans.Play();
	//#3

	document.images.PictureBox3.src = preLoad3[jss].src;
	if (document.all) document.images.PictureBox3.filters.blendTrans.Play();	
	
	jss = jss + 1;
	//#1
	if (jss > (pss)) jss=1;
	//#2

	if (jss > (pss2)) jss=1;
	//#3

	if (jss > (pss3)) jss=1;
	
	tss = setTimeout('runSlideShow()', SlideShowSpeed);
	
	}

