
	var timer, speed = 4000;
	$(function(){
		$('#adblock ul.link li a').mouseover(function(){
			var $this = $(this),
				$li = $this.parent(),
				no = $('#adblock ul.link li').index($li);

			$('#adblock ul.link li a').removeClass('selected');
			$this.addClass('selected');

			$('#adblock ul.showbox').stop().animate({
				top: -200 * no
			}, 400);
		}).focus(function(){
			$(this).blur();
		}).eq(0).addClass('selected');

		$('#adblock ul.showbox li').hover(function(){
			clearTimeout(timer);
		}, function(){
			timer = setTimeout('showNext()', 5000);
		});
		
		timer = setTimeout('showNext()', 5000);
	});

	function showNext(){
		var $a = $('#adblock ul.link li a'),
			no = $a.index($('a.selected'));
		no = (no + 1) % $a.length;

		$a.eq(no).mouseover();

		timer = setTimeout('showNext()', speed);
	}

