	
	Effect.Numb3rs = Class.create( Effect.Base, {
		initialize: function(element){
			this.element = $(element);
			this.startText = this.element.innerHTML;
			this.smallChars = new Array();
			this.originalChars = new Array();
			Effect.tagifyText(this.element);
			var that = this;
			this.element.childElements().each(function(elm, n){
				elm.id = that.element.id + '_' +n;
				that.smallChars.push(elm.innerHTML.toLowerCase());
				that.originalChars.push(elm.innerHTML);
			});
			var time = new Date().getTime() + 1000;
			var options = Object.extend({
					fps: 15,
					restore:true,
					numb3rColor:'#990000',
					restoreColor:'#000000',
					duration:3
				}, arguments[1] || { });
			this.start(options);
		},
		
		update: function(pos){
			var that = this;
			this.element.childElements().each(function(elm,n){
				if(Math.random() < (1-pos)*0.5){
					//elm.setStyle({backgroundColor: '#'+c+''+c+''+c});	
					var smallChar = that.smallChars[n];
					if(that.Chars[smallChar]){
						var rand = Math.round(Math.random() * (that.Chars[smallChar].length-1));	
						elm.innerHTML = that.Chars[smallChar][rand];
						elm.setStyle({color: that.options.numb3rColor});
					}
				}else {
					elm.innerHTML = that.originalChars[n];
					elm.setStyle({color: that.options.restoreColor});
				}
			});
		},
		
		finish: function(){
			if(this.options.restore){
				this.element.innerHTML = this.startText;
			}
		},
		
		Chars: {
			a: ['4','A','a','^','@','&AElig;','&aelig;'],
			b: ['B','b','8','6','ß','3'],
			c: ['c','C','(','['],
			d: ['d','D','0','?'],
			e: ['e','E','3','€'],
			f: ['f','F','ƒ','7'],
			g: ['g','G','6','9'],
			h: ['h','H','#','5'],
			i: ['i','I','1','!'],
			j: ['j','J','¿',']'],
			k: ['k','K','x','{'],
			l: ['l','L','!','£','|'],
			m: ['m','M','&micro;','&mu;'],
			n: ['n','N','4'],
			o: ['o','O','0','&Oslash;','Ω'],
			p: ['p','P','?','9','¶'],
			q: ['q','Q','0','&phi;'],
			r: ['r','R','2','®','Я'],
			s: ['s','S','5','$','§'],
			t: ['t','T','7','+','1'],
			u: ['u','U','v'],
			v: ['v','V','√','u'],
			w: ['w','W','&omega;','Ш'],
			x: ['x','X','%','Ж','*','×'],
			y: ['y','Y','j','Ψ','φ'],
			z: ['z','Z','2','3','7']
		}
	});

