function doSubscription()
{
	params="method=subscribe&ajax=true&email=" +encodeURIComponent(document.mailingListForm.email.value);
	new Ajax.Updater('emailInput', '/actions/mailingList.do', {onLoading:indicateLoading, onComplete:loadingComplete, parameters:params, evalScripts:false, asynchronous:true});
	
	return false;
}
function indicateLoading()
{
	document.mailingListForm.email.value = "Subscribing...";
}
function loadingComplete()
{
}
function showForm()
{
	element = document.getElementById('emailInput');
	element.innerHTML = '<form name="mailingListForm" action="/actions/mailingList.do?method=subscribe" onsubmit="return doSubscription();">' +
	'<table cellspacing="0" cellpadding="0"><tr><td>' +
	'<input name="email" type="text" id="newsletter" value="e-mail address" onfocus="if(this.value==\'e-mail address\')this.value=\'\';" onblur="if(this.value==\'\')this.value=\'e-mail address\'"/>' +
	'</td><td><input type="image" src="/images/newsletter_join.png" alt="Join Now!" border="0" style="width:34px;height:22px;"/></td></tr></table>'+
	'</form><h4><a href="/actions/mailingList.do?method=form&amp;type=unsubscribe">Click here to unsubscribe</a></h4>';
}