Das ist ja ne Klasse Fehlermeldung. Welches undefined? welche Zeile?
was sagt alert(obj)?
Zeile 87...
Und bei dieser Anordnung:
var obj = document['dot' + i]; // Ist auch für den IE besser.
alert (obj);
if(typeof obj.style == 'undefined') this.obj = obj;
else this.obj = obj.style;
gibt alert(obj) ebenfalls "undefined" aus...