var TechniColorDreamMachine = new Class({
	
	options: {
		howMany: window.innerHeight,
		height:10,
		red1:0,
		red2:255,
		green1:0,
		green2:255,
		blue1:0,
		blue2:255
	},
	
	initialize: function(options){
		this.setOptions(options);
		lines = [];
		for(i = 1; i < this.options.howMany; i++){
			lines[i] = new Element('div', {
				styles: {
					height: $random(1,15)
				}
			}).injectInside(document.body);
			if (lines[i].offsetTop + this.options.height > this.options.howMany) {
				break;
			}
		}
		lines.each(function(line){
			line.fx = new Fx.Style(line, 'background-color', {
				wait:true
			});
			line.setStyle('background-color', '#FFF');
			this.setColor(line);
			line.addEvent('mouseover', this.setColor.bind(this, line));
		}, this);
	},
	
	setColor: function(line){
		line.fx.start($RGB($random(this.options.red1, this.options.red2), $random(this.options.green1, this.options.green2), $random(this.options.blue1, this.options.blue2)));
	}
	
});
TechniColorDreamMachine.implement(new Options);