Ok. the optimum range of archers thing might be the thing. Thank you. This also explains why sometimes you take damage even with balistas. If there's too much cav for archers to chew in 2-3 turns... Thankx guys.

But a question still remains... Why archers with rainbow sent into a cav valley will only loose pikes and archers leaving warrs, scouts or swords intact...?