I would check out pinouts.ru. Just search for headphone jack as i belive the imac has a standard one.
_________________________
"A wise man speaks because he has something to say. A fool speaks because he has to say something."

"I do not condone, nor suggest the use of PCs."- Maestro