THE EFFECT OF INVESTMENT IN ATTRACTIVE STRUCTURES ON ALLOCATION TO MALE AND FEMALE FUNCTIONS IN PLANTS