When we bought our house, the switch to the ceiling fan did not work, unless pushed to the side, or pushed in before being used. It seemed to be a simple enough task to replace the switch. However, the wires were not nicely labeled, and when installed, the ceiling light stays on while the outlets are controlled by the outlet. What I'd like to know is how to identify the "hot" wire coming to the room, and differentiate it from the "hot" wire the runs to the outlets and the "hot" wire that runs to the ceiling fan. My guess is that I switched the latter two.