Ruin probabilities in a Sparre Andersen model with dependency structure based on a threshold window. (8th November 2017)