jQuery.easing.easeOutQuart = function (x, t, b, c, d) {
	return -c * ((t=t/d-1)*t*t*t - 1) + b;
};
function scroll(target) {
	$.scrollTo("div#"+target, 1000);
}
 jQuery(document).ready(function($) {
  $('a[rel*=facebox]').facebox()
})
$(function() {
    // These first three lines of code compensate for Javascript being turned on and off. 
    // It simply changes the submit input field from a type of "submit" to a type of "button".

    $('input#submit').click(function() {

        var name = $('input#name').val();
        var email = $('input#email').val();
        var comments = $('textarea#comments').val();

        $.ajax({
            type: 'post',
            url: 'scripts/sendEmail.php',
            data: 'name=' + name + '&email=' + email + '&comments=' + comments,

            success: function(results) {
                $('ul#response').html(results);
            }
        }); // end ajax
    });
});
