How to add fast/slow buttons to show replay on google map
<p>hey i m working on google maps i am saving route in an xml file and then showing replay to user.Now i want to add fast,slow,normal buttons to this replay how can i do this 
right now i m showing replay using fixed interval</p>

<pre><code>if (i &lt; latlngvar.length - 1)
        {
           interval = parseInt(document.getElementById('ctl00_ContentPlaceHolder1_hdn_interval').value);
           interval = Number(interval) * 100;
            setTimeout(test, Number(interval));
            }
</code></pre>
