automatic headphone audio switch

does anyone know how to make an item that will let you plug in multiple 1/8" sources (radio, ipod, phone...) that auto switches to a single output by sequence, so the ipod is playing but when a call comes in the audio from the phone makes the switch bypass the ipod till the call is done then goes back to the music? i would love to get some help with this thanks Jake