var agt=navigator.userAgent.toLowerCase();
var appVer = navigator.appVersion.toLowerCase();
var is_mac = (agt.indexOf("mac")!=-1);
var is_minor = parseFloat(appVer);
var is_major = parseInt(is_minor);
var is_opera = (agt.indexOf("opera") != -1);
var iePos  = appVer.indexOf('msie');
var is_mac_ie = false;
if (iePos !=-1) {
   is_minor = parseFloat(appVer.substring(iePos+5,appVer.indexOf(';',iePos)));
   is_major = parseInt(is_minor);
}
var is_ie = ((iePos!=-1) && (!is_opera));
if (is_mac && is_ie) {
	is_mac_ie = true;
}
var is_ie5up = (is_ie && is_minor >= 5);
var is_ie5_5up =(is_ie && is_minor >= 5.5);
var is_safari = ((agt.indexOf('safari')!=-1)&&(agt.indexOf('mac')!=-1))?true:false;
var nn4 = false;
if (document.layers) {
	nn4 = true;
}


/* Change Cell Color Rollover On Subnav */
function cellOn(td,tdLeft,color) {
	if(document.getElementById||(document.all && !(document.getElementById))){
	td.style.backgroundColor=color;
	document.getElementById(tdLeft).style.backgroundColor=color;
	}
}

function cellOut(td,tdLeft,color) {
	if(document.getElementById||(document.all && !(document.getElementById))){
	td.style.backgroundColor=color;
	document.getElementById(tdLeft).style.backgroundColor=color;
	}
}
function showRow(rowId) {
	var row = getAnElement(rowId);
	if (row.style.display == 'none')
		row.style.display = '';
}
function hideRow(rowId) {
	var row = getAnElement(rowId);
	if (row.style.display == '')
		row.style.display = 'none';	
}
function getAnElement(id)
{
	return document.getElementById?document.getElementById(id):document.all?document.all[id]:document.layers[id];
}
