var C4=C4||{};
C4.Home=(function(B){var D=function A(E){if(E==null){return"00"
}E=parseInt(E);
if(E==0||isNaN(E)){return"00"
}E=Math.max(0,E);
E=Math.min(E,255);
E=Math.round(E);
return"0123456789ABCDEF".charAt((E-E%16)/16)+"0123456789ABCDEF".charAt(E%16)
};
return{getHexColor:function(F,H){var G,E,H=H||"#";
if(typeof F!=="string"||F===""){return H+"000000"
}if(F.substring(0,3)==="rgb"){G=F.substring(F.indexOf("(")+1,F.indexOf(")")).split(",");
E=H+(D(G[0])+D(G[1])+D(G[2])).toUpperCase();
return E
}else{if(F.charAt(0)==="#"){E=H+F.substring(1,F.length).toUpperCase();
return E
}else{return H+"000000"
}}},replaceLineBreaks:function C(G,F){if(typeof G!=="string"||G===""){return""
}var F=F||"\r",E;
E=G.replace(/\s+/g," ");
E=E.replace(/(^\s+)|(\s+$)/g,"");
E=E.replace(/\s*<br\s*\/?>\s*/gi,F);
if(E===F){E=""
}return E
},escapeStringForFlash:function(H,G){if(typeof H!=="string"||H===""){return""
}if(!G||typeof G!=="object"||!G.length){return H
}var F=H;
for(var E=0;
E<G.length;
E++){F=F.replace(G[E].pattern,G[E].replaceStr)
}return F
}}
}(jQuery));