/*///////////////////////////////////////////////////////////////////////
Ported to jquery from prototype by Joel Lisenby (joel.lisenby@gmail.com)
http://joellisenby.com

original prototype code by Aarron Walter (aarron@buildingfindablewebsites.com)
http://buildingfindablewebsites.com

Distrbuted under Creative Commons license
http://creativecommons.org/licenses/by-sa/3.0/us/
///////////////////////////////////////////////////////////////////////*/



jQuery(document).ready(function() {
	jQuery('#signup').submit(function() {
	
		// update user interface
		jQuery('#response').html('Adding email address...');
		
		// Prepare query string and send AJAX request
		jQuery.ajax({
			url: s5mailchimpurl + 'files/store-address.php',
			data: 'ajax=true&email=' + escape(jQuery('#email').val()),
			success: function(msg) {
				jQuery('#response').html(msg);
			}
		});
	
		return false;
	});
});