Help with depth stuff (NEEDED BADLY)

oh and I’m working on another project here:
http://www.ikickedmydogintheface.bravehost.com/smashtv3d.html

and the problem (as many of you probably noticed) is that when the code generates a random distance for the teletubbies I get the smallest ones in front sometimes. I thought this code:

_root[“teletubby”+i].Depth =
_root[“teletubby”+i]._xscale*_root[“teletubby”+i]._yscale/2;

would solve the problem but it does not. Does anybody have any suggestions? thanks for the help!