Thermal propagation of a normal region in a thin superconducting film and its application to a new type of bistable element