element.onclick = onClick.bind(this, control); element.onmousedown = OpenLayers.Event.stop.bindAsEventListener(); element.onmouseup = OpenLayers.Event.stop.bindAsEventListener(); 
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()); 
    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];                element.onclick = onClick.bind(this, control);                element.onmousedown = OpenLayers.Event.stop.bindAsEventListener();                element.onmouseup = OpenLayers.Event.stop.bindAsEventListener();                this.div.appendChild(element);            }        }    },
2032	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/2032/ee5d8eb73f045252b8476164b4d1697bce7bf61e/Panel.js/buggy/lib/OpenLayers/Control/Panel.js