var ctor=obj.getAttribute('dojoxsketch:type')+"Annotation"; if(ta[ctor]){ var a=new ta[ctor](this, obj.id); a.initialize(obj); this.nextKey(); a.setMode(ta.Annotation.Modes.View); this._add(a); return a; } return null;