+ this.right.setStyle("display", display);
+ this.topic.setStyle("display", display);
+ },
+ showInput: function(state) {
+ this.bottom.setStyle("display", state?"block":"none");
+ }
+});
+
+qwebirc.ui.QUI.Window = new Class({
+ Extends: qwebirc.ui.Window,
+
+ initialize: function(parentObject, client, type, name) {
+ this.parent(parentObject, client, type, name);
+
+ this.tab = new Element("a", {"href": "#"});
+ this.tab.addClass("tab");
+ parentObject.tabs.appendChild(this.tab);
+
+ this.tab.appendText(name);
+ this.tab.addEvent("click", function(e) {
+ new Event(e).stop();
+ parentObject.selectWindow(this);
+ }.bind(this));
+
+ if(type != qwebirc.ui.WINDOW_STATUS && type != qwebirc.ui.WINDOW_CONNECT) {
+ var tabclose = new Element("span");
+ tabclose.set("text", "X");
+ tabclose.addClass("tabclose");
+ tabclose.addEvent("click", function(e) {
+ new Event(e).stop();
+
+ if(type == qwebirc.ui.WINDOW_CHANNEL)
+ this.client.exec("/PART " + name);
+
+ this.close();
+ }.bind(this));
+
+ this.tab.appendChild(tabclose);
+ }
+
+ this.lines = new Element("div");
+ this.parentObject.qjsui.applyClasses("middle", this.lines);
+ this.lines.addClass("lines");
+
+ this.lines.addEvent("scroll", function() {
+ this.scrolleddown = this.scrolledDown();
+ }.bind(this));
+
+ if(type == qwebirc.ui.WINDOW_CHANNEL) {