function jsmarty_outputfilter_trimwhitespace(k,Z){var C=JSmarty.Plugin.get("php.trim");var x=/<pre>.*?<\/pre>/ig;var a=/<script[^>]+>.*?<\/script>/ig;var o=/<textarea[^>]+>.*?<\/textarea>/ig;var S=k.match(a);k=k.replace(a,"@@@JSMARTY:TRIM:SCRIPT@@@");var R=k.match(x);k=k.replace(x,"@@@JSMARTY:TRIM:PRE@@@");var d=k.match(o);k=k.replace(o,"@@@JSMARTY:TRIM:TEXTAREA@@@");k=C(k.replace(/((\?<!\?>)\n)[\s]+/m,"$1"));k=jsmarty_outputfilter_trimwhitespace_replace("@@@SMARTY:TRIM:SCRIPT@@@",S,k);k=jsmarty_outputfilter_trimwhitespace_replace("@@@JSMARTY:TRIM:PRE@@@",R,k);k=jsmarty_outputfilter_trimwhitespace_replace("@@@JSMARTY:TRIM:TEXTAREA@@@",d,k);return k;}function jsmarty_outputfilter_trimwhitespace_replace(k,Z,o){while(o.indexOf(k)!=-1){o=o.replace(k,Z);}return o;}