// prepare the form when the DOM is ready 
$(document).ready(function() { 
    // bind form using ajaxForm 
    $('#contactform').ajaxForm({ 
        // target identifies the element(s) to update with the server response 
        target: '#mess', 
 
        // success identifies the function to invoke when the server response 
        // has been received; here we apply a fade-in effect to the new content 
        success: function() { 
            $('#mess').fadeTo(1000,10).fadeOut(1000); 
        } 
    });
	
	$('#feedbackform').ajaxForm({ 
        // target identifies the element(s) to update with the server response 
        target: '#mess2', 
 
        // success identifies the function to invoke when the server response 
        // has been received; here we apply a fade-in effect to the new content 
        success: function() { 
            $('#mess2').fadeTo(1000,10).fadeOut(1000); 
        } 
    });
	
	
	$('#feedback a').click(function() {
 	$('#feedform').animate({width: 'toggle'});
	return false;
  });
	
	
});