Thanks for posting the files. I took a look and am a little out of my element here, as I, too, am just a noobie :-)
However, the simplest thing that comes to mind, as I am just learning this, is doing as Laser Light has suggested, and setting up a database for your prayers.
It is easy enough to create the database and tables as well as to query them for the required info, in this case a prayer, what type of prayer, and it's corresponding bg_imge. You could have a table set up in the database, and each prayer would have a corresponding bg_image. You could stipulate what kind of prayer it is..
prayers_table
id: int,key, auto_increment
prayer: long_text
bg_image: var_char, 255
holiday: enum ('sunday','easter','christmas','etc') default/sunday
Then, you could do an query for the prayer and bg image or just the bg image. The benefit of doing it this way is that you could put the data in the db rather than having all the prayers on one file.
I would be happy to recommend some information if this sounds like something you would like to pursue.............. However, if you don't want to do that, then, with access to the files, re-explain your request specifically: Which variable from which file do you want to pass to where?