window.addEvent('domready', function() {
	$$('input.defs').each(function(input) {
	
		input.addEvent('click', function() {
			if(this.getAttribute('rel') == '' || this.getAttribute('rel') == this.value){
				this.setAttribute('rel',this.value);
				this.value = '';
			}
	   });
		
		input.addEvent('blur', function() {
	       if(this.value == '') {
	    	   this.value = this.getAttribute('rel');	
	       }
	   });
	});
});
