var isDHTML = 0;
var isLayers = 0;
var isAll = 0;
var isID = 0;

//W3C ID DOM
if (document.getElementById) {isID = 1; isDHTML = 1;}
else {
//Good ol' Netscape 4 Layers
//For the most part Netscape 6 and above have implimented the W3C's ID DOM
browserVersion = parseInt(navigator.appVersion);
if ((navigator.appName.indexOf('Netscape') != -1) && (browserVersion == 4)) {isLayers = 1; isDHTML = 1;}
//Fucking IE  - 5.5 DOM
//IE 6 has implemented some of the W3C's ID DOM
else {
if (document.all) {isAll = 1; isDHTML = 1;}
}}

function findDOM(objectID,withStyle) {
var menuArea = "menuArea";
//Use this to change the style of the object
	if (withStyle == 1) {
			if (isID) { return (document.getElementById(objectID).style); }
		else { 
			if (isAll) { return (document.all[objectID].style); }
		else {
			if (isLayers) { return (document.layers[menuArea].layers[objectID]); }
		};}
	}
//Use this to change other properties of the object
	else {
			if (isID) { return (document.getElementById(objectID)); }
		else { 
			if (isAll) { return (document.all[objectID]); }
		else {
			if (isLayers) { return (document.layers[menuArea].layers[objectID]); }
		};}
	}
}