function subscribe() {
	var email = $('#EMAIL_ADDRESS').val();
	if(email) {
		$('#submit_icon').attr('src','images/ajax-loader.gif');
		$.post(
			'ajax.php',
			{
				acc: 'subscribe',
				email: email
			},
			function (data) {
				if(data==1) {
					// manipulate the ui to indicate positive result
					$('#submit_icon').attr('src','images/bt_subscribe.jpg');
					$('#EMAIL_ADDRESS').val('');
					$('#EMAIL_ADDRESS').css({'border':'1px solid #00790e'});
					$('#EMAIL_ADDRESS').animate(
							{
    							border: '3px solid #00790e'
    						}, 
    						3000, 
						    function() {
    							$('#EMAIL_ADDRESS').css({'border':''});
    						});
				}
				else {
					// manipulate the ui to indicate negative result
					alert('Invalid Email address supplied');
					$('#submit_icon').attr('src','images/bt_subscribe.jpg');
					$('#EMAIL_ADDRESS').val('');
				}
			}
		);
	}
	else {
		// manipulate the ui
		alert('No email address supplied');
	}
}

// jQuery animation for the roll overs.
$('#bottom_container1').hover(
	function () {
		$('#infoStripe1').animate({ top: '-=36'});
		$('#moreInfoStripe1').fadeIn();
	},
	function () {
		$('#infoStripe1').animate({ top: '+=36'});
		$('#moreInfoStripe1').fadeOut();
	}
);

$('#bottom_container2').hover(
	function () {
		$('#infoStripe2').animate({ top: '-=36'});
		$('#moreInfoStripe2').fadeIn();
	},
	function () {
		$('#infoStripe2').animate({ top: '+=36'});
		$('#moreInfoStripe2').fadeOut();
	}
);

$('#bottom_container3').hover(
	function () {
		$('#infoStripe3').animate({ top: '-=36'});
		$('#moreInfoStripe3').fadeIn();
	},
	function () {
		$('#infoStripe3').animate({ top: '+=36'});
		$('#moreInfoStripe3').fadeOut();
	}
);

