Electric and magnetic fluxes inSU(2) Yang-Mills theory