i have written a code that is working quiet fine. setTimeout($(['li.',o.hoverClass].join(''),this).add(this).not (not).removeClass(o.hoverClass).find('>ul').css ('visibility','hidden'), 1000);
but it´s just don´t wait the 1 sec. What is wrong. Please help me. Now the full code of the function but i think the line on top should be enough hideSuperfishUl : function(){ var o = sf.op, not = (o.retainPath===true) ? o.$path : ''; o.retainPath = false; var $ul = $(['li.',o.hoverClass].join(''),this).add(this).not (not).find('>ul'); sf.IE7fix.call($ul); o.onBeforeHide.call($ul); $ul.animate(o.animationHide,o.speed,function(){ sf.IE7fix.call ($ul); o.onHide.call($ul); }); setTimeout($(['li.',o.hoverClass].join(''),this).add(this).not (not).removeClass(o.hoverClass).find('>ul').css ('visibility','hidden'), o.speed); return this; }