Na-O anticorrelation and horizontal branches - II. The Na-O anticorrelation in the globular cluster NGC 6752