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