iMac Combo Headphone/Optical Out Port Cable

I just picked up a used Apple G5 iMac (2005 model) that has a combination analog/optical digital audio output port. The output on the iMac is a mini plug. I want to use it to digitally connect to a Panasonic receiver and I can use either an optical Toslink and S/DIF RCAs input. I can't find a cable that does what I want. Anybody know how to connect this setup?
there are quite a few cables out there that you can use. depending on quality, you can get them from apple, monster, and ixos. the mini adapter can be purchased from fry's, radio shack, echo audio, and others. i purchased a few from fry's for $2.98.

mezmo - stay with the older PC technology.
As others have said, neither the analog nor the optical output on the G5 uses a proprietary cable. You can use either a 3.5mm stereo plug for analog output or a mini-Toslink to Toslink for digital.

If your question is which one is preferable, it's likely that the digital to analog converter in your receiver is better than the one in your iMac so that's likely your best option. The cables are inexpensive, though, and it would be easy to compare. A good source for well-made cables at great prices is
My system works well with the Toslink to mini-Toslink cable set-up. I had a custom length made to fit my needs. There are several companies that will do that for you. If you want to go dirt cheap just get the Toslink cable of choice and slip on one of those little adapters (mini) to one end. I think you can by them for $1 - $2.
My son has an iMac in his room connected to his Panasonic receiver via a long (12Ft) mini-toslink cable I found for a reasonable price at monoprice. Take a look at product ID 1558 for an example