/*
 * jQuery replaceText - v1.1 - 11/21/2009
 * http://benalman.com/projects/jquery-replacetext-plugin/
 * 
 * Copyright (c) 2009 "Cowboy" Ben Alman
 * Dual licensed under the MIT and GPL licenses.
 * http://benalman.com/about/license/
 */
(function($){$.fn.replaceText=function(a,b,c){return this.each(function(){var e=this.firstChild,g,d,f=[];if(e){do{if(e.nodeType===3){g=e.nodeValue;d=g.replace(a,b);if(d!==g){if(!c&&/</.test(d)){$(e).before(d);f.push(e)}else{e.nodeValue=d}}}}while(e=e.nextSibling)}f.length&&$(f).remove()})}})(jQuery);