That seems very odd that it only dies in Safari, is this is server side, unless something in the generated HTML is bad. I don't have any ideas without seeing the source of the files and possibly the generated HTML.