function getObj(objName){
	if (document.layers){ // NS4
		return eval('document.' + objName)
	}
	if (document.getElementById){ // DOM
		return eval('document.getElementById("' + objName + '")');
	}
	if ((document.all) && !(document.getElementById)){ // IE4
		return eval('document.all.' + objName)
	}
}

function goURL(url){
	document.location = url
}

function dropButton(bObj){
	if (bObj.className != "sidebutton current") {
		if (document.layers){ //NS4
			bObj.backgroundColor = "#444444"
		}else{
			bObj.style.backgroundColor = "#444444"
		}
	}
}

function raiseButton(bObj){
	if (bObj.className != "sidebutton current") {
		if (document.layers){ //NS4
			bObj.backgroundColor = "#231f20"
		}else{
			bObj.style.backgroundColor = "#231f20"
		}
	}
}

function setButton(bName){
	bObj = getObj("link_" + bName);
	cObj = getObj("cell_" + bName);
	mObj = getObj("submenu_" + bName);
	cObj.className = "sidebutton current";
	if (document.layers){ //NS4
		bObj.color = "#fffcf4";
		cObj.backgroundColor = "#5c0f0a";
		mObj.display = "inline";
		mObj.visibility = "visible";
	}else{
		bObj.style.color = "#fffcf4";
		cObj.style.backgroundColor = "#5c0f0a";
		mObj.style.display = "inline";
		mObj.style.visibility = "visible";
	}
}

function setHeadButton(bName){
	bObj = getObj("link_" + bName)
	if (document.layers){ //NS4
		bObj.color = "#6B9AA7"
	}else{
		bObj.style.color = "#6B9AA7"
	}
}