I'm trying to install a ceiling fan in place of a light fixture and before I screw something up, I thought maybe someone on here could lend some advice. I am no household electrician, but I thought this one should be a no-brainer. First, I removed the light fixture expecting to find white and black wires. Instead, I find yellow, white, and red; white appears to be neutral (enters junction, goes to fixture, goes back out), yellow appears to be hot (comes in and goes to fixture, does not go out), and red is unknown to me (loops through junction without visibly connecting). It just got more confusing for me at the switch; the red wire meets with a brown wire (not seen at the light fixture) and connects to the top of the switch. At the bottom of the switch is the yellow wire, and white passes through without connecting. Finally, how do I go about grounding the fan?
Visual aids can be seen here:
http://s10.photobucket.com/albums/a1...al&media=image
Any and all help is appreciated.
-Tony