//engage on the page load
$(function() {
  //trigger ajax on submit
  $('#contactForm').submit( function(){

  //hide the form
  $('#contactForm').hide();

  //show the loading bar
  $('.loader').append($('.bar'));
  $('.bar').css({display:'block'});

  //send the ajax request
  $.get('contact.php',{name:$('#name').val(),
					company:$('#company').val(),
					address:$('#address').val(),
					city:$('#city').val(),
					country:$('#country').val(),
					number:$('#number').val(),
					fax:$('#fax').val(),
					email:$('#email').val(),
					questions:$('#questions').val(),
                    comments:$('#comments').val(),
					response:$('#response').val()},

  //return the data
  function(data){
    //hide the graphic
    $('.bar').css({display:'none'});
    $('.loader').append(data);
  });

  //stay on the page
  return false;
  });
});
