// picture is the name of image that will be dissolved
// include this in the image tag or this will not work and return an error
// style="filter:blendTrans(duration=n)"  where n= the number of seconds to fade
counter=0;

function previousphoto(){
	counter=counter-1
	if (counter<0){
		counter=(photolist.length-1)
	}
	if (document.all)//check browser supports filter effect
	glenabbeypicture.filters.blendTrans.apply()
	document.images.glenabbeypicture.src=photolist[counter]
	
	if (document.all)
	glenabbeypicture.filters.blendTrans.play()
	document.form1.textfield.value=counter+1 + " of " + photolist.length
	window.status=photocaption[counter]
}
function nextphoto(){
	counter=counter+1
	if (counter>(photolist.length-1)){
		counter=0
	}
	if (document.all)//check browser supports filter effect
	glenabbeypicture.filters.blendTrans.apply()
	document.images.glenabbeypicture.src=photolist[counter]
	if (document.all)
	glenabbeypicture.filters.blendTrans.play()
	document.form1.textfield.value=counter+1 + " of " + photolist.length
	window.status=photocaption[counter]
}