rem: while (el.nodeName != 'LI') { el = el.parentNode; }; 
add: while (!/^li$/i.test(el.nodeName)) { el = el.parentNode; }; 
context: proto.switchMode = function(event) {    event = event || window.event;    var target = event.currentTarget || event.srcElement;    var el = target;    while (el.nodeName != 'LI') { el = el.parentNode; };    var thistab = el;    while (el.nodeName != 'UL') { el = el.parentNode; };    var tabs = el.getElementsByTagName('li');    for (var i = 0; i < tabs.length; i++) {        var el = tabs[i];        var cls = el.className.replace(/\s*selected/g, '');        if (el===thistab) {            this.panel.className = 'kupu-panels '+cls;            cls += ' selected';        }        if (el.className != cls) {            el.className = cls;        }    }    if (this.fillList) this.fillList();    this.fixMask();    if (event.preventDefault) { event.preventDefault();}    event.returnValue = false;    return false;};
meta: 2380	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/2380/2d8706428efbec3e2798eaafec7205a7efd24de6/kupudrawers.js/buggy/kupu/common/kupudrawers.js