var RecaptchaOptions = {
   theme : 'white'
};

$(function() {
	$("input:submit").button();
	
	var vals = {
		first: "First name",
		last: "Last name",
		email: "E-mail address",
		phone: "Phone number",
		org: "Organization",
		title: "Title",
		comments: "Comments"
	};
	
	$("input:text").focus(function() {
		$(this).select();
	}).blur(function() {
		var name = $(this).attr('name');
		if ($(this).val() == '') {
			$(this).val(vals[name]);
		}
	});
	
	$("textarea").focus(function() {
		for (key in vals) {
			if ($(this).text() == vals[key]) {
				$(this).text('');
			}
		}
	}).blur(function() {
		var name = $(this).attr('name');
		if ($(this).text() == '') {
			$(this).text(vals[name]);
		}
	});
	
	$("#privacy-policy").dialog({
		autoOpen: false,
//		height: 140,
		width: 500,
		modal: true
	});

	
	$("#privacy-popup").click(function(){
		$("#privacy-policy").dialog('open');
		return false;
	});
				
});
