This isn't about the switch per se, I'm going to take your problem one level up.
What you want is an amplifier with variable amplification, which you want to realize by varying the feedback resistor. Because you're working the opamp with a single supply you biased the non-inverting input at half the power supply. The input swings between -2.5V and +2.5V, and (most likely) will be zero if no signal is applied.
the schematic you posted needs some work!
First, your circuit lacks an input resistor. Whatever voltage you supply to it, the output will never be able to set the output such that the inverting input is equal to the non-inverting. So we add an \$R_{IN}\$. (edit: I now see that you mention it in the text, so that was actually alright. Sorry. Well, anyway it's necessary.)
But we're not out of the woods yet. Let's take the no signal situation, and assume a 10V supply. The opamp will keep the inverting input at 5V by regulating the output. If \$R_1\$ is equal to \$R_{IN}\$ the output voltage will be 10V, so that's your positive rail. If you apply an input voltage, the negative half of it will be clipped off (remember, the opamp inverts the signal). Not only that, but a different value for the feedback resistor (which is what you want) will result in another output voltage.
There's a number of ways to fix this. AC coupling the output through a series capacitor won't do, remember the clipping.
Best solution is to use a symmetrical power supply, so that you can keep the non-inverting input at 0V, and you won't get an offset at the output. That's also the case I referred to in my other answer, where the 74HC4066 would be at 0V, the other side very near to that, so that the switch won't have the chance to cause distortion.
If you can't do that, you have to bias the inverting input to \$\frac{V+}{2}\$ as well. The output will also swing around this virtual ground, here you can remove the offset with a series capacitor. To get this bias at \$\frac{V+}{2}\$ you cannot use two equal resistors, though!
The voltage on the inverting input should be \$\frac{V+}{2}\$ if the input is 0V. So the input resistor is effectively parallel to the lower resistor of the divider. If you pick \$R_{LOWER}\$ = \$R_{IN}\$ then \$R_{HIGHER}\$ should be half that value to get \$\frac{V+}{2}\$. The opamp should set the output so that both inputs stay the same, which means it shouldn't change our inverting input voltage. It can only do so by having no current through the feedback resistor, and that's so when \$V_{OUT}\$ is equal to the inverting input.
The good news is that, just because there's no current through the feedback resistor, this resistor's value doesn't matter for the bias, and that you actually can vary it. (We hadn't checked yet if a variable feedback resistor wouldn't change the bias.)