/* 
This page is for the slideshow.
*/


numberOfImages = 5;  //this is the total number of images. You may change.
seconds = "4";    //number of seconds each images shows.

image = 1;    //don't change this
pause = false;  //don't change this either

function imgProducts()
{
	if(pause == false)
	{

		if(image > numberOfImages )
		{
			image =  1;
		
		}
		imageName = "slideshow/";
		imageName += image;
		imageName += ".jpg";
		image ++;
		document.getElementById("myimg").src = imageName;
		setTimeout("imgProducts()", seconds * 1000);
	}
}

function pauseRotate()
{
	pause = true;

}

function resumeRotate()
{
	pause = false;
	imgProducts();

}

