Cogent is a matlab based program for displaying stimuli in psychophysics and scanner experiments. It can show pictures, words, movies and play sounds, as well as use all of Matlab's math and randomisation functions. Timing is precise to the millisecond.

Downloads and more details here: Cogent page at the Laboratory of Neurobiology site