To support basic timing functions you simply need to use the javascript timer functions.
In your document load handler you would set an initial timer trigger to make the first call to your repeated function eg:
setTimeout("myFunction()",5000);
This is saying, set a timer to run for 5000 miliseconds (5 seconds), then when that time is up execute the command 'myFunction()'
What you would then do, is use what ever methods you need to manipulate and update your div/img/para etc usinc the document object, then befor exiting the function call 'setTimeout' again to call back into the function after another delay.
Anyone whos read any of my posts on here will know i'm a big fan of Jquery, and i would strongly suggest that you use that to manipulate your document objects, it really is childs play when you can change a picture by using somthing as simple as:
$('#myPicture').src="picture2.jpg";
Cheers
Shawty