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