title: Javascript setTimeout function repeat
body: <p>Is there a way to repeat a function in Javascript using the setTimeout function? For example, I need two functions to be called every five seconds. I have something like this:</p>
  
  <pre><code>$(document).ready(function(){    
      setTimeout('shiftLeft(); showProducts();', 5000);    
  });
  </code></pre>
  
  <p>but it only happens once, five seconds after page loads, and I need it to happen every five seconds.</p>