Photometric variability of AP and He-weak stars in clusters and associations. I.