  In this paper we propose a skew Brownian motion with a two-valued drift as a
risk model with endogenous regime switching. We solve its two-sided exit
problem and consider an optimal control problem for the skew Brownian risk
model. In particular, we identify sufficient conditions for either a barrier
dividend strategy or a band dividend strategy to be optimal.
