// First, save a copy of this working version before making any changes. That way if you accidentally break something, you will be able to restore the working version easily.


// 1. Replace the image names inside the double-quotes to your own image names
// You may have any number of images
// All you need to change is the file name. Do not change where it says /portals/126/, etc
// Javascript is very picky - everything needs to stay exactly the same (Notice that there are commas between the images, but not after the last image, etc.)


adImages = new Array("/Portals/126/10-CBT-WebRotProof01_Page_1.jpg", "/Portals/126/LPB HP.jpg", "/Portals/126/LPB HP2.jpg", "/Portals/126/Main3.jpg", "/Portals/126/Main6.jpg")



// 2. Replace the words inside the double-quotes to your own words. These are explanations of the images added above.
// You may have any number of quotes but they *must* equal the number of images that rotate


quote = new Array("Citizens Bank and Trust 1", "Citizens Bank and Trust 2", "Citizens Bank and Trust 3", "Citizens Bank and Trust 4", "Citizens Bank and Trust 5")



thisAd = 0
imgCt = adImages.length
quoteCt = quote.length

function rotate() {
  if (document.images) {
    if (document.cycle.complete) {
	  thisAd++
	  if (thisAd == imgCt && thisAd == quoteCt) {
	    thisAd = 0
	  }
	  document.cycle.src = adImages[thisAd];
      window.defaultStatus = quote[thisAd];
	}
// 3. This sets the interval to which the images and quotes are rotated. 1000 equals 1 second.
	setTimeout("rotate()", 10000)
  }
}
