"use strict";!function(t){t.fn.famultibutton=function(o){function e(){m=!0,h.bg.css("color",P.onBackgroundColor),h.fg.css("color",P.onColor),c.addClass("active"),h.trigger("setOn")}function n(){m=!1,h.bg.css("color",P.offBackgroundColor),h.fg.css("color",P.offColor),c.removeClass("active"),h.trigger("setOff")}function i(){t("
").animate({width:100},{duration:700,easing:"swing",step:function(t,o){var e=(t-o.start)/(o.end-o.start);h.bg.css("color",s(P.onBackgroundColor,P.offBackgroundColor,e)),h.fg.css("color",s(P.onColor,P.offColor,e))},complete:function(){!0===m?e():n()}})}function a(t){var o=t.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);return o&&4===o.length?"#"+("0"+parseInt(o[1],10).toString(16)).slice(-2)+("0"+parseInt(o[2],10).toString(16)).slice(-2)+("0"+parseInt(o[3],10).toString(16)).slice(-2):t}function s(t,o,e){t=a(t).replace(/^\s*#|\s*$/g,""),o=a(o).replace(/^\s*#|\s*$/g,""),3==t.length&&(t=t.replace(/(.)/g,"$1$1")),3==o.length&&(o=o.replace(/(.)/g,"$1$1"));var n=parseInt(t.substr(0,2),16),i=parseInt(t.substr(2,2),16),s=parseInt(t.substr(4,2),16),r=parseInt(o.substr(0,2),16)-n,f=parseInt(o.substr(2,2),16)-i,l=parseInt(o.substr(4,2),16)-s;return r=(r*e+n).toString(16).split(".")[0],f=(f*e+i).toString(16).split(".")[0],l=(l*e+s).toString(16).split(".")[0],1==r.length&&(r="0"+r),1==f.length&&(f="0"+f),1==l.length&&(l="0"+l),"#"+r+f+l}function r(){clearTimeout(d),(w=k>0?w-=P.step:w+=P.step)>P.max&&(w=P.max),w