Pausing for a split moment in JavaScript
<p>I have the following JavaScript code:</p>

<pre><code>var cILo=true;

var img1="images/title-2a.png";
var img2="images/title-2b.png";

function loadblinker() {
    for (var i=0,l=Math.floor(Math.random()*10);i&lt;l;++i) {
        cILo=!cILo;
        if (cILo) {
            document.getElementById("lamp").src=img1;
        } else {
            document.getElementById("lamp").src=img2;
        }
        !!!! THIS LINE HERE !!!!
    }
    document.getElementById("lamp").src=img1;
    setTimeout("loadblinker()",Math.floor(Math.random()*10000));
}
</code></pre>

<p>Where I have marked the code with the phrase <strong>"!!!! THIS LINE HERE !!!!"</strong>, I need some way to pause the execution for a split second.  This code, when it is done, is going to give the appearance of a short circuiting light (light in the video games).  I was wondering as to how I would pause the code seeing as there appears to be no natural method.</p>
