// Background image slide show
// http://www.willmaster.com/
// Copyright 2008 Bontrager Connection, LLC

var imageArray = new Array(); // leave as is.

// Specify number of milliseconds between image switches.
var switchMilliseconds = 3000;

// Specify the id of the div or other HTML tag with the 
//   background image to switch.

var divID = 'banner_col_lft';

// To add more images, continue the pattern below.

imageArray[0] = 'images/home-rotatingimage/image-1.jpg';
imageArray[1] = 'images/home-rotatingimage/image-2.jpg';
imageArray[2] = 'images/home-rotatingimage/image-3.jpg';
imageArray[3] = 'images/home-rotatingimage/image-4.jpg';
imageArray[4] = 'images/home-rotatingimage/image-5.jpg';

// No further customization needed in this JavaScript

function publishPicture(i) {
document.getElementById(divID).style.background = '#FEF7DA url("'+imageArray[i]+'") no-repeat center';
i++;
if( i > (imageArray.length - 1) ) { i = 0; }
setTimeout('publishPicture('+i+')',switchMilliseconds);
}
publishPicture(0);