$(document).ready(function(){
	var $i=$('#arts').children();
	var $first=$('#arts').children(":first");
	$i.css('display','none');
	$first.css('display','block');
	$next=$first;
	$next.everyTime(5000, function(i) {
		$next.hide('slow');
		$next=$next.next();
		if ($next.is('li')==false) {
			$next=$first;
		}
		if (!$next.children('a').children('img').is('img')) {
			$next.children('a').html('<img src="/img/preview/'+$next.attr('title')+'.jpg">');
		}
		$next.show('slow');
	});
 });

