/*!
 * jQuery Fancy Letter Plugin v1.0
 *
 * Date: Sun Nov 14 22:37:22 2010 EST
 * Requires: jQuery v1.2.6+
 *
 * Copyright 2010, Karl Swedberg
 * Dual licensed under the MIT and GPL licenses (just like jQuery):
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 *
 * 
 * 
 *
*/
(function(c){function j(b){var f=b.firstChild,a="";if(!b)return"";for(;b.childNodes.length;)b=b.firstChild;a=b.nodeValue&&b.nodeValue.replace(/^\s\s*/,"")||"";return a===""&&f&&f.nextSibling?j(f.nextSibling):{node:b,val:a}}c.fn.fancyletter=function(b){var f={'"':"ldquo","'":"lsquo","(":"lparen"};return this.each(function(){var a,g,d,e;e=this;a=c(this);var h=c.extend({},c.fn.fancyletter.defaults,b||{},c.metadata?a.metadata():c.meta?a.data():{});d=RegExp(h.characters);e=j(e);a=e.val;e=e.node;g=a.slice(0,
1);if(a&&d.test(g)){var i=c("<span></span>");d=g.toLowerCase();if(d in f)d=f[d];e.nodeValue=a.slice(1);i.text(g);i.addClass(h.commonClass+" "+h.ltrClassPrefix+d);i.prependTo(this)}})};c.fn.fancyletter.defaults={commonClass:"fancy-letter",ltrClassPrefix:"ltr-",characters:"[a-zA-Z]"}})(jQuery);

