var TextDropShadow=new Class({Implements:[Events,Options],options:{color:"#333",left:1,top:1,position:"absolute",mouseOverShadow:false,inlineContainer:false},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==0?this.options.top.toInt():this.options.bottom.toInt();if(e<0){e=e*(-1)}var a=this.options.left||this.options.left==0?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().y+e,width:d.getSize().x+a}});if($chk(d.id)){b.setProperty("id",d.id+"_shadContainer")}c.setStyles({position:"absolute",left:0,top:0});f.setStyles(this.options);f.setStyle("display",this.options.mouseOverShadow?"none":"");c.addEvent("mouseover",function(g){var g=new Event(g);this.fireEvent("originalMOver");f.setStyle("display",this.options.mouseOverShadow?"":"")}.bind(this));c.addEvent("mouseout",function(g){var g=new Event(g);this.fireEvent("originalMOut");f.setStyle("display",this.options.mouseOverShadow?"none":"")}.bind(this));b.adopt(f).adopt(c);b.injectAfter(d);d.dispose()}});
