My Javascript works on IE FF & Safari, but not Chrome
<p>I have a simple rotating banner javascript on the site I'm developing. It works perfectly locally, on IE, Firefox and Safari but not on Chrome. Is there something wrong with my code? I'm new to Javascript so this problem is really baffling me. Here's the relevant code:</p>

<p></p>

<pre><code>&lt;script language="Javascript" type="text/javascript"&gt;
    adImages = new Array
    ("images/AMSite18.png","images/AMSite19.png","images/AMSite09b.png")
    thisAd = 0
    imgCt = adImages.length

    function rotate() {
        if (document.images) {
            thisAd++
            if (thisAd == imgCt) {
                thisAd = 0
            }

            document.adBanner.src=adImages[thisAd]
            setTimeout("rotate()", 3 * 1000)
        }
    }
    &lt;/script&gt;
&lt;/head&gt;

&lt;body onload="rotate()"&gt;
    &lt;div id="banner"&gt;
        &lt;img src="images/banner1.gif" name="adBanner" alt="Ad Banner" /&gt;
    &lt;/div&gt;&lt;!-- end banner --&gt;
&lt;/body&gt;
</code></pre>
