//global variables to store DOM detection info.
//they are flags that we turn on and/or off.



var isLayers=0
var isAll=0
var isID=0
var isDHTML=0

//no funtion here, the script is immediate
//we then ask the browser what DOM will it recognize
//when we get an answer of yes/true, we turn on a flag

	if(document.all){
		isAll=1
		isDHTML=1
	}else if(document.getElementById){
		isID=1
		isDHTML=1
	}else if(document.layers){
		isLayers=1
		isDHTML=1
	}

//this function has to be called to do it's job
//we call it from every javascript function that will be implementing DHTML effects
//we call it in the following fashion: domStyle = findDOM(objectid, 1 or 0)
//the function takes two values to run

function findDOM(objectid, withStyle){
	if(withStyle==1){
		if(isAll==1){
			return(document.all[objectid].style)
		}else if(isID==1){
			return(document.getElementById(objectid).style)
		}else if(isLayers==1){
			return(document.layers[objectid])
		}
	}else{
		if(isAll==1){
			return(document.all[objectid])
		}else if(isID==1){
			return(document.getElementById(objectid))
		}else if(isLayers==1){
			return(document.layers[objectid])
		}//end else if
	}//end else
}//end function
