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

