It's strictly a Catholic thing if I recall.
This praying you see referenced here is derived from a verse in the Old Testament. You can probably find it with a google search.
I don't believe "Pergatory" is in the scriptures, at least not in the Protestant bible.