// JavaScript Document



$(document).ready(function(){});


$(document).ready(function() {

	$('#askQuestion').click(function() {
		$('#openIntForm').hide();
		$('#intForm').show();
		$.NiceJForms.build()
		});
		

	// and then make sure that nothing's got anything in it that'll interfere w/ the label
	$('input', '#interact_form').each(function() {
		if ($(this).val() != "") {
			$(this).prev('label').addClass('hiddenLabel');
		}
    });
	
	//setup the form tooltips & label disappearances
	$('input,select,textarea','#interact_form').focus(function(thisInput) {
		
		thisInput = thisInput.target;
		
		// hide the label
		$("label[@for=" + thisInput.id + "]").addClass('hiddenLabel');

	
		return true;
		
	}).blur(function(thisInput) {

		thisInput = thisInput.target;

		// re-display the label
		if ($(thisInput).val() == "") {
			$(thisInput).prev('label').removeClass('hiddenLabel');
		}

		
		
		
	});


	// Setup Select Boxes
	$('#interact_form').each(function() {
		var labeltxt = $("label[@for=" + $(this).attr("id") + "]").html();	
	});
	

}); // end of $(document).ready
