document.observe("dom:loaded",function(){$$("input").each(function(a){a.id.endsWith("Color")&&a.addClassName("procolor")});$$(".color").each(function(a){a.getStyle("background-color");ProColor.prototype.decodeHexColor(a.innerHTML);var b=ProColor.prototype.computeTextColor(ProColor.prototype.decodeHexColor(a.innerHTML));a.setStyle({color:"rgb("+b.r+", "+b.g+", "+b.b+")"})})});