function slideSwitch()
{
	var $active = $('#slideshowContainer img.active');
	
	if ($active.length == 0) $active = $('#slideshowContainer img:last');
	
	var $next =  $active.next().length ? $active.next() : $('#slideshowContainer img:first');

	$active.addClass('lastActive');
	
	$next.css({opacity: 0.0})
		.addClass('active')
		.animate({opacity: 1.0}, 1000, function() {
			$active.removeClass('active lastActive');
		});
	}

$(function()
{
	setInterval('slideSwitch()', 4000);
});

function checkForm()
{
	if (document.getElementById('mailingListEmail').value == '') {
		alert('The email address field can not be left blank.');
		return false;
	}

	return true;
}