setInteval.question

i m creating one photogallery and all right … but i do all in one frame.
the gallery has 2 buttons <back> <next> photo but i want use setInterval to change photo in 5 seconds… whitout click !
well, clicking change pic and no clicking but waiting 5 seconds change too!
and one button <pause> like flickr gallery! (no thumbs)

anyone can help me ?

[color=darkgreen]downloadGallery here[/color]