
// set global variables for generating code suitable for different browser types
var w3c = document.getElementById ? true : false;
var nn4 = document.layers ? true : false;
var ie4 = document.all ? true : false;

// OPERA fix - incorrect implementation of DHTML, so treat as if NN4
if ((navigator.userAgent.indexOf('Opera 6') != -1) || (navigator.userAgent.indexOf('Opera/6') != -1)) {
	w3c = false;
	nn4 = true;
	ie4 = false;
}


// FUNCTION: visiRoll - for alternating visibility styles applied to ids
function visiRoll(idname,idclass) {
	if (ie4 == true) {
		document.all[idname].style.visibility = idclass;
	}
	else if (w3c == true) {
		document.getElementById(idname).style.visibility = idclass;
	}
}
