Bifurcation and control in a neural network with small and large delays