slide=new Array()
for (x=0;x<5;x++){
	slide[x]=new Image()
	slide[x].src="assets/slides/slide"+x+".jpg"
}

which_slide=0
slide_timer=""

function slide_show(){
	if(document.images) {
	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 = slide[which_slide].src
	if (document.all) {
		document.images.slideshow.filters.blendTrans.Play()}
	which_slide++
	if (which_slide>4){which_slide=0}
	slide_clock()
	}
}

function slide_clock(){
	clearTimeout(slide_timer)
	slide_timer==setTimeout("slide_show()",4000)
}
