var prevCurrent;
document.querySelector('#webwidget_menu_glide3').onclick = function(e) {
var selfParent = (e.target || window.event.srcElement).parentNode;
if(selfParent.tagName == 'LI') {
if(prevCurrent) prevCurrent.className = '';
selfParent.className = 'current';
prevCurrent = selfParent;
}
};