jQuery(document).ready(function(o){"use strict";function t(o,t){var r=parseInt(o.slice(1),16),i=Math.round(2.55*t),s=(r>>16)+i,n=(r>>8&255)+i,a=(255&r)+i;return"#"+(16777216+65536*(s<255?s<1?0:s:255)+256*(n<255?n<1?0:n:255)+(a<255?a<1?0:a:255)).toString(16).slice(1)}o(".ujic-hold form input[type=text]").focus(function(){o(".ujic-hold form .uji-msg-ok").css("display","none"),o(".ujic-hold form .uji-msg-err").css("display","none")}),o(".ujic-hold form").submit(function(t){t.preventDefault(),o.ajax({type:"POST",url:ujiCount.ajaxUrl,data:o(this).serialize()+"&"+o.param({action:"ujiSubscribe"}),dataType:"json",success:function(t){t.success?o(".ujic-hold form .uji-msg-ok").css("display","block"):o(".ujic-hold form .uji-msg-err").css("display","block")}})}),o(".ujic-hold form input[type=submit]").each(function(){var r=o(this),i=r.attr("color-attr");void 0!==i&&(r.css("background","-moz-linear-gradient(top,  "+i+" 0%, "+t(i,20)+" 100%)"),r.css("background","-webkit-gradient(linear, left top, left bottom, color-stop(0%,"+i+"), color-stop(100%,"+t(i,20)+"))"),r.css("background","-webkit-linear-gradient(top,  "+i+" 50%,"+t(i,20)+" 100%)"),r.css("background","-o-linear-gradient(top,  "+i+" 0%,"+t(i,20)+" 100%)"),r.css("background","-ms-linear-gradient(top,  "+i+" 0%,"+t(i,20)+" 100%)"),r.css("background","linear-gradient(to bottom,  "+i+" 0%,"+t(i,20)+" 100%)"),r.css("filter","progid:DXImageTransform.Microsoft.gradient( startColorstr='"+i+"', endColorstr='"+t(i,20)+"',GradientType=0 )"))})});