var bannerImages, bannerUrls;
var currentBannerIndex = 0;

function startBannerRotation()
{
	window.setTimeout('nextBanner()', 11000);
}

function nextBanner()
{
	// Move to next banner offset
	currentBannerIndex++;
	if (currentBannerIndex >= bannerImages.length)
		currentBannerIndex = 0;
	
	// Apply settings
	document.getElementById('topBannerLink').href = bannerUrls[currentBannerIndex];
	document.getElementById('topBannerImage').src = bannerImages[currentBannerIndex];
		
	window.setTimeout('nextBanner()', 11000);
}
