rem: } catch(e) { alert('Hide fehlgeschlagen!'); } 
add: } catch(e) { alert('Hide failed!'); } 
context: 	initialize: function(id) {	  	if ($(id)) {	  		//alert("Window " + id + " is already register is the DOM!!, be sure to use setDestroyOnClose()")	  		try{	  			$(id).hide();	  		} catch(e) { alert('Hide fehlgeschlagen!'); }	  	}	    		this.hasEffectLib = String.prototype.parseColor != null;		this.options = Object.extend({		className:         "dialog",      	minWidth:          100,      	minHeight:         20,      	resizable:         true,      	closable:          true,      	minimizable:       true,      	maximizable:       true,      	draggable:         true,      	userData:          null,      	showEffect:        (this.hasEffectLib ? Effect.Appear : Element.show),      	hideEffect:        (this.hasEffectLib ? Effect.Fade : Element.hide),      	showEffectOptions: {},      	hideEffectOptions: {},      	effectOptions:     null,      	parent:            document.getElementsByTagName("body").item(0),      	title:             "&nbsp;",      	url:               null,      	onload:            Prototype.emptyFunction,      	width:             200,      	height:            300,      	opacity:           1    }, arguments[1] || {});    			  if (this.options.effectOptions) {	    Object.extend(this.options.hideEffectOptions, this.options.effectOptions);	    Object.extend(this.options.showEffectOptions, this.options.effectOptions);	  }	if (this.options.hideEffect == Element.hide)	  this.options.hideEffect = function(){ Element.hide(this.element); if (this.destroyOnClose) this.destroy(); }.bind(this)	  	this.element = this._createWindow(id);				// Bind event listener    this.eventMouseDown = this._initDrag.bindAsEventListener(this);  	this.eventMouseUp   = this._endDrag.bindAsEventListener(this);  	this.eventMouseMove = this._updateDrag.bindAsEventListener(this);  	this.eventKeyPress  = this._keyPress.bindAsEventListener(this);  	this.eventOnLoad    = this._getWindowBorderSize.bindAsEventListener(this);    this.eventMouseDownContent = this.toFront.bindAsEventListener(this);    this.eventResize = this._recenter.bindAsEventListener(this); 	this.topbar = $(this.element.id + "_top");	this.bottombar = $(this.element.id + "_bottom");    this.content = $(this.element.id + "_content");    	Event.observe(this.topbar, "mousedown", this.eventMouseDown);	Event.observe(this.bottombar, "mousedown", this.eventMouseDown);	Event.observe(this.content, "mousedown", this.eventMouseDownContent);	Event.observe(window, "load", this.eventOnLoad);	Event.observe(window, "resize", this.eventResize);  	Event.observe(window, "scroll", this.eventResize);  		if (this.options.draggable)  {		this.bottombar.addClassName("bottom_draggable");		this.topbar.addClassName("top_draggable");    }		    	if (this.options.resizable) {		this.sizer = $(this.element.id + "_sizer");	Event.observe(this.sizer, "mousedown", this.eventMouseDown);    }	        this.useLeft = null;    this.useTop = null;	if (arguments[1].left != null) {		this.element.setStyle({left: parseFloat(arguments[1].left) + 'px'});		this.useLeft = true;	}	if (arguments[1].right != null) {		this.element.setStyle({right: parseFloat(arguments[1].right) + 'px'});		this.useLeft = false;	}    if (this.useLeft == null) {	    this.element.setStyle({left: "0px"});			this.useLeft = true;    }    	if (arguments[1].top != null) {		this.element.setStyle({top: parseFloat(arguments[1].top) + 'px'});		this.useTop = true;	}	if (arguments[1].bottom != null) {		this.element.setStyle({bottom: parseFloat(arguments[1].bottom) + 'px'});					this.useTop = false;	}    if (this.useTop == null) {			this.element.setStyle({top: "0px"});			this.useTop = true;    }    this.storedLocation = null;    	this.setOpacity(this.options.opacity);	if (this.options.zIndex)		this.setZIndex(this.options.zIndex)	this.destroyOnClose = false;    this._getWindowBorderSize();    this.width = this.options.width;    this.height = this.options.height;        if (this.width && this.height)		  this.setSize(this.options.width, this.options.height);		this.setTitle(this.options.title)		Windows.register(this);	      },
meta: 2938	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2938/f0b1d17505244550e17a7e76aa36371a59aa5cea/window.js/buggy/virtuemart/js/windows/window.js