Blues upset Dogs to enter AFL top-eight