var dwDefaults = new Class({
	//implements
	Implements: [Options],

	//options
	options: {
		collection: $$('input[type=text]')
	},
	
	//initialization
	initialize: function(options) {
		//set options
		this.setOptions(options);
		this.defaults();
	},
	
	//a method that does whatever you want
	defaults: function() {
		this.options.collection.each(function(el) {

			if(el.get('value') == '' || el.get('value') == el.get('alt')) {
				el.set('value', el.get('alt'));
				el.addClass('dwdefaultstext');
			}

			el.addEvent('focus', function() {
				if(el.get('value') == el.get('alt')) {
					el.set('value', '');
				}
				el.removeClass('dwdefaultstext');
			});

			el.addEvent('blur', function() {
				if(el.get('value') == '') {
					el.set('value', el.get('alt'));
					el.addClass('dwdefaultstext');
				}
			});
		});
	}
	
});