var speed	= 3000;
var fade 	= 15;
var pic 	= new Array(); // don't change this
var txt 	= new Array(); // don't change this

pic[1]  = 'images/slideshow/image01.jpg';
pic[2]  = 'images/slideshow/image02.jpg';
pic[3]  = 'images/slideshow/image03.jpg';
pic[4]  = 'images/slideshow/image04.jpg';
pic[5]  = 'images/slideshow/image05.jpg';
pic[6]  = 'images/slideshow/image06.jpg';
pic[7]  = 'images/slideshow/image07.jpg';
pic[8]  = 'images/slideshow/image08.jpg';
pic[9]  = 'images/slideshow/image09.jpg';
pic[10] = 'images/slideshow/image10.jpg';
pic[11] = 'images/slideshow/image11.jpg';
pic[12] = 'images/slideshow/image12.jpg';
pic[13] = 'images/slideshow/image13.jpg';
pic[14] = 'images/slideshow/image14.jpg';
pic[15] = 'images/slideshow/image15.jpg';
pic[16] = 'images/slideshow/image16.jpg';
pic[17] = 'images/slideshow/image17.jpg';
pic[18] = 'images/slideshow/image18.jpg';
pic[19] = 'images/slideshow/image19.jpg';
pic[20] = 'images/slideshow/image20.jpg';
pic[21] = 'images/slideshow/image21.jpg';
pic[22] = 'images/slideshow/image22.jpg';
pic[23] = 'images/slideshow/image23.jpg';
pic[24] = 'images/slideshow/image24.jpg';
pic[25] = 'images/slideshow/image25.jpg';
pic[26] = 'images/slideshow/image26.jpg';
pic[27] = 'images/slideshow/image27.jpg';
pic[28] = 'images/slideshow/image28.jpg';
pic[29] = 'images/slideshow/image29.jpg';
pic[30] = 'images/slideshow/image30.jpg';
pic[31] = 'images/slideshow/image31.jpg';
pic[32] = 'images/slideshow/image32.jpg';
pic[33] = 'images/slideshow/image33.jpg';
pic[34] = 'images/slideshow/image34.jpg';
pic[35] = 'images/slideshow/image35.jpg';
pic[36] = 'images/slideshow/image36.jpg';
pic[37] = 'images/slideshow/image37.jpg';
pic[38] = 'images/slideshow/image00.gif';
pic[39] = 'images/slideshow/image00.gif';

txt[1]  = "";
txt[2]  = "";
txt[3]  = "";
txt[4]  = "";
txt[5]  = "";
txt[6]  = "";
txt[7]  = "";
txt[8]  = "";
txt[9]  = "";
txt[10] = "";
txt[11] = "";
txt[12] = "";
txt[13] = "";
txt[14] = "";
txt[15] = "";
txt[16] = "";
txt[17] = "";
txt[18] = "";
txt[19] = "";
txt[20] = "";
txt[21] = "";
txt[22] = "";
txt[23] = "";
txt[24] = "";
txt[25] = "";
txt[26] = "";
txt[27] = "";
txt[28] = "";
txt[29] = "";
txt[30] = "";
txt[31] = "";
txt[32] = "";
txt[33] = "";
txt[34] = "";
txt[35] = "";
txt[36] = "";
txt[37] = "";
txt[38] = "";
txt[39] = "";

var x;
var y1 			= 1;
var z;
var sCnt 		= pic.length-1;
var preLoad = new Array();

for (x = 1; x < sCnt+1; x++){
		preLoad[x] 		 = new Image();
		preLoad[x].src = pic[x];}

function runSlides(){
if (document.all){
		document.images.PicImg1.style.filter="blendTrans(duration=fade)";
		document.images.PicImg1.filters.blendTrans.Apply();
		document.images.PicImg2.style.filter="blendTrans(duration=fade)";
		document.images.PicImg2.filters.blendTrans.Apply();
		document.images.PicImg3.style.filter="blendTrans(duration=fade)";
		document.images.PicImg3.filters.blendTrans.Apply();}

y2 = y1 - 1
y3 = y1 - 2

if (y2 < 1){y2 = y2 + sCnt}
if (y3 < 1){y3 = y3 + sCnt}

document.images.PicImg1.src = preLoad[y1].src;
document.images.PicImg2.src = preLoad[y2].src;
document.images.PicImg3.src = preLoad[y3].src;

if (document.getElementById) document.getElementById("PicTxt1").innerHTML= txt[y1];
if (document.all) document.images.PicImg1.filters.blendTrans.Play();
if (document.getElementById) document.getElementById("PicTxt2").innerHTML= txt[y2];
if (document.all) document.images.PicImg2.filters.blendTrans.Play();
if (document.getElementById) document.getElementById("PicTxt3").innerHTML= txt[y3];
if (document.all) document.images.PicImg3.filters.blendTrans.Play();

y1 = y1 + 1;

if (y1 > (sCnt)) y1=1;
z = setTimeout('runSlides()', speed);
}