/*///////////////////////////////////////////////////////////////////////Part of the code from the book Building Findable Websites: Web Standards, SEO, and Beyondby Aarron Walter (aarron@buildingfindablewebsites.com)http://buildingfindablewebsites.comDistrbuted under Creative Commons licensehttp://creativecommons.org/licenses/by-sa/3.0/us////////////////////////////////////////////////////////////////////////*/// Load Events ListenersEvent.observe(window, 'load', init, false);function init(){	Event.observe('signup','submit',storeAddress);}// AJAX call sending sign up info to store-address.phpfunction storeAddress(event) {		// Update user interface	$('mc_response').innerHTML = '<img id="ajax-loader" src="/images/loading_spinner.gif" /> your email is being added, please wait...';	

	// Prepare query string and send AJAX request	// NOTE: You'll need to define what info your list will accept in your MailChimp account in 	// Lists > click the desired list > list settings > Merge tags for personalization 	var pars = 'ajax=true&email=' + escape($F('email'));		var myAjax = new Ajax.Updater('mc_response', 'http://www2.nucleus-online.com/includes/mc-subscribe.php', {method: 'get', parameters: pars});		Event.stop(event); // Stop form from submitting when JS is enabled}

// AJAX call sending sign up info to store-address.php
function storeAddress2() {
	
	// Update user interface
	$('mc_response').innerHTML = '<img id="ajax-loader" src="/images/loading_spinner.gif" /> <strong>your email is being added, please wait...</strong>';
	

	// Prepare query string and send AJAX request
	// NOTE: You'll need to define what info your list will accept in your MailChimp account in 
	// Lists > click the desired list > list settings > Merge tags for personalization 
	var pars = 'ajax=true&email=' + escape($F('email'));
	
	var myAjax = new Ajax.Updater('mc_response', 'http://www2.nucleus-online.com/includes/mc-subscribe.php', {method: 'get', parameters: pars});
	
	//Event.stop(event); // Stop form from submitting when JS is enabled
}
