// Initialization
var	nCurrentTopicID = 0

// Browser detection code
var NS = (document.layers) ? true : false;
var IE = (document.all) ? true : false;
var H4 = ((document.getElementById) && (!IE)) ? true : false;
// eventually merge D and I if we're only manipulating DIVs?

// DIV show/hide code. Relies on browser detection code.
function getStyleObj(strID) {
	var obj;
	if (NS) {	obj = eval("document.ids.T" + strID);	}
	if (IE) {	obj = eval("document.all.T" + strID + ".style");	}
	if (H4) {	obj = document.getElementById("T"+strID).style;		}
	return obj;
}
function getDefaultDIV()  {
	var obj;
	if (NS) {	obj = eval("document.ids.defdiv");	}
	if (IE) {	obj = eval("document.all.defdiv.style");	}
	if (H4) {	obj = document.getElementById("defdiv").style;		}
	return obj;
}

function HideDiv(strHideID) {
	// Hide old one
	var obj = getStyleObj(strHideID);
	obj.display="none";
	// Show default div
	obj = getDefaultDIV();
	obj.display="";
}

function ShowDiv(strShowID) {
	// Hide default div
	var obj = getDefaultDIV();
	obj.display="none";
	// Show new one
	obj = getStyleObj(strShowID);
	obj.display="";
}

