Capacitor variable resistor