The giant X-ray flares of Mrk 421 in spring-summer 2006