/*///////////////////////////////////////////////////////////////////////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////////////////////////////////////////////////////////////////////////*/$(document).ready(function() {	$('#signup').live('submit',function() {		// update user interface		$('#emailResponse').html('Adding email address...');				// Prepare query string and send AJAX request		$.ajax({			url: '/template/mailchimp/store-address.php',			data: 'ajax=true&email=' + escape($('#mailingListEmail').val()),			success: function(msg) {				$('#emailResponse').html(msg);				if ( msg.indexOf("Error:") == -1 ){ //success					var exdate=new Date();					exdate.setDate(exdate.getDate() + 365);					var c_value="TRUE; expires="+exdate.toUTCString();					document.cookie= "emailSubmitted" + "=" + c_value;					$("#noThanksCookie, #mailingListEmail, #mailingListSubmit").hide();					setTimeout(function(){$("#cookieSignup").slideUp(500)},2000)					}			}		});			return false;	});});
