function slideSwitch() {
	var active = $('#slideshow img.active');

	if ( active.length == 0 ) active = $('#slideshow img:last');

	var next = active.next().length ? active.next() : $('#slideshow img:first');

	active.animate({opacity: 0.0}, 1000).hide().addClass('last-active');

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

$(function() {
	setInterval( "slideSwitch()", 5000 );
});

function fn_toggle_news(newsID) {
	$('#news' + newsID).slideToggle('slow');
}
