//-- Original:  Mike McGrath --
//-- This script will build an array of images and rotate them in the browser as a slideshow
//-- each image may have a URL attached

var n = 0;

timedelay = 3;  // 3 secs between pics
timedelay *= 1000;

windowprops = "top=250,left=15,width=200,height=200"; // customize the popup window here if required

function hook() {
var p = (n == 0) ? page[page.length-1] : page[n-1]; // match URL number to image number

//window.open(p,"",windowprops);

// or, instead of opening a new window, 
// send them to the new page instead with:

document.location.href = p;

}

function rotate() {
document.picform.slideshow.src = imgs[n]; // target object
(n == (imgs.length - 1)) ? n = 0 : n++; // test size of array
window.setTimeout("rotate()", timedelay); // change image again after time delay
}
//window.onload = rotate;
//  End -->
