Sleep paralysis is a temporary paralysis sometimes experienced upon waking. More at wikipedia:
http://en.wikipedia.org/wiki/Sleep_paralysis
I've been experiencing sleep paralysis every couple of months or so and each time it happens, I dream of ghosts immediately prior to waking in a state of sleep paralysis. How can this be that each time I experience sleep paralysis, I dream of ghosts?