Popup=Class.create();Object.extend(Popup,{element:null,show:function(b){var a=Object.extend({overlay:document.viewport,timeout:false},arguments[1]||{});this.close();this.element=$(b);this.element.addClassName("popup_content");this.element.show();df.modal.lightboxon("cccccc");if(a.timeout){this.close.delay(a.timeout);}}.bind(Popup),isClosed:function(){return this.element==null;}.bind(Popup),close:function(){if(this.isClosed()){return;}df.modal.lightboxoff();this.element.hide();this.element.removeClassName("popup_content");this.element=null;}.bind(Popup)});