I recently needed to use the Arduino to control a stereo system, so rather than hack open the remote and wire into it, I decided to simply clone the signal. This was incredibly easy to do. Basically, I read the signal from the remote with a 38khz receiver, and then played it back with an IR LED.
To start, I went to the IR Sensor Tutorial on Adafruit.com
and loaded the following script onto my Arduino: