+ $overlay.css({position: 'absolute', height: h, left: x, top: y, width: '95%'});
+ $($origin[0].offsetParent).append($overlay);
+ $origin.data('edit-overlay', $overlay);
+
+ this.model.getXMLPart($origin, function(path, data) {
+ $('textarea', $overlay).val(data);
+ });
+
+ this.currentOpen = $origin;
+ $origin.attr('x-open', 'open');
+
+ if($origin.is("*[x-annotation-box]"))
+ {
+ var $b = $origin.parent();
+ if(this.currentFocused) {
+ if($b[0] != this.currentFocused[0])
+ this.unfocusAnnotation();
+ }
+
+ this.focusAnnotation($origin);
+ }
+ else {
+ if(this.currentFocused) this.unfocusAnnotation();
+ }
+