function showHome() {
	resetToolbar();
	highlightToolbarItem("homelink")
	getIFrame().src = "home.html";
}

function showTraining() {
	resetToolbar();
	highlightToolbarItem("traininglink")
	getIFrame().src = "training.html";
}

function showMentoring() {
	resetToolbar();
	highlightToolbarItem("mentoringlink")
	getIFrame().src = "mentoring.html";
}

function showConsulting() {
	resetToolbar();
	highlightToolbarItem("consultinglink")
	getIFrame().src = "consulting.html";
}

function showAbout() {
	resetToolbar();
	highlightToolbarItem("aboutlink")
	getIFrame().src = "about.html";
}

function showContact() {
	resetToolbar();
	highlightToolbarItem("contactlink")
	getIFrame().src = "contact.html";
}

function highlightToolbarItem(itemId) {
	var element = document.getElementById(itemId);
	element.style.fontWeight="bold";
	element.style.fontStyle="italic";
}

function getIFrame() {
	return document.getElementById("contentframe");
}

function resetToolbar() {
	resetToolbarItem("homelink");
	resetToolbarItem("traininglink");
	resetToolbarItem("mentoringlink");
	resetToolbarItem("consultinglink");
	resetToolbarItem("aboutlink");
	resetToolbarItem("contactlink");
}

function resetToolbarItem(elementId) {
	var element = document.getElementById(elementId);
	if (element.style.removeAttribute) {
		element.style.removeAttribute("fontWeight");
		element.style.removeAttribute("fontStyle");
	} else {
		element.style.removeProperty("font-weight");
		element.style.removeProperty("font-style");
	}
}
