First and second order transitions in a discrete system with bistable elements.