Team:WITS-CSIR SA/Styles/jquery.dropdown.js
From 2011.igem.org
$(document).ready(function(){
if($("ul.dropdown").length) { $("ul.dropdown li").dropdown(); }
});
$.fn.dropdown = function() {
return this.each(function() {
$(this).hover(function(){ $(this).addClass("hover"); $('> .dir',this).addClass("open"); $('ul:first',this).css('visibility', 'visible'); },function(){ $(this).removeClass("hover"); $('.open',this).removeClass("open"); $('ul:first',this).css('visibility', 'hidden'); });
});
}