/*

  PROTECTED BY COPYRIGHT 2002-2004 JAMES H. ZISCH, ALL RIGHTS RESERVED
  JHAMES H. ZISCH - COMPUTER SERVICES 
  www.jhz-cs.com

*/


var img_ctr;	//	0 is first image displayed in HTML markup
var loop_cntl;
var int_cntl;
var tics = 1000;	//	1000 = 1 second
var	seconds = 5;
var maxloops = 10;

function start_slides ()
{
	img_ctr		= 1;	//#	1st img is 0
	loop_cntl	= 1;

	window.clearInterval(int_cntl);
	int_cntl = window.setInterval("alt_image()",(seconds * tics));
}

function alt_image ()
{
	if (img_ctr >= all_images.length) {
		img_ctr = 0;
		loop_cntl++;
	}

	if (loop_cntl >= maxloops) {
		window.clearInterval(int_cntl);

	} else {
		display_image();
	}
}

function display_image ()
{
	document.images['slides'].src = image_dir + all_images[img_ctr++];
}

onLoad = start_slides();

