Well thanks everyone for contributing to the post. If you were as puzzled as I was, this should make things much clearer. (haha). The code now works!!! You know what I did? I moved the var sitex = new Object(); into the for loop. And hey, presto, it works!!
umm, can anyone tell me WHY that...