Well, could it be this typo:
document.banner.src - imgArray[index].src;
Change this to
equal to
sign from a minus. As long as the images are in the same location as html file, it should pick up the value. Format should not matter.
document.banner.src = imgArray[index].src;