!function(a){var b=function(a,b){this.$element=a,this.options=b},c={init:function(){var b=this.options,d=this.$element;d.attr("type","hidden"),a.each(d,function(){c.creat_multiple_html(this,b)})},creat_multiple_html:function(b,d){var e=a(b),f=a('<div class="kill_copy '+d.cssname+'"></div>');e.wrap(f),d.show_title&&f.append,c.css_loop(b,d),e.parent().unbind("click").bind("click",function(){c.click_loop(this,b,d)})},click_loop:function(b,c,d){var e=a(c).attr("value"),f=parseInt(e)>0?parseInt(e):d.min_val,g=f>=d.max_val?d.min_val:f+1,h="mu"+f,i="mu"+g;a(b).removeClass(h).addClass(i),a(c).val(g)},css_loop:function(b){var d=a(b).attr("value"),e="mu"+d;a(b).parent().addClass(e)}};a.fn.espcms_multiple=function(d){var e=a.extend({cssname:"espcms_multiple_blue",formname:"#saveForm",show_title:!0,min_val:1,max_val:4},d),f=Array.prototype.slice.call(arguments,1);return this.each(function(){var g=a(this),h=g.data("setOption");return h||g.data("setOption",h=new b(g,e)),"string"==typeof d&&a.isFunction(c[d])?c[d].apply(h,f):"object"!=typeof d&&d?!1:c.init.apply(h,f)})}}(jQuery);