$.fn.droppy=function(){this.each(function(){var b=this,f=1000;function e(h){if(h.nodeName.toLowerCase()=="li"){var g=$("> ul",h);return g.length?g[0]:null}else{return h}}function c(g){if(g.nodeName.toLowerCase()=="ul"){return $(g).parents("li")[0]}else{return g}}function d(){var g=e(this);if(!g){return}$.data(g,"cancelHide",false);setTimeout(function(){if(!$.data(g,"cancelHide")){$(g).hide()}},100)}function a(){var g=e(this);if(!g){return}$.data(g,"cancelHide",true);setTimeout(function(){$(g).css({zIndex:f++}).show()},100);if(this.nodeName.toLowerCase()=="ul"){$(c(this)).addClass("hover")}}$("ul, li",this).hover(a,d);$("li",this).hover(function(){$(this).addClass("hover")},function(){$(this).removeClass("hover")})})};
