function clearSearchBox(searchbox) {
	if(searchbox && searchbox.value == "Search IDEAlliance"){
		searchbox.value = "";
	}
}

function resetSearchBox(searchbox) {
	if(searchbox && searchbox.value == ""){
		searchbox.value = "Search IDEAlliance";
	}
}

var currentSponsor = "";

function showSponsor(sponsor_id){
	if(document.getElementById('sponsor-' + currentSponsor)){
		document.getElementById('sponsor-' + currentSponsor).style.display = "none";
	}
	document.getElementById('sponsor-' + sponsor_id).style.display = "block";
	currentSponsor = sponsor_id;
}

function scrollThroughSponsors(total_sponsors){
	var newSponsor = parseInt(currentSponsor) + 1;
	if(newSponsor >= total_sponsors){
		newSponsor = 0;
	}
	showSponsor(newSponsor);
	setTimeout("scrollThroughSponsors(" + total_sponsors + ")", 30000);
}