var TextDropShadow=new Class({options:{color:"#333",left:1,top:1,position:"absolute"},initialize:function(B,A){this.setOptions(A);this.createDropShadows(B)},createDropShadows:function(A){if("element"==$type(A)){this.applyDropShadow(A)}else{if("array"==$type(A)){A.each(function(B){this.applyDropShadow(B)},this)}else{return false}}},applyDropShadow:function(D){var C=D.clone();var F=D.clone();var E=this.options.top?this.options.top.toInt():this.options.bottom.toInt();if(E<0){E=E*(-1)}var A=this.options.left?this.options.left.toInt():this.options.right.toInt();if(A<0){A=A*(-1)}var B=new Element("div",{styles:{position:"relative",left:0,top:0,height:D.getSize().size.y+E,width:D.getSize().size.x+A}});C.setStyles({position:"absolute",left:0,top:0});F.removeProperty("id");F.removeProperty("class");F.setStyles(this.options);F.setStyle("background","transparent");B.adopt(F).adopt(C);B.injectAfter(D);D.remove()}});TextDropShadow.implement(new Options,new Events);