5 $(document).ready(function()
7 $('#jmenu').jmenu({animation:'fade',duration:100});
10 (c) 2010 Sawanna Team (http://sawanna.org)
14 effect: 'fade', /* default animation effect */
15 duration: 400, /* default duration */
16 set: function (settings)
20 if (settings.animation == 'show') { this.effect='show'; }
21 if (settings.animation == 'slide') { this.effect='slide'; }
22 if (settings.animation == 'fade') { this.effect='fade'; }
27 this.duration=settings.duration;
30 fix_pos:function(elem)
32 if ($(elem).parent('ul').parent('li').length)
34 $(elem).children('ul').eq(0).css({marginTop:-$(elem).height(),marginLeft:$(elem).width()});
37 // Changes by Per � 2011-07:
38 //$(elem).children('ul').eq(0).css({'top':$(elem).offset().top+$(elem).height(),'left':$(elem).offset().left});
39 $(elem).children('ul').eq(0).css({'top':'15px','left':$(elem).offset().left});
40 // make sure that the warning message doesn't appear on top of menu
45 if (this.effect=='fade') { $(elem).children('ul').eq(0).stop(1,1).fadeIn(this.duration); }
46 else if (this.effect=='slide') {$(elem).children('ul').eq(0).stop(1,1).slideDown(this.duration); }
47 else if (this.effect=='show') { $(elem).children('ul').eq(0).stop(1,1).show(this.duration); }
51 $(elem).children('ul').eq(0).stop(1,1).fadeOut(100);
55 jQuery.fn.jmenu=function(settings)
59 $(this).find('li').each(function()