$("#contact form label").css({
	left: 0,
	width: "auto",
	textAlign: "left",
	whiteSpace: "nowrap"
});

$("#contact form input, #contact form textarea").bind("focus blur", function(evt) {
	if($(this).val() == "")
	{
		var labelElem = $(this).prev("label");
		labelElem.animate({
			left: (evt.type == "focus") ? (0 - labelElem.outerWidth()) : 0
		}, 200);
	}
}).each(function() {
	if($(this).val() != "")
	{
		var labelElem = $(this).prev("label");
		labelElem.css({
			left: (0 - labelElem.outerWidth())
		});
	}
});
