As an aside, there are also stats for "aspects" of various dieties (Tiamat among them) in the Miniatures Handbook, which are encounters more in line with high- but not epic-level parties. Typically around CR11. Think of an aspect as sort of a pale shadow version of an avatar, with just one or two special abilities (hence, representing just a particular aspect of the diety).