var boxLinkInterval = 10000;
var boxLinkTimeout = null;
var boxLinkMousePos = null;
var boxLinkItems = null;
var boxLinkNaviHTML = '';

function boxLinkSwitch(newitem) {
	if (boxLinkTimeout)
		clearTimeout(boxLinkTimeout);		
	selected = boxLinkItems.filter('.selected');
	toselect = (selected.length <= 0 || selected.next().length <= 0 ? boxLinkItems.eq(0) : selected.next().eq(0));
	selected.fadeOut('slow');
	selected.removeClass("selected");
	toselect.fadeIn('slow');
	toselect.addClass("selected");
	boxLinkTimeout = setTimeout('boxLinkSwitch()', boxLinkInterval);
}

function boxLinkInit() {
	$('#radioAutopromotion').show();
	boxLinkItems = $("#radioAutopromotion .itemlink");
	boxLinkSwitch();
}

