// (C) 2000 www.CodeLifter.com
// http://www.codelifter.com

// Set slideShowSpeed (milliseconds)
var slideShowSpeed2 = 5000
// Duration of crossfade (seconds)
var crossFadeDuration2 = 4


var t2
var j2 = 0
var p2 = Pic2.length
var pos2 = j2

var preLoad2 = new Array()

function preLoadPic2(index)
{
	if (Pic2[index] != ''){
		window.status='Loading : '+Pic2[index]
		preLoad2[index] = new Image()
		preLoad2[index].src = Pic2[index]
		Pic2[index] = ''
		window.status=''
	}
}

function runSlideShow2(){
   if (document.all){
    	document.images.SlideShow2.style.filter= "blendTrans(duration=2)"
		document.images.SlideShow2.style.filter= "blendTrans(duration=crossFadeDuration2)"
      document.images.SlideShow2.filters.blendTrans.Apply()
	}
	document.images.SlideShow2.src = preLoad2[j2].src
	if (document.all){
	   document.images.SlideShow2.filters.blendTrans.Play()
	}
	
	pos2 = j2

	j2 = j2 + 1
	if (j2 > (p2-1)) j2=0
	t2 = setTimeout('runSlideShow2()', slideShowSpeed2)
	preLoadPic2(j2)
}

function endSlideShow2(){
	self.document.location = 'index.php?p2=photos'
}


preLoadPic2(j2)