// JavaScript Document
// global variables for browser
var block = new String();
var style = new String();
var isDHTML = new Boolean(false);
var isDOM = new Boolean(false);

// determine IE version
var ieVer = parseInt(navigator.userAgent.charAt(parseInt(navigator.userAgent.indexOf("MSIE"))+5));

// set appropriate variables depending on scripting method
function checkBrowser(){
	if(document.all){
		block = ".all";
		style = ".style";
		isDHTML = "true";
	}else if(document.layers){
		block = ".layers";
		style = "";
 		isDHTML = "true";
	}else if(document.getElementById){
		isDOM = "true";
	}
}

// Take the state passed in, and change it.
function changeState(dblock, state){
	if(isDHTML == "true"){
		eval("document" + block + "['" + dblock + "']" + style + ".visibility = '" + state + "'");
	}else if(isDOM == "true"){
		var blockElement = document.getElementById(dblock);
		blockElement.style.visibility = state;
	}
}
