
var Pic = new Array()
var iStartAt = 2

Pic[0] = 'images/the_question.jpg'
Pic[1] = 'images/the_question.jpg'
Pic[2] = 'images/the_question.jpg'
Pic[3] = 'images/the_question.jpg'
Pic[4] = 'images/the_question.jpg'
Pic[5] = 'images/the_question.jpg'
Pic[6] = 'images/the_question.jpg'
Pic[7] = 'images/puzzle_results.jpg'
Pic[8] = 'images/puzzle_robust.jpg'
Pic[9] = 'images/puzzle_harvest.jpg'
Pic[10] = 'images/puzzle_support.jpg'
Pic[11] = 'images/puzzle_resilience.jpg'
Pic[12] = 'images/puzzle_cultivate.jpg'
Pic[13] = 'images/puzzle_soundness.jpg'
Pic[14] = 'images/puzzle_structure.jpg'
Pic[15] = 'images/puzzle_fertile.jpg'
Pic[16] = 'images/puzzle_ground.jpg'
Pic[17] = 'images/puzzle_growth.jpg'

var slideShowSpeed = 500
var crossFadeDuration = 0

var iSlideShowTimeout
var iSlideShowLoop = Random(Pic.length)
var iSlideShowLength = Pic.length

if (typeof(iStartAt) != "undefined")
	iSlideShowLoop = iStartAt-2

function Random(x) 
{ 
var iRnd = Math.floor(x*Math.random())
return (iRnd)
}

var preLoad = new Array()
for (i = 0; i < iSlideShowLength; i++)
{
   preLoad[i] = new Image()
   preLoad[i].src = Pic[i]
}

function runSlideShow()
{
	if (document.all)
	{
		document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
		document.images.SlideShow.style.filter="blendTrans(duration=0)"
		document.images.SlideShow.filters.blendTrans.Apply()
	}
	document.images.SlideShow.src = preLoad[iSlideShowLoop].src

	if (document.all)
	{
		document.images.SlideShow.filters.blendTrans.Play()
	}

	iSlideShowLoop = iSlideShowLoop + 1
	if (iSlideShowLoop > (iSlideShowLength-1)) return (0)
	iSlideShowTimeout = setTimeout('runSlideShow()', slideShowSpeed)
}


