
(function($){function replace(handler,args){return handler.apply(this,args.length<2?args:[$.format(args[0],$.makeArray(args).slice(1))]);}
var oldhtml=$.fn.html,oldtext=$.fn.text;$.fn.extend({html:function(){return replace.call(this,oldhtml,arguments);},text:function(text){return replace.call(this,oldtext,arguments);}});$.format=function(value,args){var counter=0;return value.replace(/%/g,function(char,pos,value){var before=value.charAt(pos-1),after=value.charAt(pos+1);if(before=="%")
return"%";if(after=="%")
return"";return args[counter++]});}})(jQuery);
