YouTube-style timer in Captivate

Does anyone have a working solution for displaying the movie duration, using system variables and JavaScript?