
var Pic = new Array()
var iStartAt = 2

Pic[0] = 'images/home_page_fader/10.png'
Pic[1] = 'images/home_page_fader/11.png'
Pic[2] = 'images/home_page_fader/12.png'
Pic[3] = 'images/home_page_fader/14.png'
Pic[4] = 'images/home_page_fader/15.png'
Pic[5] = 'images/home_page_fader/18.png'
Pic[6] = 'images/home_page_fader/19.png'
Pic[7] = 'images/home_page_fader/20.png'
Pic[8] = 'images/home_page_fader/30.png'
Pic[9] = 'images/home_page_fader/31.png'

var slideShowSpeed = 2750
var crossFadeDuration = 2

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=2)"
		document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
		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)) iSlideShowLoop=0
	iSlideShowTimeout = setTimeout('runSlideShow()', slideShowSpeed)
}


