// ==============================
// Set the following variables...
// ==============================

// Set the slideshow speed (in milliseconds)
var SlideShowSpeed = 2000;

// Set the duration of crossfade (in seconds)
var CrossFadeDuration = 3;

var Picture_a = new Array(); // don't change this
var Picture_b = new Array(); // don't change this
var Picture_c = new Array(); // don't change this
var Picture_d = new Array(); // don't change this
var Picture_e = new Array(); // don't change this
var Picture_f = 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!


var ls_foto =  new Array();

var li_foto_a = 1;  
var li_foto_b = 2;  
var li_foto_c = 3;  
var li_foto_d = 4;  
var li_foto_e = 5; 

var li_index_a = 1;  
var li_index_b = 2;  
var li_index_c = 3;  
var li_index_d = 4;  
var li_index_e = 5;

var li_teller;

ls_foto[1] = "images/mais.jpg";
ls_foto[2] = "images/varken.jpg";
ls_foto[3] = "images/p_fruit1.jpg";
ls_foto[4] = "images/melkvee1.jpg";
ls_foto[5] = "images/fiscaal.jpg";
ls_foto[6] = "images/oogst.jpg";


for (li_teller = 0; li_teller < 30; li_teller++)
{
	if (li_foto_a > 0)
	{
		Picture_a[li_teller] = ls_foto[li_index_a];
		li_foto_a --;
	}
	else
	{
		li_foto_a = 4;
		li_index_a --;
		if (li_index_a == 0)
		{
			li_index_a = 6;
		}
		Picture_a[li_teller] = ls_foto[li_index_a];
	}
	

	if (li_foto_b > 0)
	{
		Picture_b[li_teller] = ls_foto[li_index_b];
		li_foto_b --;
	}
	else
	{
		li_foto_b = 4;
		li_index_b --;
		if (li_index_b == 0)
		{
			li_index_b = 6;
		}
		Picture_b[li_teller] = ls_foto[li_index_b];
	}


	if (li_foto_c > 0)
	{
		Picture_c[li_teller] = ls_foto[li_index_c];
		li_foto_c --;
	}
	else
	{
		li_foto_c = 4;
		li_index_c --;
		if (li_index_c == 0)
		{
			li_index_c = 6;
		}
		Picture_c[li_teller] = ls_foto[li_index_c];
	}


	if (li_foto_d > 0)
	{
		Picture_d[li_teller] = ls_foto[li_index_d];
		li_foto_d --;
	}
	else
	{
		li_foto_d = 4;
		li_index_d --;
		if (li_index_d == 0)
		{
			li_index_d = 6;
		}
		Picture_d[li_teller] = ls_foto[li_index_d];
	}



	if (li_foto_e > 0)
	{
		Picture_e[li_teller] = ls_foto[li_index_e];
		li_foto_e --;
	}
	else
	{
		li_foto_e = 4;
		li_index_e --;
		if (li_index_e == 0)
		{
			li_index_e = 6;
		}
		Picture_e[li_teller] = ls_foto[li_index_e];
	}

}



// 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 iss;
var jss = 1;
var pss = Picture_a.length-1;

var preLoad_a = new Array();
var preLoad_b = new Array();
var preLoad_c = new Array();
var preLoad_d = new Array();
var preLoad_e = new Array();

for (iss = 1; iss < pss+1; iss++)
{
preLoad_a[iss] = new Image();
preLoad_a[iss].src = Picture_a[iss];
preLoad_b[iss] = new Image();
preLoad_b[iss].src = Picture_b[iss];
preLoad_c[iss] = new Image();
preLoad_c[iss].src = Picture_c[iss];
preLoad_d[iss] = new Image();
preLoad_d[iss].src = Picture_d[iss];
preLoad_e[iss] = new Image();
preLoad_e[iss].src = Picture_e[iss];
}

function runSlideShow()
{
	if (document.all)
	{
		document.images.tekening1.style.filter="blendTrans(duration=2)";
		document.images.tekening1.style.filter="blendTrans(duration=CrossFadeDuration)";
		document.images.tekening1.filters.blendTrans.Apply();

		document.images.tekening2.style.filter="blendTrans(duration=2)";
		document.images.tekening2.style.filter="blendTrans(duration=CrossFadeDuration)";
		document.images.tekening2.filters.blendTrans.Apply();

		document.images.tekening3.style.filter="blendTrans(duration=2)";
		document.images.tekening3.style.filter="blendTrans(duration=CrossFadeDuration)";
		document.images.tekening3.filters.blendTrans.Apply();

		document.images.tekening4.style.filter="blendTrans(duration=2)";
		document.images.tekening4.style.filter="blendTrans(duration=CrossFadeDuration)";
		document.images.tekening4.filters.blendTrans.Apply();

		document.images.tekening5.style.filter="blendTrans(duration=2)";
		document.images.tekening5.style.filter="blendTrans(duration=CrossFadeDuration)";
		document.images.tekening5.filters.blendTrans.Apply();
	}

	document.images.tekening1.src = preLoad_a[jss].src;
	if (document.all) document.images.tekening1.filters.blendTrans.Play();
	document.images.tekening2.src = preLoad_b[jss].src;
	if (document.all) document.images.tekening2.filters.blendTrans.Play();
	document.images.tekening3.src = preLoad_c[jss].src;
	if (document.all) document.images.tekening3.filters.blendTrans.Play();
	document.images.tekening4.src = preLoad_d[jss].src;
	if (document.all) document.images.tekening4.filters.blendTrans.Play();
	document.images.tekening5.src = preLoad_e[jss].src;
	if (document.all) document.images.tekening5.filters.blendTrans.Play();

	jss = jss + 1;
	if (jss > (pss)) jss=1;
	tss = setTimeout('runSlideShow()', SlideShowSpeed);

}

