
adImages = new Array("portals/keyworthbank/home1.jpg","portals/keyworthbank/home2.jpg")

quote = new Array("This is Image 1","This is Image 2")

adURL = new Array ("http://www.keyworthbank.com","http://12.69.145.147/MedicalBanking.aspx")

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];
	}
// This sets the interval to which the images and quotes are rotated. 1000 equals 1 second
	setTimeout("rotate()", 5000)
  }
}

function rotateLink() { window.parent.location.href = adURL[thisAd] }
