My first quess would be arcing between the buss bar and the breaker. Try pulling off the breakers to inspect the buss and connections. Often you can hear a sizzle in the panel when the lights are dimming if this is the case.