D.H.
Are you drinking cow's milk? If you are, even a tablespoon, I would stop drinking it. Colicky type babies and gaseous babies do this kind of thing when they are getting some form of cow's milk (formula or mom that is breastfeeding).
I'd try that first, then see what you are eating...I had to stop onions and broccoli (which is my favorite) for a while until mine got older.
Then after you've done those things and it is still happening, I would go to a chiropractor. Chiropractors that work with babies can usually correct the problem in an instant.
But, I would definitely stop drinking dairy...that seems to be the biggest culprit for some.