var ToggleInputValue = new Class({
		initialize: function (){
			var inputs = $$('input.txt');
			this.text;
			
			
			inputs.each (function(item, index){
					item.addEvent('click', function(){
							this.hopIn(item);
					}.bind(this));
					item.addEvent('blur', function(){
							this.hopOut(item);
					}.bind(this));
			}.bind(this));
		},
		hopIn: function (input) {
			this.text = input.value;
			input.value = "";
		},
		hopOut: function (input) {
			if (input.value == "")
				input.value = this.text;
		}
});

window.addEvent('domready', function(){
		var MyToggleInputValue = new ToggleInputValue();
}.bind(this));

