Default [Q] Dock with a remoute control or adapter to 30-pin iphone cable

Good day.

My home stereo has ability to connect ipod and it is very useful to control it remote.

I wonder if there any chance to connect my sgs II to stereo by iphone cable (with software and hardware hack). Or if it is impossible then buy a dock, but it is very important that dock has a remote control (irda).

Somebody have any ideas?

Thank you.