$(document).ready(function() {
	$('form #name input, form #email input, #contact_form textarea').each(function() {
		var v = $(this).attr('value');
		var value = $(this).parent('p').attr('id');
		if (v == '') {
			$(this).attr('value', value).css('color', '#999');
		} else {
			$(this).css('color', '#000');
		}
		$(this).focus(function() {
			if ($(this).attr('value') == value) {
				$(this).attr('value', '').css('color', '#000');
			}
		});
		$(this).blur(function() {
			if ($(this).attr('value') == '') {
				$(this).attr('value', value).css('color', '#999');
			}
		});
	});
});
