var browserOk = false;
if (navigator.appName == "Netscape" && parseInt(navigator.appVersion) >= 3) {
	browserOk = true;
} else {
	var ms = navigator.appVersion.indexOf("MSIE");
	if ((ms>0) && (parseInt(navigator.appVersion.substring(ms+5, ms+6)) >= 4)) {
		browserOk = true;
	}
}

function img_act(imgButton){
	if (browserOk) { 
		document[imgButton].src = "pics/" + imgButton + "on.gif";
	}
}

function img_inact(imgButton, pageNameButton){
	if (browserOk) {
		if ( pageName != pageNameButton ) { 
			document[imgButton].src = "pics/" + imgButton + "off.gif";
		}
	}
}

function img_inactSources(imgButton, pageSourcesButton){
	if (browserOk) {
		if ( subPageName != pageSourcesButton ) { 
			document[imgButton].src = "pics/" + imgButton + "off.gif";
		}
	}
}

function hideAll() {
	document.getElementById("Who").style.display = "none"; 
	document.getElementById("What").style.display = "none";
	document.getElementById("How").style.display = "none";
}

function showAbout(button,text) {
	/* Show Text */
	if ( document.getElementById(text).style.display = "none" )
	{
		document.getElementById(text).style.display = "block";
	}
	else
	{
		document.getElementById(text).style.display = "none";
	}
}

function closeAbout(section) {
	/* hide Text */
	if ( document.getElementById(section).style.display = "block" )
	{
		document.getElementById(section).style.display = "none";
	}
	else
	{
		document.getElementById(section).style.display = "block";
	}
}
