This quote is from the following website:
http://www.aaronelkins.com/forensictidbits.htmQuestion: Do dead bodies float?
Answer: A newly dead human being, or any other animal, will sink when placed in water. After the gases of decomposition build up in the chest and abdomen, however, the body will inflate, rise like a hydrogen-filled balloon, and pop to the surface, sometimes dragging with it surprisingly heavy weights that a murderer might have thought sufficient to keep it down. With the passage of time and further decomposition, however, the body cavities eventually rupture, the gas escapes, and the corpse goes down again, this time for good.
There is one notable exception: sometimes, due to air caught in the clothing, a body will stay on the surface for several hours before sinking.