jQuery.fn.labelOver = function(overClass) {
	return this.each(function(){
		
		var label = jQuery(this);
		var f = label.attr('for');
		if (f) {

//			console.log(f);
			var input = jQuery('#' + f);
	//					console.log(input);			
			this.hide = function() {
			  label.css({ textIndent: -10000 })
			}
			
			this.show = function() {
		//	console.log('fn show ok');
			  if (input.val() == '') label.css({ textIndent: 0 })
	
			}

			// handlers
			input.focus(this.hide);
			input.blur(this.show);
		  label.addClass(overClass).click(function(){ input.focus() });
			
			if (input.val() != ''){ this.hide(); 
			
			}
		}
	})
}

