getNextHighestDepth Problem?

hi friends,

i have attached the flash file and also xml file.

Here i duplicate the movieclip, first for loop is working perfectly but inside of second for loop is not working properly.

how can i solve the problem in my flash file. Pls help me…