I have written a guide to changing the UI, and just added a post to do just this:
viewtopic.php?f=18&t=5111&p=41062#p41062You might want to read the first and second posts first (but perhaps skip to "Using JavaScript"), as they give some background, and the new post does assume some knowledge of these things.