alcohol and hicups

I was just wondering if anyone had any idea why being drunk sometimes causes people to get the hicups and if there is any way to aviod it.

I absolutely swear by bending over and drinking a glass of water upside down as a remedy. It has yet to fail me. Honestly.