rem: var element = document.createElement("div"); var textNode = document.createTextNode(" "); 
add: var element = this.controls[i].panel_div; 
context:     redraw: function() {        this.div.innerHTML = "";        if (this.active) {            for (var i = 0; i < this.controls.length; i++) {                var element = document.createElement("div");                var textNode = document.createTextNode(" ");                if (this.controls[i].active) {                    element.className = this.controls[i].displayClass + "ItemActive";                } else {                        element.className = this.controls[i].displayClass + "ItemInactive";                }                    var onClick = function (ctrl, evt) {                    OpenLayers.Event.stop(evt ? evt : window.event);                    this.activateControl(ctrl);                };                var control = this.controls[i];                OpenLayers.Event.observe(element, "click",                                          onClick.bind(this, control));                OpenLayers.Event.observe(element, "mousedown",                                   OpenLayers.Event.stop.bindAsEventListener());                OpenLayers.Event.observe(element, "mouseup",                                   OpenLayers.Event.stop.bindAsEventListener());                this.div.appendChild(element);            }        }    },
meta: 1027	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1027/d68caa00a5fd55a36d8fa5aa86a80a65ad8ca0be/Panel.js/clean/lib/OpenLayers/Control/Panel.js