var slideShowSpeed    = 3500
var crossFadeDuration = 2
var t

function changefrontpic(img){
	//document.getElementById("frontpic").src=img.replace("small", "big").toString();
	runSlideShow(img);
}

function runSlideShow(img){
	var preLoad = new Image();
	preLoad.src = img.src.replace("small", "big").toString();;
	if (document.all){
		document.images.frontpic.style.filter="blendTrans(duration=2)";
		document.images.frontpic.style.filter="blendTrans(duration=crossFadeDuration)";
		document.images.frontpic.filters.blendTrans.Apply();
	}
	document.images.frontpic.src = img.src.replace("small", "big").toString();
	document.images.frontpic.width = preLoad.width;
	if (document.all){
		document.images.frontpic.filters.blendTrans.Play();
	}
	t = setTimeout("runSlideShow(img)", slideShowSpeed);
}
