var totalImages1 = 6; 
var fadeDuration = 3; 
var imageName = "images/slideshowimage"; 
var imageFormat = ".jpg"; 
var comments = new Array(); 
var noComMsg = ""; 

var images = new Array();
var preImages = new Array();
var counter = 1;
var totalImages = totalImages1 + 2;
var time =0;
var browser = navigator.appName;
var letsgo = null;

for(i = 1; i < totalImages; i++)
{
images[i] = imageName + i + imageFormat;
}
for(a = 1; a < totalImages; a++)
{
preImages[a] = new Image();
preImages[a].src = images[a];
}
function makeGo()
{
var speedSec = 4; 
var speed = (speedSec * 1000);

if (document.all)
{

	document.images.SlideShow.style.filter="blendTrans(duration=fadeDuration)";
	document.images.SlideShow.filters.blendTrans.Apply();
}

document.getElementById('SlideShow').src = preImages[counter].src;

if (document.all)
{
	document.images.SlideShow.filters.blendTrans.Play();
}
if(browser != "Netscape" && document.all && document.all.commentSpace)
{
	if(comments[counter] != undefined)
	{
		document.all.commentSpace.innerText = comments[counter];
	}
	if(comments[counter] == undefined)
	{
		document.all.commentSpace.innerText = noComMsg;
	}
}

counter++;
time = setTimeout('makeGo()', speed);
if(counter >= (totalImages-1))
{
counter = 1;
}

}
window.onload = function () {
var letsgo = makeGo();
}