function slideshowrefresh(content) {
	var fadeout = new Fx.Style($('slideshow'), 'opacity', {duration: 300, wait: false });
	fadeout.start(1.0,0.0);	

	var z = (function () {
		$("slideshow").setHTML(content);
		var fadein = new Fx.Style($('slideshow'), 'opacity', {duration: 300, wait: false });
	        fadein.start(0.0,1.0); 
	});

	z.delay(305);
}

window.addEvent('load', function()
{

	if ($('slideshow')) {
		k = (function() { var z = new Ajax("ss.php", { method: 'get', onComplete: slideshowrefresh }).request(); });
		k.periodical(8000);
	}
});


