The infrared color-magnitude and color-gas content relations for cluster spirals