function slideSwitchNext() {

	setSlideshowPosition();

	if ($('#navigateNext').hasClass("active")) {
		
		$('#navigateNext').removeClass('active');
		var $active = $('#Slideshow div.active');
		$('.Box_Slideshow .detail p').html($('#Slideshow div.active img').attr('alt'));
	
		if ( $active.length == 0 ) $active = $('#Slideshow div:last');
		
		var href = $active.next().length ? $active.next().children('a').attr('href') : last_slide_href;
		$('#Slideshow div a.current').attr('href',href);
		
		var $next =  $active.next().length ? $active.next()
							: $('#Slideshow div:first');
		
		$active.addClass('last-active');
		//$active.css({opacity: 0.0});
		$next.css({opacity: 0.0})
			.addClass('active')
			.animate({opacity: 1.0}, 1000, function() {
				$active.css({opacity: 0.0});
				$active.removeClass('active last-active');
				$('#navigateNext').addClass('active');
			});
	}
}

function slideSwitchPrev() {

	if ($('#navigatePrev').hasClass("active")) {

		$('#navigatePrev').removeClass('active');
		var $active = $('#Slideshow div.active');
		$('.Box_Slideshow .navigate p').html($('#Slideshow div.active img').attr('alt'));
	
		if ( $active.length == imgCount ) $active = $('#Slideshow div:first');
		
		var href = $active.prev().length ? $active.prev().children('a').attr('href') : last_slide_href;
		$('#Slideshow div a.current').attr('href',href);
		
		var $next =  $active.prev().length ? $active.prev()
							: $('#Slideshow div:last');

		$active.addClass('last-active');
		//$active.css({opacity: 0.0});
		$next.css({opacity: 0.0})
			.addClass('active')
			.animate({opacity: 1.0}, 1000, function() {
				$active.css({opacity: 0.0});
				$active.removeClass('active last-active');
				$('#navigatePrev').addClass('active');
			});
	}
}
