var sponsorsArray = new Array(
	'esso.gif', 
	'mcdo.gif', 
	'cgi.gif', 
	'airCanada.gif', 
	'urbandale.jpg', 
	'arnon.gif', 
	'magic100.jpg', 
	'vh.gif', 
	'tommy.gif', 
	'amaro.gif' ,
	'bobfm.gif', 
	'ctv.gif', 
	'ottawaCitizen.gif',
	'flyerForce.gif', 
	'pattison.gif', 
	'emc.gif',
	'coughlin_e.png',
	'logicalmove.gif',
	'Royal.logo.jpg',
	'psac.gif',
	'henrys.gif',
	'ericsson2.jpg'
);

thisIndex = 0;

function cycleSponsors() {
    if (document.images) {
        if (document.getElementById('sponsorBanner').complete) {
            if (++thisIndex == sponsorsArray.length) {
               thisIndex = 0;

            }
        }
        applyImage(thisIndex);
    }
}

function applyImage(which) {
	document.getElementById('sponsorBanner').src = '_images/logos/'+sponsorsArray[which];
}

function startSponsors() {
	thisIndex = Math.floor(Math.random()* sponsorsArray.length);
	applyImage(thisIndex);
	setInterval("cycleSponsors()", 6000);
}



