// START BROWSER CHECK
bName = navigator.appName;
bVer = parseInt(navigator.appVersion);
if ((bName == "Netscape" && bVer >=3) ||
	(bName == "Microsoft Internet Explorer" &&
	bVer >=4)) br ="n3";
else br = "n2";
// END BROWSER CHECK

var thisPage=""; // used for setArrow script             
var thisMember=""; // used for setPointer script   
var pgLoaded = 0;	
function doOnStartUp() {
	pgLoaded = 1;
}
	
function setLoaded() {
	doOnStartUp();
} 

var objPrefix;
var showString;
var hideString;
var lastGroup = 'Main';
var lastGroup2 = 'Main';
var timeCount = 0;
var timerID = null;
var NS4 = navigator.appName == 'Netscape' && document.layers != null;
var IE4 = document.all != null;
if (! NS4) {
	var NS6 = navigator.appName == 'Netscape' && document.getElementsByTagName("*") != null;
}
var cando = NS4 || IE4 || NS6;

if (NS4) {
	objPrefix = 'document.layers';
	showString = 'show';
	hideString = 'hide';
} else if (IE4) { // MSIE
	objPrefix = 'document.all';
	showString = 'visible';
	hideString = 'hidden';
} else if (NS6) { // Netscape 6
	objPrefix = 'document.getElementsByTagName("*")';
	showString = 'visible';
	hideString = 'hidden';	 	
}	 	

function dT(thisGroup,thisGroup2,subFlag) { // display topic
	if ( ! cando ) { return; }
	if (subFlag != 'yes'){
		hideTopic(lastGroup);
		lastGroup = thisGroup;
		hideTopic(lastGroup2);
		lastGroup2 = thisGroup;
	}  else {
		hideTopic(lastGroup2);
		lastGroup2 = thisGroup;
	}
	
	// handle mainPix
	showObj(objPrefix + "[\'MainMask\']");
	// handle line items
	showObj(objPrefix + "[\'" + thisGroup + "Info\']");
	showObj(objPrefix + "[\'" + thisGroup + "Text\']");
	//hideTopic(lastGroup2);
	lastGroup2 = thisGroup2;

	// handle mainPix
	showObj(objPrefix + "[\'MainMask\']");
	// handle line items
	showObj(objPrefix + "[\'" + thisGroup2 + "Info\']");
	showObj(objPrefix + "[\'" + thisGroup2 + "Text\']");
}


function hideTopic(groupName) {
	// handle mainPix
	hideObj(objPrefix + "[\'MainMask\']");
	// handle line items
//	hideObj(objPrefix + "[\'" + groupName + "Lite\']");
	hideObj(objPrefix + "[\'" + groupName + "Info\']");
	hideObj(objPrefix + "[\'" + groupName + "Text\']");
}

function showObj(objString) {
	objName = eval(objString);
	if(objName) {
		if (NS4) objName.visibility = showString;
		else if (IE4) objName.style.visibility = showString;
		else if (NS6) objName.style.visibility = showString;
	}
}


function hideObj(objString) {
	objName = eval(objString);
	if(objName) {
		if (NS4) objName.visibility = hideString;
		else if (IE4) objName.style.visibility = hideString;
		else if (NS6) objName.style.visibility = hideString;
	}
}

function sT() { // start timer
	if ( ! cando ) { return; }
	timerID = setTimeout("resetPage()",timeCount);
}

function resetPage() {
	hideTopic(lastGroup);
	hideTopic(lastGroup2);
	lastGroup = "Main"
	lastGroup2 = "Main"
}

function hT() { // halt timer
	if ( ! cando ) { return; }
	if (timerID == null) {return; }
	clearTimeout(timerID);
	timerID = null;
}
function loadIt() {showObj(objPrefix + "[\'" + "BanLt\']"); showObj(objPrefix + "[\'" + "BanRt\']"); }

loadIt();

function setLoaded() {
	doOnStartUp();

}

function redirectURL(location) { // start timer
	document.location = location;
}

function timedURL(location){
	timerID = setTimeout("redirectURL(location)",timeCount);
}
