// JavaScript Document

$(document).ready(function(){
 $("#contact_form_ft").submit(function(){

 var str = $(this).serialize();

    $.ajax({
    type: "POST",
    url: "parser_contact_ft_home.php",
    data: str,
    success: function(msg){

 $("#note_ft").ajaxComplete(function(event, request, settings){

 if(msg == 'OK') // Message Sent? Show the 'Thank You' message and hide the form
 {
 result = '<div class="notification_ok">Your message has been sent. Thank you!</div>';
 $("#fields_ft").hide();
 }
 else
 {
 result = msg;
 }

 $(this).html(result);

 });

 }

  });

 return false;

 });

 });

