<!--
//variable that will increment through the images
var step=0;
function slideit(counter){
//if browser does not support the image object, exit.
imgarr=(document.imgfrm.imgarr.value);
var myArray = imgarr.split( "," );

for( i = 0 ; i < myArray.length ; i++ )
{
	
	if(i==counter)
	{
	//alert(i);
	document.getElementById('mainimg').src= myArray[i];
	}
	

}


step++;
if(step>=myArray.length)
step=0;
//call function "slideit()" every 2.5 seconds
//temp="'" + img1+"','"+img2+"','"+img3+"','"+img4 +"'";
//alert(step);
setTimeout("slideit(step)",5000);
}

