jQuery(document).ready(function(a){a("#border_color,#background_color").ColorPicker({onSubmit:function(b,e,c,d){a(d).val(e);a(d).ColorPickerHide()},onBeforeShow:function(){var b="";var c=this.value.length;if(c!="3"){b=this.value}else{b+=this.value.substr(0,1);b+=this.value.substr(0,1);b+=this.value.substr(1,1);b+=this.value.substr(1,1);b+=this.value.substr(2,1);b+=this.value.substr(2,1)}a(this).ColorPickerSetColor(b)}}).bind("keyup",function(){a(this).ColorPickerSetColor(this.value)})});