Random Rotating Background Images using javaScript

Hello, I was wondering if anyone had a script that they used to randomly change background images. Basically I have a table that has a background image and I want that image to be a random image selected from an array. I have used one in the past to just randomly display images with links attached, but I have never done it with a background image. So to speak.

Anyway, any help you can offer would be great! Thanks -

Peter