Changing image depending on div contents
<p>I have a jquery div returning simple text and I want to display a different image without the user noticing a flash every few seconds. </p>

<pre><code>&lt;script&gt;
function status(){
    $('#status').empty();    
    $('#status').load('status/&lt;?php echo $call-&gt;sid;?&gt;');
    setTimeout(status, 5000);}
    status();
&lt;/script&gt;
</code></pre>

<p>So this refreshes every 5 seconds to get the status.  How can I assign various images depending on the returned results?  Ex (calling, in-progress, completed).</p>
