(function(a){a.fn.textShadow=function(c){if(!a.browser.msie){return}var b=a.browser.version<7;return this.each(function(){var e=a(this);var f=e.textShadowParse(this.currentStyle["text-shadow"]);f=a.extend(f,c);e.textShadowRemove();if(f.x==0&&f.y==0&&f.radius==0){return}if(e.css("position")=="static"){e.css({position:"relative"})}e.css({zIndex:"0"});if(b){e.css({zoom:"1"})}var d=document.createElement("span");a(d).addClass("jQueryTextShadow");a(d).html(e.html());a(d).css({padding:this.currentStyle.padding,width:e.width(),position:"absolute",zIndex:"-1",color:f.color!=null?f.color:e.css("color"),left:(-parseInt(f.radius)+parseInt(f.x))+"px",top:(-parseInt(f.radius)+parseInt(f.y))+"px"});if(f.radius!=0){if(f.opacity!=null){a(d).css("filter","progid:DXImageTransform.Microsoft.Blur(pixelradius="+parseInt(f.radius)+", enabled='true', makeShadow='true', ShadowOpacity="+f.opacity+")")}else{a(d).css("filter","progid:DXImageTransform.Microsoft.Blur(pixelradius="+parseInt(f.radius)+", enabled='true')")}}e.append(d)})};a.fn.textShadowParse=function(c){c=String(c).replace(/^\s+|\s+$/gi,"").replace(/\s*!\s*important/i,"").replace(/\(\s*([^,\)]+)\s*,\s*([^,\)]+)\s*,\s*([^,\)]+)\s*,\s*([^\)]+)\s*\)/g,"($1/$2/$3/$4)").replace(/\(\s*([^,\)]+)\s*,\s*([^,\)]+)\s*,\s*([^\)]+)\s*\)/g,"($1/$2/$3)");var d={x:0,y:0,radius:0,color:null};if(c.length>1||c[0].toLowerCase()!="none"){c=c.replace(/\//g,",");var b;if(c.match(/(\#[0-9a-f]{6}|\#[0-9a-f]{3}|(rgb|hsb)a?\([^\)]*\)|\b[a-z]+\b)/i)&&(b=RegExp.$1)){d.color=b.replace(/^\s+/,"");c=c.replace(d.color,"")}c=c.replace(/^\s+|\s+$/g,"").split(/\s+/).map(function(e){return(e||"").replace(/^0[a-z]*$/,"")?e:0});switch(c.length){case 1:d.x=d.y=c[0];break;case 2:d.x=c[0];d.y=c[1];break;case 3:d.x=c[0];d.y=c[1];d.radius=c[2];break}if((!d.x&&!d.y&&!d.radius)||d.color=="transparent"){d.x=d.y=d.radius=0;d.color=null}}return d};a.fn.textShadowRemove=function(){if(!a.browser.msie){return}return this.each(function(){a(this).children("span.jQueryTextShadow").remove()})}})(jQuery);if(typeof Array.prototype.map=="undefined"){Array.prototype.map=function(d){var b=new Array(this.length);for(var c=0;c<this.length;c++){b[c]=d(this[c])}return b}};
