Isn't this a more clean and general way to do it?
Then use it like so:Code:function addScript(window_number) {
var prefix = "window_" + window_number + "_";
var wone = $(prefix + "wone");
var container = wone.getParent();
var fx = new Fx.Style(wone, "opacity").start(0, 1);
wone.makeResizable({ handle: $(prefix + "botright"), container: container });
$(prefix + "inner").makeResizable({ handle: $(prefix + "botright"), container: container });
wone.makeDraggable({ handle: $(prefix + "handle"), container: container });
wone.style.height = "257px";
}
Code:// Add script to windows #1 and #2.
addScript(1); addScript(2);
