
	$(function() {
		generateSprites(".nav", "current-", true, 300, "fade");
	
        $('#contactForm').submit(function() {
          var inputs = [];
          $(':input', this).each(function() {
            inputs.push(this.name + '=' + escape(this.value));
          })
          
          jQuery.ajax({
            data: inputs.join('&'),
            url: this.action,
            timeout: 2000,
            error: function() {
              console.log("Failed to submit");
            },
            success: function() { 
             $("#contact_form").after("<p>Thank you for your enquiry, someone will be in touch soon.</p>");
            }
          }) 
          return false;
        })
      })
