var sponsorblockId = 2;
jQuery.fjTimer({
        interval: 10000,
        repeat: true,
        tick: function(counter, timerId) {
		change(sponsorblockId);
		sponsorblockId++;
		if(sponsorblockId>6) { sponsorblockId = 1; }
        }
});
 
function change(index) {
	var prevIndex = (index == 1) ? 6 : (index-1);
	//alert("test: "+prevIndex+" "+index+" "+$('#sponsors-'+prevIndex).css("display"));
	if("none" != $('#sponsors-'+prevIndex).css("display")) {
		$('#sponsors-'+prevIndex).fadeOut(1500, function () {
 			$('#sponsors-'+index).fadeIn(1500);
 		});
	}/*else{
		$('#sponsors-2').fadeOut(1500, function () {
 			$('#sponsors-1').fadeIn(1500);
 		});
	}*/
}
