Was the first expression two or three sheets to the wind...

And wherefore sheets?