if(this.surface){this.destroy(true); }var node=obj.documentElement; // should be either the document or the docElementthis.size={ w:parseFloat(node.getAttribute('width'),10), h:parseFloat(node.getAttribute('height'),10)};
var g=node.childrenByName("g")[0];
var img=g.childrenByName("image")[0];
this.imageSrc=img.getAttribute("xlink:href");
this.initialize(n);
// now let's do the annotations.var ann=g.childrenByName("g");
for(var i=0; i<ann.length; i++)this._loadAnnotation(ann[i]);
if(this._loadDeferred){this._loadDeferred.callback(this);
this._loadDeferred=null;
}this.onLoad();