if(this.pools == null) { this.pools = new Object(); parent["_pools"] = this.pools; } var pool = this.pools[className]; if(!pool) { pool = new lz.viewspool(parent); //debug.write(pool); pool.parentview = parent; pool.viewclass = className; this.pools[className] = pool; } return pool; var marker = null; if(this.unused.length > 0) { marker = this.unused.pop(); } else { marker = new lz[viewclass](parentview, args); } this.used.push(marker); marker.setAttribute('visible', true); return marker; if(this["pools"] == null) { this.pools = new Object(); } var listName = className; if(id != null) { listName += id; } var pool = this.pools[listName]; if(!pool) { pool = new lz.viewslist(parent); pool.parentview = parent; pool.viewclass = className; this.pools[listName] = pool; } return pool; if(this.vlist[index] == null) { this.vlist[index] = new lz[viewclass](parentview, args); } else { this.vlist[index].setAttribute('visible', true); } return this.vlist[index];