//file:		lib_c_dynamic.js
//for:		dhtml general functions
//mods:
//12/12/00 13:05 JC Lango created
//04/27/01 10:29 JC Lango updated
//10/30/01 11:35 JC Lango new showDivAt by Denise & Alan for header_long.asp

var isDynamic=(document.layers||document.all);
var isNS=(navigator.appName=="Netscape");
var isMac=(navigator.userAgent.indexOf("Mac")>-1);
//var isMacIE=((navigator.userAgent.indexOf("IE 4")>-1)&&(navigator.userAgent.indexOf("Mac")>-1));

var documentRef=(isNS)?"document":"document.all";
var styleRef=(isNS)?"":".style";
var showRef=(isNS)?"show":"visible";
var hideRef=(isNS)?"hide":"hidden";

function showDiv(divId){
	eval(documentRef + '.' + divId + styleRef + '.visibility = "' + showRef + '"');
}

function showDivAt(divId,popX,popY){
	eval(documentRef + '.' + divId + styleRef + '.visibility = "' + showRef + '"');
	eval(documentRef + '.' + divId + styleRef + '.top = ' + popX);
	eval(documentRef + '.' + divId + styleRef + '.left = ' + popY);
}

function hideDiv(divId){
	eval(documentRef + '.' + divId + styleRef + '.visibility = "' + hideRef + '"');
}

