How do I make my dome light fade away when you shut the door?

http://www.automotiverewire.com/Documents/71DartDelay.pdf

Not sure if this is what you're interested in doing, but I stumbled across this a few weeks ago... Haven't tried it myself...