﻿var currentLogo = "";
function setItems(text, logo) {
	document.getElementById("text").innerHTML = "<span class=\"arrow\">&raquo;</span> " + text + " <span class=\"arrow\">&laquo;</span>";
	
	//if we want to revert to the current logo, remember what we had.
	if (currentLogo == "" && document.getElementById("imgLogo").src != "/library/images/logos/clear.png") {
		currentLogo = document.getElementById("imgLogo").src;
	}

	if (logo != "") {
		document.getElementById("imgLogo").src = "/library/images/logos/" + logo + ".gif";
	}
}

function clearItems() {
	document.getElementById("text").innerHTML = "";
	if (currentLogo != "")
		document.getElementById("imgLogo").src = currentLogo;
	else
		document.getElementById("imgLogo").src = "/library/images/logos/clear.png";
}