A KVM Switcher for Speakers?

Here is basically what I want to do: I want to have a speaker "changer" if you will, that will have two inputs. One is my iPod dock and one is my computer. The "switcher" will let me choose which one I want (sort of like a reciever, but not the same, with minijack plugs). After that I will run a headphone splitter into my 2.1 stereo system(has my tv and stuff hooked up) and my Logitech 5.1 Speakers. If anyone could even sort of understand that (lol) does anyone know of a device like such?