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

