Friction and second-order phase transitions.