// JavaScript Document

var imageArray = new Array(); // leave as is.

// Specify number of milliseconds between image switches.
var switchMilliseconds = 5000;

// Specify the id of the div or other HTML tag with the 
//   background image to switch.

var divID = 'top';

// To add more images, continue the pattern below.

imageArray[0] = 'images/bgr_bg.jpg';
imageArray[1] = 'images/bgr2_bg.jpg';

// No further customization needed in this JavaScript

function publishPicture(i) {
document.getElementById('top').style.background = 'url("'+imageArray[i]+'") 0 0 no-repeat';
i++;
if( i > (imageArray.length - 1) ) { i = 0; }
setTimeout('publishPicture('+i+')',switchMilliseconds);
}
publishPicture(0);
