// © RiversMarshall.com
// You are free to use and modify this script for your own purposes. 
// If you uilize this script as-is, please give credit in your code comments.

// This should be used with HeaderPreLoad.js and  CheckBrowser.js

var intImageIndex=0
var intImageMaxIndex = picSlideImages.length - 1 
var intChangeDelay = 0

function ftnAnimatePics() {
	if (document.images) {
		if (navBrowser.indexOf("MSIE") > 0) {
			document.images.slide.filters[0].apply()
			document.images.slide.src = picLoadedImages[intImageIndex].src
			document.images.slide.filters[0].play()
			intChangeDelay = 8000
			}
		else {
			document.images.slide.src = picLoadedImages[intImageIndex].src
			intChangeDelay = 5000
			} // end if
		if (intImageIndex < intImageMaxIndex) {
			intImageIndex++
			}
		else {
			intImageIndex = 0
			} // end if
		setTimeout("ftnAnimatePics()", intChangeDelay)
		} // end if
	} //end function

ftnAnimatePics()

