var oTxtFields = $('#main input, #main textarea');

	$.each(oTxtFields, function() {

		var label = $('label[for=' + $(this).attr('id') + ']');
		label.addClass('overlayed').show();

		if (!$(this).val() == '') {
			label.hide();
		}

		$(this).focus(function(e){
			$('label[for=' + $(e.target).attr('id') + ']').hide();
		});	

		$(this).blur(function(e){
			if ($(e.target).val() == '') {
				$('label[for=' + $(e.target).attr('id') + ']').show();
			}
		});
		
	});
