- create: function(class_) {
- var XE = function(classes) {
- var l = new Element("div");
- l.addClass(class_);
- l.addClass("dynamicpanel");
-
- classes.split(" ").each(function(x) {
- l.addClass(x);
- });
+ applyClasses: function(pos, l) {
+ l.addClass("dynamicpanel");
+
+ l.addClass(this.class_);
+ if(pos == "middle") {
+ l.addClass("leftboundpanel");
+ } else if(pos == "top") {
+ l.addClass("topboundpanel");
+ l.addClass("widepanel");
+ } else if(pos == "topic") {
+ l.addClass("widepanel");
+ } else if(pos == "right") {
+ l.addClass("rightboundpanel");
+ } else if(pos == "bottom") {
+ l.addClass("bottomboundpanel");
+ l.addClass("widepanel");
+ }
+ },
+ create: function() {
+ var XE = function(pos) {
+ var element = new Element("div");
+ this.applyClasses(pos, element);