Emulating SP3T switch

Has anyone emulated a SP3T switch using an arduino? Is this even possible? I have a 12V fan that I'm controlling the on/off via a relay, and the fan has a SP3T switch to control Low, Med, and Fast for the fan speed. I'm curious if I can remove that switch and control that from the arduino or not. There are 3 wired running to the SP3T switch.

Thanks.

Just use 3 transistors to short the switches. Be sure that the transistors are capable of handling the voltage/current concerned, and if the switches are "high" (i.e., between + and the fan) that you use PNP, and if they are "low" (i.e., between the fan and GND) you use NPN.

Thanks majenko! That's pretty much what I thought my options were going to be.