// JavaScript Document
// 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 = 5000;

// Specify the id of the div or other HTML tag with the 
//   background image to switch.

var divID = 'content';

// To add more images, continue the pattern below.

imageArray[0] = 'Assets/Images/contentbg/index/01.jpg';
imageArray[1] = 'Assets/Images/contentbg/index/02.jpg';
imageArray[2] = 'Assets/Images/contentbg/index/03.jpg';
/*imageArray[3] = 'Assets/Images/contentbg/04.jpg';
imageArray[4] = 'Assets/Images/contentbg/05.jpg';
imageArray[5] = 'Assets/Images/contentbg/06.jpg';
*/
// No further customization needed in this JavaScript

function publishPicture(i) {
document.getElementById(divID).style.background = 'url("'+imageArray[i]+'")';
i++;
if( i > (imageArray.length - 1) ) { i = 0; }
setTimeout('publishPicture('+i+')',switchMilliseconds);
}
publishPicture(0);

