$.fn.droppy=function(A){A=$.extend({speed:"fast"},A||{});this.each(function(){var C=this,G=1000;function F(I){if(I.nodeName.toLowerCase()=="li"){var H=$("> ul",I);return H.length?H[0]:null}else{return I}}function D(H){if(H.nodeName.toLowerCase()=="ul"){return $(H).parents("li")[0]}else{return H}}function E(){var H=F(this);if(!H){return }$.data(H,"cancelHide",false);setTimeout(function(){if(!$.data(H,"cancelHide")){$(H).fadeOut(A.speed)}},300)}function B(){var I=F(this);if(!I){return }$.data(I,"cancelHide",true);$(I).css({zIndex:G++}).fadeIn(A.speed);if(this.nodeName.toLowerCase()=="ul"){var H=D(this);$(H).addClass("hover");$("> a",H).addClass("hover")}}$("ul, li",this).hover(B,E);$("li",this).hover(function(){$(this).addClass("hover");$("> a",this).addClass("hover")},function(){$(this).removeClass("hover");$("> a",this).removeClass("hover")});$("li",this).each(function(){var H=$(this).find("ul");if(H.html()){}})})};$(document).ready(function(){$("#sideNav").droppy()});