Element.implement({
inputHint : function(val){
switch(this.get('tag')){
case 'form':
this.getElements('input[type="text"],textarea').inputHint(val);
return this;
case 'input':
case 'textarea':
this.store('default',(val||this.get('value')));
this.addEvents({
'focus':function(){
if(this.get('value') == this.retrieve('default')){
this.set('value', '');
}
},
'blur':function(){
if(this.get('value').clean() == ''){
this.set('value', this.retrieve('default'));
}
}
}).fireEvent('blur');
default: return this;
}
}
}); 
