function closeCallouts() {
	if(document.getElementById('timed_callouts')) {
		document.getElementById('timed_callouts').style.display = 'none';
	}
	timer = 0;
	return false;
}

function checkTimer() {
	if(timer == duration) {			
		calloutId++;
		timer = 0;
		if(calloutId == (totalCallouts+1)) {
			clearInterval(my_interval);
		}
		if(document.getElementById('timed_callouts') && calloutId < (totalCallouts+1)) {
			document.getElementById('timed_callouts').style.display = 'block';
			for(var i = 1; i < (totalCallouts+1); i++) {
				document.getElementById('callout'+i).style.display = 'none';
			}
			document.getElementById('callout'+calloutId).style.display = 'block';
		}
	}
	timer++;
}

var duration = 120;
var timer = 60;
var calloutId = 0;
var totalCallouts = 3;
var my_interval = setInterval("checkTimer()", 1000);
