var inc = 0;
var totalBanners = 6;
var bannerArray = new Array(totalBanners);
var timeoutArray = new Array(totalBanners);

bannerArray[0] = '/images/rotate/support_bell.jpg';
bannerArray[1] = '/images/rotate/support_gov.jpg';
bannerArray[2] = '/images/rotate/support_telus.jpg';
bannerArray[3] = '/images/rotate/support_shaw.jpg';
bannerArray[4] = '/images/rotate/support_honeywell.jpg';
bannerArray[5] = '/images/rotate/support_cibc.jpg';

timeoutArray[0] = '2500';
timeoutArray[1] = '2500';
timeoutArray[2] = '2500';
timeoutArray[3] = '2500';
timeoutArray[4] = '2500';
timeoutArray[5] = '2500';



function rotate_sponsor()
{
	document.getElementById('sponsor_banner').src = bannerArray[inc];
	var timer = setTimeout('changeImage()', timeoutArray[inc]);
}

function changeImage()
{
	if(inc > totalBanners)
	{
		inc = 0;
	}
	else
	{
		inc++;
	}
	if(bannerArray[inc])
	{
		document.getElementById('sponsor_banner').src = bannerArray[inc];
	}
	var timer = setTimeout('changeImage()', timeoutArray[inc]);	
}

