<!--
$(document).ready(function() {

	// Cycle Image Rotation
	$("#banner").cycle({
		fx:     'fade',
		timeout: 8000, 
   		speed: 1500
	});
	// End of Cycle

	// AJAX Form-2-Mail - Written By: Emerson R. Lackey of elementfortytwo.com
	// Hide the status and loading animation
	$('#in_filter').hide();
	$('#status').hide();
	$('#sending').hide();

	$("#contact-us").submit(function() {
	// Get form values
  	var php_name = $("#in_name").val();
	var php_email = $("#in_email").val();
	var php_phone = $("#in_phone").val();
	var php_comment = $("#in_comment").val();
	var php_filter = $("#in_filter").val();
	
	$().ajaxSend(function(r,s){  
	$("#sending").show();
	  
	});  
	// Send to form
	$.post("form-to-mail.php", { in_name: php_name, in_email: php_email, in_phone: php_phone, in_comment: php_comment, in_filter: php_filter }, function(data) {
  
  
	$().ajaxStop(function(r,s){  
	$("#sending").fadeOut("fast");  
	});  
  
  		
  		$("#status").fadeIn("slow");
  		$("#status").html(data);
		
  		$("#status").animate({opacity: 1.0}, 6000).fadeOut('slow');
  		
  		
  		
  	});
  	return false;
  
  // End of contact form submit
  }); 
	
});
//-->