var slideShowSpeed = 4000;
var crossFadeDuration = 4000;
var Pic = new Array();
var Pict = new Array();
var Picf = new Array();
var Pica = new Array();
var Picg = new Array();

Pic[0] = 'slideimages/00.png';
Pic[1] = 'slideimages/01.png';
Pic[2] = 'slideimages/02.png';
Pic[3] = 'slideimages/03.png';
Pic[4] = 'slideimages/04.png';
Pic[5] = 'slideimages/05.png';
Pic[6] = 'slideimages/06.png';
Pic[7] = 'slideimages/07.png';
Pic[8] = 'slideimages/08.png';
Pic[9] = 'slideimages/09.png';
Pic[10] = 'slideimages/10.png';
Pic[11] = 'slideimages/11.png';
var t;
var j = 0,k=0,u=0;
var p = Pic.length;

var preLoad = new Array();
for (i = 0; i < p; i++) {
preLoad[i] = new Image();
preLoad[i].src = Pic[i];
}

var preLoad1 = new Array();
for (i = 0; i < p; i++) {
preLoad1[i] = new Image();
preLoad1[i].src = Pict[i];
}

var preLoad2 = new Array();
for (i = 0; i < p; i++) {
preLoad2[i] = new Image();
preLoad2[i].src = Picf[i];
}

var preLoad3 = new Array();
for (i = 0; i < p; i++) {
preLoad3[i] = new Image();
preLoad3[i].src = Pica[i];
}


var preLoad4 = new Array();
for (i = 0; i < p; i++) {
preLoad4[i] = new Image();
preLoad4[i].src = Picg[i];
}

function runSlideShow()
{
	if (document.all)
	{
		document.images.SlideShow.style.filter="revealTrans(duration=2)";
		document.images.SlideShow.style.filter="revealTrans(duration=2,transition=40)";
		document.images.SlideShow.filters.revealTrans.Apply();
	}

	document.images.SlideShow.src = preLoad[j].src;
	//document.images.SlideShow1.src = preLoad2[k].src;
	
	if (document.all)
	{
		document.images.SlideShow.filters.revealTrans.Play();
		//document.images.SlideShow1.filters.revealTrans.Play();
	}
	
	j = j + 1;
	k = k + 1;
	u = u + 1;
	
	if (j > (p - 1))
		{
		j = 0; k = 0; u = 0;
		}
		t = setTimeout('runSlideShow()', slideShowSpeed);
}

function runSlideShow1()
{
	if (document.all)
	{
		document.images.SlideShow.style.filter="revealTrans(duration=2)";
		document.images.SlideShow.style.filter="revealTrans(duration=2,transition=40)";
		document.images.SlideShow.filters.revealTrans.Apply();

	}

	document.images.SlideShow.src = preLoad1[j].src;
	//document.images.SlideShow1.src = preLoad2[k].src;
	
	if (document.all)
	{
		document.images.SlideShow.filters.revealTrans.Play();
		//document.images.SlideShow1.filters.revealTrans.Play();
	}
	
	j = j + 1;
	k = k + 1;
	u = u + 1;
	
	if (j > (p - 1))
		{
		j = 0; k = 0; u = 0;
		}
		t = setTimeout('runSlideShow1()', slideShowSpeed);
}


function runSlideShow2()
{
	if (document.all)
	{
		document.images.SlideShow.style.filter="revealTrans(duration=2)";
		document.images.SlideShow.style.filter="revealTrans(duration=2,transition=40)";
		document.images.SlideShow.filters.revealTrans.Apply();
	}

	document.images.SlideShow.src = preLoad2[j].src;
	
	if (document.all)
	{
		document.images.SlideShow.filters.revealTrans.Play();
	}
	
	j = j + 1;
	k = k + 1;
	u = u + 1;
	
	if (j > (p - 1))
		{
		j = 0; k = 0; u = 0;
		}
		t = setTimeout('runSlideShow2()', slideShowSpeed);
}



function runSlideShow3()
{
	if (document.all)
	{
		document.images.SlideShow.style.filter="revealTrans(duration=2)";
		document.images.SlideShow.style.filter="revealTrans(duration=2,transition=40)";
		document.images.SlideShow.filters.revealTrans.Apply();

	}

	document.images.SlideShow.src = preLoad3[j].src;
	
	if (document.all)
	{
		document.images.SlideShow.filters.revealTrans.Play();
	}
	
	j = j + 1;
	k = k + 1;
	u = u + 1;
	
	if (j > (p - 1))
		{
		j = 0; k = 0; u = 0;
		}
		t = setTimeout('runSlideShow3()', slideShowSpeed);
}


function runSlideShow4()
{
	if (document.all)
	{
		document.images.SlideShow.style.filter="revealTrans(duration=2)";
		document.images.SlideShow.style.filter="revealTrans(duration=2,transition=40)";
		document.images.SlideShow.filters.revealTrans.Apply();
	}

	document.images.SlideShow.src = preLoad4[j].src;	
	
	if (document.all)
	{
		document.images.SlideShow.filters.revealTrans.Play();
	}
	
	j = j + 1;
	k = k + 1;
	u = u + 1;
	
	if (j > (p - 1))
		{
		j = 0; k = 0; u = 0;
		}
		t = setTimeout('runSlideShow4()', slideShowSpeed);
}
