How to similate download speed with bar?
<p>How is it possible to simulate a download speed with a bar?</p>

<p>Example show with a bar how long time it takes to download 5 MB with a 1 Mbyte/s connection.</p>

<p>I have made a bar with CSS and HTML to simulate 40%:
<a href="http://jsfiddle.net/JxfAk/3/" rel="nofollow">http://jsfiddle.net/JxfAk/3/</a></p>

<p>My Jquery:</p>

<pre><code>$(document).ready(function() {

var Download = 1048576
var Data = 1048576 * 5


});
</code></pre>

<p>HTML:</p>

<pre><code>&lt;div id="barboks"&gt;&lt;div id="bar"&gt;&lt;/div&gt;&lt;/div&gt;
</code></pre>

<p>CSS:</p>

<pre><code>#barboks {width:200px;height:40px;border:1px solid #CCCCCC;}
#bar {width:50px;height:40px;background:blue;display:block;}
</code></pre>

<p>I just don't know how I should very-ate the width of the bar as the download speed of the data. </p>
