The God-Idea of the Ancients; Or, Sex in Religion by Gamble, Eliza Burt
 is a Project Gutenberg book, now on Github.