AN ANALYTIC THEORY FOR THE ORBITS OF CIRCUMBINARY PLANETS