// Author: andreamaral.net

// scripts do formulario de contato
$(document).ready(function(){
	$("#telefone").setMask('phone');
	
	$(".textfield").each(function(e) {
		$("label").css('display', 'none');
		$(this).attr("value", $(this).prev("label").text());
		$(this).focus(function() {
			if( $(this).prev("label").text() == $(this).attr("value") ) {
				$(this).attr("value", "");
			}
		});
		$(this).blur(function() {
			if( $(this).attr("value") == "" )
				$(this).attr("value", $(this).prev("label").text());
		});
	});
});






















