Bifurcations of Heteroclinic Orbits