function CLayout() { this.role = 1; this.allowBan = false; this.allowInvite = true; this.allowIgnore = true; this.allowProfile = true; this.allowFileShare = false;//---share file attribute this.allowPrivateMessage = true; this.allowCustomBackground = true; this.showUserList = true; this.showPublicLog = true; this.showPrivateLog = true; this.showInputBox = true; this.showOptionPanel = true; this.showLogout = true; this.isSingleRoomMode = false; this.allowCreateRoom = true; this.showAddressee = true; this.toolbar = new Object(); this.optionPanel = new Object(); this.userList = new Object(); this.publicLog = new Object(); this.privateLog = new Object(); this.inputBox = new Object(); this.userList.minWidth = 50; this.userList.width = -1; this.userList.relWidth = 30; this.userList.dockWidth = 75; this.userList.dockHeight = 50; this.userList.position = 1; this.publicLog.minHeight = 35; this.publicLog.height = -1; this.publicLog.relHeight = 66; this.privateLog.minHeight = 35; this.privateLog.height = -1; this.privateLog.relHeight = 25; this.inputBox.minHeight = 35; this.inputBox.height = -1; this.inputBox.relHeight = 8; this.inputBox.position = 1; }; CLayout.prototype = new Initable(); CLayout.prototype.init = function(xml) { this.copyAttrs(xml, this); for (var i = 0; i