add:  if (this._oldParent) { var content = this.getContent(); var originalContent = null; for(var i = 0; i < content.childNodes.length; i++) { originalContent = content.childNodes[i]; if (Node.ELEMENT_NODE == originalContent.nodeType) break; originalContent = null; } if (originalContent) this._oldParent.appendChild(originalContent); this._oldParent = null; } 
context:  	destroy: function() {		Windows.notify("onDestroy", this);  	Event.stopObserving(this.topbar, "mousedown", this.eventMouseDown);  	Event.stopObserving(this.bottombar, "mousedown", this.eventMouseDown);  	Event.stopObserving(this.content, "mousedown", this.eventMouseDownContent);    	Event.stopObserving(window, "load", this.eventOnLoad);	Event.stopObserving(window, "resize", this.eventResize);  	Event.stopObserving(window, "scroll", this.eventResize);			Event.stopObserving(this.content, "load", this.options.onload);	if (this.sizer)		Event.stopObserving(this.sizer, "mousedown", this.eventMouseDown);	if (this.options.url)	  this.content.src = null 	if(this.iefix) 		Element.remove(this.iefix);    Element.remove(this.element);		Windows.unregister(this);	    	},
meta: 2938	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2938/37f969c8a2514ac1a945d3e03299fb5ac19ed578/window.js/clean/virtuemart/js/windows/window.js