/*
 * Author: Scott Steil <scott.steil@imperium.ca>
 * 
 * Creates a overText label for all input fields with an alt attribute.
 * Using this method will ensure that the field holds the appropriate text, 
 * disappears when the user clicks into the field, and has special styles 
 * applied. But, the form will not submit this as a value if left blank. 
 * 
 * HTML example:
 *   <input type="text" name="username" alt="enter a username" />
 *
 * CSS example:
 *   label.overTxtLabel { font-size: 12px; }
 *
 */
window.addEvent('domready', function() {
	$$('input').each(function(input) {
		if(input.get('alt')) {
			new OverText(input);
		}
	});
});
