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

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

