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

(function(b){var a=function(){};b.extend(a.prototype,{name:"accordionMenu",options:{mode:"default",header:"h3.toggler",content:"div",display:null},initialize:function(a,c){this.options=b.extend({},this.options,c);var e=a.find(this.options.header+" + "+this.options.content);a.find(this.options.header).each(function(a){var d=b(this).next();b(this).hasClass("active")||a==c.display?d.show():d.hide();b(this).bind("click",function(){c.mode=="slide"?(e.slideUp(),d.slideDown()):(e.hide(),d.show());b(this).toggleClass("active")})})}});
b.fn[a.prototype.name]=function(){var d=arguments,c=d[0]?d[0]:null;return this.each(function(){var e=b(this);if(a.prototype[c]&&e.data(a.prototype.name)&&c!="initialize")e.data(a.prototype.name)[c].apply(e.data(a.prototype.name),Array.prototype.slice.call(d,1));else if(!c||b.isPlainObject(c)){var f=new a;a.prototype.initialize&&f.initialize.apply(f,b.merge([e],d));e.data(a.prototype.name,f)}else b.error("Method "+c+" does not exist on jQuery."+a.name)})}})(jQuery);
