/* find if the browser supports dhtml or not */
var isNS4 = 0;
var isIE4 = 0;
var isNew = 0;
var isDHTML = 0;

var docObj = "";
var styleObj = "";

// test for internet explorer
if(document.all)  {
	isIE4 = 1;
}

// test for netscape
if(document.layers)  {
	isNS4 = 1;
}

// test for new dom compliant browsers
if(document.documentElement)  {
	isNew = 1;	
}

// set true if dhtml compatible or false if uncompatible
if(isNS4 || isIE4)  {
	isDHTML = 1;
}

if(isDHTML)  {
	docObj = (isNS4) ? 'document.' : 'document.all.';
	styleObj = (isNS4) ? '' : '.style';
}

if(isNew)  {
	docObj = 'document.getElementById(\'';
	styleObj = '\').style';
}

// concantinate the strings as follows for cross browser tags
// eg. dom = eval(docObj + 'elementName' + styleObj);
// then use the dom ( eg. dom.visible = "hidden"; )
