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

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

