
// (C) 2000 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this  header

// =======================================
// set the following variables
// =======================================


	// Set speed (milliseconds)
	var speed = 3000
	
	// Specify the image files
	var Pic = new Array() // don't touch this
	// to add more images, just continue
	// the pattern, adding to the array below
	
	//declarations
	var p
	var t
	var j = 0
	var preLoad = new Array()

function runSlideShow(myMax,myPath)
{

	
	
	var myCount = 0;
	
	for (i = 1; i <= myMax; i++)
	{
		Pic[myCount] = myPath + '/' + i + '.jpg'; myCount = myCount + 1
	}

	p = Pic.length

	for (i = 0; i < p; i++){
	   preLoad[i] = new Image()
	   preLoad[i].src = Pic[i]
	}


	slideShow()
	
}

function slideShow()
{	
   //document.images.SlideShow.src = preLoad[j].src
   //alert(j)
   j = j + 1
   if (j > (p-1)) j=0
  	//t = setTimeout('slideShow()', speed) 
}
