var Dhv={fn:{}};(function(a){a.htmlspecialchars=function(d,j,h,c){var f=0,e=0,g=false;if(typeof j==="undefined"||j===null){j=2}d=d.toString();if(c!==false){d=d.replace(/&/g,"&amp;")}d=d.replace(/</g,"&lt;").replace(/>/g,"&gt;");var b={ENT_NOQUOTES:0,ENT_HTML_QUOTE_SINGLE:1,ENT_HTML_QUOTE_DOUBLE:2,ENT_COMPAT:2,ENT_QUOTES:3,ENT_IGNORE:4};if(j===0){g=true}if(typeof j!=="number"){j=[].concat(j);for(e=0;e<j.length;e++){if(b[j[e]]===0){g=true}else{if(b[j[e]]){f=f|b[j[e]]}}}j=f}if(j&b.ENT_HTML_QUOTE_SINGLE){d=d.replace(/'/g,"&#039;")}if(!g){d=d.replace(/"/g,"&quot;")}return d};a.nl2br=function(c){var b="";if(c){b=c.replace(/\n/g,"<br/>").replace(/\r/,"")}return b};a.mysqlDateToString=function(b){var c=b.split("-");if(c.length>2){return c[2]+"."+c[1]+"."+c[0]}else{return""}};a.uncache=function(b){if(b.length>0){if(b.indexOf("?")>-1){b+="&"}else{b+="?"}b+=(new Date()).getTime()}return b}})(Dhv.fn);(function(b,a){b.initResize=function(c){if(c>0){a(window).resize(function(){var d=a(window).width();if(d<c){a("body").css("background-position","left")}else{a("body").css("background-position","center")}})}}})(Dhv,jQuery);
