Hmm, that is more tricky. Where the code goes depends on the layout of your blog. Can you send me a copy of your template? I may be able to suggest a location, but a good try would be inbetween the main blog tags just above or below the code for displaying the blog title.
Thank you for posting that code. Awful nice of you. Where does the first set of code go? I'm sure in between the body tags, but does it matter where in the XML?