Hello all,

I need some help with a rotating image. What I want is the image to rotate only when the page initially loads.

Here is the page. The image is next to the main section of text in the center.
http://www.atlantaantiquegallery.com

Script link:
http://www.atlantaantiquegallery.com/imageRotate.js

What is happening now is the image is swapping after the page loads. I want the image to load randomly as the page loads.

Any ideas on what I did wrong in the script?

Thanks in advance.