Here's the diagram as I hooked it up. I'm no electrician, so the diagram is probably a little crude.