// 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 = 3000;

// Specify the id of the div or other HTML tag with the 
//   background image to switch.

var divID = 'rotimg';

// To add more images, continue the pattern below.

imageArray[0] = 'images/rotate/flowserve.jpg';
imageArray[1] = 'images/rotate/ingersoll.jpg';
imageArray[2] = 'images/rotate/imo.jpg';
imageArray[3] = 'images/rotate/fmc.jpg';
imageArray[4] = 'images/rotate/side.jpg';
imageArray[5] = 'images/rotate/watson.jpg';
imageArray[6] = 'images/rotate/hydro.jpg';
imageArray[7] = 'images/rotate/williams.jpg';
imageArray[8] = 'images/rotate/allweiler.jpg';
imageArray[9] = 'images/rotate/milton.jpg';
imageArray[10] = 'images/rotate/zenith.jpg';
imageArray[11] = 'images/rotate/pms.jpg';

// No further customization needed in this JavaScript

function publishPicture(i) {
document.getElementById(divID).style.background = '#3e407a url("'+imageArray[i]+'") no-repeat  10px 20px';
i++;
if( i > (imageArray.length - 1) ) { i = 0; }
setTimeout('publishPicture('+i+')',switchMilliseconds);
}
publishPicture(0);