Tangential bifurcation and critical indices in a Josephson junction