// Slideshow JS connects with PHP integrated in slideshow.php template

//var images = [<?=$jsarr?>];
var dir = 'images_att';
//var images = [<?=$jsarr?>];
var time = 9000;
var n = 0;
function reset ()
     {
     if (n >= images.length) n = 0;
     return n++;
     }
function slideshow(start)
{
if (start)
 {
 slideshow(0);
 setInterval('slideshow(0)', time);
 }
else
 {
 document.getElementById('img1').src = dir + '/' + images[reset()];
 document.getElementById('img2').src = dir + '/' + images[reset()];
 document.getElementById('img3').src = dir + '/' + images[reset()];
 }
}


/* var whichlink=0
var whichimage=0
var blenddelay=(ie)? document.images.slide.filters[0].duration*1000 : 0
function slidshow(start)
	{
		if (!document.images) return
		if (ie) document.images.slide.filters[0].apply()
		document.images.slide.src=imageholder[whichimage].src
			if (ie) document.images.slide.filters[0].play()
			whichlink=whichimage
			whichimage=(whichimage<slideimages.length-1)? whichimage+1 : 0
			setTimeout("slideshow()",slidespeed+blenddelay)
	}

	*/