function addOverlay(A){removeOverlay(A);$('<div id="overlay" class="overlay"> </div>').appendTo($(A))}function removeOverlay(A){var B=$(A).find("#overlay");B.remove()}String.prototype.ltrim=function(A){A=A||"\\s";return this.replace(new RegExp("^["+A+"]+","g"),"")};String.prototype.rtrim=function(A){A=A||"\\s";return this.replace(new RegExp("["+A+"]+$","g"),"")};String.prototype.trim=function(A){return this.ltrim(A).rtrim(A)};String.prototype.toTitleCase=function(){var B="";var C=this.split(" ");for(var A in C){B+=(C[A].length>1)?(C[A][0].toUpperCase()+C[A].substr(1)):C[A];B+=" "}return B.rtrim()};jQuery.fn.bindEnter=function(A){return $(this).each(function(){$(this).keyup(function(B){if(B.which==13){$(A).click()}})})};jQuery.fn.hoverToggleClass=function(A){return $(this).each(function(){$(this).hover(function(){$(this).addClass(A)},function(){$(this).removeClass(A)})})};String.prototype.htmlEncode=function(){return this.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\s{2,}/g," ").replace(/\n/g,"")};
