// Background image slide show
// http://www.willmaster.com/
// Copyright 2008 Bontrager Connection, LLC


var imageArray = new Array(), zInterval = null, current=0, pause=false;

// 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 = 'headcontainer01';

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

imageArray[0] = 'images/headbg/admins.jpg';
imageArray[1] = 'images/headbg/checkup.jpg';
imageArray[2] = 'images/headbg/ctscan.jpg';
imageArray[3] = 'images/headbg/pastoralcare.jpg';
imageArray[4] = 'images/headbg/pastoralcare01.jpg';
imageArray[5] = 'images/headbg/pastoralcare02.jpg';
imageArray[6] = 'images/headbg/mass.jpg';
imageArray[7] = 'images/headbg/hospitalgarden.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);
}




