Why this setTimeout() methods not working in this function?
<pre><code>function SlideShow(area)
    {
        var SlideImg = new Array('img1', 'img2');
        var SlideArea = document.getElementById(area);
        for(i=0;i&lt;SlideImg.length;i++)
        {
            var html = '&lt;img src="images/room/' + SlideImg[i] + '.jpg" id="' + SlideImg[i] + '" class="not-active" /&gt;';
            SlideArea.innerHTML += html;
        }
        var a = 0;
        function RunSlide()
        {
            document.getElementById(SlideImg[a]).className = 'active';
            a++;    
        }
        var run = setTimeout('RunSlide()', 5000);
    }
</code></pre>

<p>This function not working after I add the setTimeout() method there. Can anybody help me?</p>
