ns4 = (document.layers) ? true:false 
ie4 = (document.all) ? true:false 
ng5 = (document.getElementById) ? true:false 

if(document.all && !document.getElementById) {
    document.getElementById = function(id) {
         return document.all[id];
    }
}

//alert(ns4+" "+ie4+" "+ng5);

function showDesc(id) {
	if (document.getElementById(["reg1_" + id]).style.display != "none") {
		document.getElementById(["reg1_" + id]).style.display = "none";
		//document.getElementById(["reg2_" + id]).style.display = "none";
		document["arrow_" + id].src = "images/arrowLeft.gif";
		return;
	} else {
		document.getElementById(["reg1_" + id]).style.display = "inline";
		//document.getElementById(["reg2_" + id]).style.display = "inline";
		document["arrow_" + id].src = "images/arrowDown.gif";
		return;
	}
	return false;
}

function showArrow(id,theSwitch) {
	if (theSwitch == 1) {
		document.getElementById(["arrow_" + id]).style.display = "inline";
		return;
	} else {
		document.getElementById(["arrow_" + id]).style.display = "none";
		return;
	}
	return false;
}

/*function showDesc(id) {
	if (ng5) {
		if (document.getElementById(["reg1_" + id]).style.display != "none") {
			document.getElementById(["reg1_" + id]).style.display = "none";
			//document.getElementById(["reg2_" + id]).style.display = "none";
			document["arrow_" + id].src = "images/arrowLeft.gif";
			return;
		} else {
			document.getElementById(["reg1_" + id]).style.display = "inline";
			//document.getElementById(["reg2_" + id]).style.display = "inline";
			document["arrow_" + id].src = "images/arrowDown.gif";
			return;
		}
	}
	if (ie4) {
		if (document.all["reg1_" + id].style.display != "none") {
			document.all["reg1_" + id].style.display = "none";
			//document.all["reg2_" + id].style.display = "none";
			document.all["arrow_" + id].src = "images/arrowLeft.gif";
			return;
		} else {
			document.all["reg1_" + id].style.display = "inline";
			//document.all["reg2_" + id].style.display = "inline";
			document.all["arrow_" + id].src = "images/arrowDown.gif";
			return;
		}
	}
	return false;
}

function showArrow(id,theSwitch) {
	if (ng5) {
		if (theSwitch == 1) {
			document.getElementById(["arrow_" + id]).style.display = "inline";
			return;
		} else {
			document.getElementById(["arrow_" + id]).style.display = "none";
			return;
		}
	}
	if (ie4) {
		if (theSwitch == 1) {
			document.all["arrow_" + id].style.display = "inline";
			return;
		} else {
			document.all["arrow_" + id].style.display = "none";
			return;
		}
	}
	return false;
}*/