Changes …
Suppose we want “new” to revolve
once ever 5 seconds …
• animate() sets timer for two different times
• When animating, 30 ms
• When waiting, 5000
• Use an if-statement
if (frame == 0)
   setTimeout("animate()",5000);
else
   setTimeout("animate(),30);