// JavaScript Document

// this code gets run when the page is loaded
var isDHTML   = 0;		// does browser support dynamic HTML
var isID      = 0;		// does browser support getElementById
var isLayers  = 0;		// does browser support layers
var isAll     = 0;		// does browser support generic references
var imagePath = "images/";	// used by rollOver function

if (document.getElementById) {
	isID    = 1;
	isDHTML = 1;
} else {
	browserVersion = parseInt(navigator.appVersion);
	if ((navigator.appName.indexOf('Netscape') != -1) && (browserVersion == 4)) {
		isLayers = 1;
		isDHTML  = 1;
	} else {
		if (document.all) {
			isAll   = 1;
			isDHTML = 1;
		}
	}
}

// set a div to either 'visible' or 'hidden'
function setVisibility (objectId, state) {
	var dom = getObjectStyle(objectId);
	if (dom) {
		dom.visibility = state;
	}
}

// get a reference to an object based on the browser
function getObjectStyle (objectId) {
	if (isID) {
		return document.getElementById(objectId).style;
	} else { 
		if (isAll) {
			return document.all[objectId].style;
		} else {
			if (isLayers) {
				return null;
			}
		}
	}
}

function MM_openBrWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}
