During cruise flight, at flight level 310, an MD-80, operated by Continental Airlines experienced an electrical fire. An emergency was declared and the flight was diverted into Birmingham, Alabama, and landed without further incident. The examination of the airplane disclosed a 2 by 1 1/2 inch fire-damaged hole in the left jump seat wall.