/* Copyright (C) YOOtheme GmbH, YOOtheme Proprietary Use License (http://www.yootheme.com/license) */

(function(e){var a=function(){};a.prototype=e.extend(a.prototype,{name:"dropdownMenu",initialize:function(a,d){var d=e.extend({mode:"default",duration:600,transition:"linear"},d),b={width:0,height:0};switch(d.mode){case "width":b={width:0};break;case "height":b={height:0}}var c=a.find("ul:first");if(c.length){var g={width:c.css("width"),height:c.css("height")};if(!e.browser.msie)b.opacity=0,g.opacity=c.css("opacity");c.css(b);a.bind({mouseenter:function(){var b=a.parent();b.css("overflow")=="hidden"&&
b.css("overflow","visible");c.css("overflow","hidden");c.animate(g,d.duration,d.transition)},mouseleave:function(){c.stop();c.css(b)}})}}});e.fn[a.prototype.name]=function(){var f=arguments,d=f[0]?f[0]:null;return this.each(function(){var b=e(this);if(a.prototype[d]&&b.data(a.prototype.name)&&d!="initialize")b.data(a.prototype.name)[d].apply(b.data(a.prototype.name),Array.prototype.slice.call(f,1));else if(!d||e.isPlainObject(d)){var c=new a;a.prototype.initialize&&c.initialize.apply(c,e.merge([b],
f));b.data(a.prototype.name,c)}else e.error("Method "+d+" does not exist on jQuery."+a.name)})}})(jQuery);

