Bifurcation and chaos in a dc-driven long annular Josephson junction