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

