Crossover function for the critical viscosity of a classical fluid