var Typewriter = new Class({
				
	//implements
	Implements: [Options],
			
	//options
	options: {
		container: $$('body')[0],
		message: '',
		delay: 150,
		cursor: 0
	},
				
	//initialization
	initialize: function(options) {
		//set options
		this.setOptions(options);
	},
				
	//start the Typewriter
	start: function() {
		//alert(this.options.container.id)
		//for every letter
		for(x = 0; x < this.options.message.length; x++){
			//spit out the letter
			var id = this.setLetter.delay(this.options.delay * x,this);
		}					
	},
				
	//place the newest letter in the container
	setLetter: function() {			
		document.getElementById(this.options.container.id).innerHTML += this.options.message.charAt(this.options.cursor);
		//increment cursor
		this.options.cursor++;
	}
});

Typewriter.implement(new Options);