	var sctr = 0;
	var current_ad = 0;
	var halt = 0;
	var old_statusbar_text = '';
						
	var IntervalID = 0;

function rotateIt() {
	if (!IntervalID) { IntervalID = setInterval('rotateIt()', 20000); }
			
		if (halt != 1) {
				var ad = document.getElementById('sponsor');
   				var ad_link = document.getElementById('sponsor_link');
   				
			if (ad != '' && ad_link != '') { 	
   					ad.src = isn[sctr];
   					ad_link.href = durl[sctr];
   					
   					current_ad = sctr;
   					sctr++;
				if (sctr > number_of_sponsors) {
   						sctr = 0;
				}
			}
		}
}

function doIt() {
		halt=1;
				
	location.href = durl[current_ad];
}

function dispIt() {
		old_statusbar_text = parent.window.status;
				
	parent.window.status = durl[current_ad];
}
 		
function restoreIt() {
	parent.window.status = old_statusbar_text;
}