Three sheets to the wind
(See: Dead drunk)
Origin
In sailing lingo the sheet is the rope or the chain that holds one or both lower corners of a sail. If the sheet is not tight, the sail will flap and shake, making the ship to stagger off course like a drunk. With three sheets loose, the situation is out of control.
This is the expression commonly heard nowadays, but the original phrase is three sheets in the wind.