function slideSwitch(direction)
{
	var $active = jQuery('#slideshow li.active');
	
	if ( $active.length == 0 ) $active = jQuery('#slideshow li:last');
	
	var $next = '';
	if (direction == 'left')
		$next = $active.prev().length ? $active.prev() : jQuery('#slideshow li:last');
	else
		$next = $active.next().length ? $active.next() : jQuery('#slideshow li:first');
	
	$active.addClass('last-active');
	
	$next.css({opacity: 0.0}).addClass('active').animate({opacity: 1.0}, 1000, function(){
		$active.removeClass('active last-active');
		jQuery('span.control').removeClass('disabled');
	});
}

