//<script>
curFade = 0
function StartFade(width,height,howOften,howLong){
	document.write('<img src="' + FadeImages[curFade] + '" id="FadeImage" name="FadeImage" style="filter:blendTrans(Duration=' + howLong + ');width:' + width + 'px;height:' + height + 'px">')
	setInterval("NextFade()",howOften*1000)
}

function NextFade(){
	curFade++
	if(curFade==FadeImages.length) curFade=0;
	var img = document.images.FadeImage;
	if(document.all){
		var F = img.filters[0];
		S_Apply(F);
	}
	img.src = FadeImages[curFade];
	if(document.all){
		S_Play(F);
	}
}
if(document.getElementById){
	S_Apply=new Function("F","try{F.Apply()}catch(e){}")
	S_Play=new Function("F","try{F.Play()}catch(e){}")
} else {
	S_Apply=new Function("F","F.Apply()")
	S_Play=new Function("F","F.Play()")
}

