Can you show the original image without SSAO, and also the SSAO depth-map generated ?
Also try a more simple blur shader, I mean without your condition.
You often have to play with the SSAO options...