	$(document).ready(function() {
		sponsorCount=parseInt($("#adpanelrightbottomcount").html());
		changeSponsor();
	});

	// Change the sponsors logo every 4 seconds
	$(document).everyTime(4000, function() {
		changeSponsor();
	}, 0);

	function changeSponsor() {
		$('#sponsor' + currentSponsor).fadeOut("slow", function() {
			currentSponsor++;
			if (currentSponsor==sponsorCount)
				currentSponsor=0;
			$('#sponsor' + currentSponsor).fadeIn("slow");
		});
	}
		
	var sponsorCount=0;
	var currentSponsor=0; // Set to negative so changeSponsor's first run will increase to 0 where we start...
