var openthis;
var closethis1;
var closethis2;

function autoExpandMe(row,close) {
	
	var hide1 = document.getElementById(row);
	var expand1 = document.getElementById(row + "Exp");
	var expand2 = document.getElementById(row + "Det");
	
	if(close) {
		try {
			openthis.style.display = "table-row";
			closethis1.style.display = "none";
			closethis2.style.display = "none";
		}
		catch(e) {
			openthis.style.display = "inline";
			closethis1.style.display = "none";
			closethis2.style.display = "none";
		}
	}
	
	else if(row) {
		try {
			if (openthis) {
				openthis.style.display = "table-row";
				closethis1.style.display = "none";
				closethis2.style.display = "none";
			}
			hide1.style.display = "none";
			expand1.style.display = "table-row";
			expand2.style.display = "table-row";

		}
		catch(e) {
			if (openthis) {
				openthis.style.display = "inline";
				closethis1.style.display = "none";
				closethis2.style.display = "none";
			}
			hide1.style.display = "none";
			expand1.style.display = "inline";
			expand2.style.display = "inline";
		}
	}
	
	openthis = hide1;
	closethis1 = expand1;
	closethis2 = expand2;	
	
}


function colorMe(element,over) {

	if (over) {
		element.style.textDecoration = "underline";
		element.style.color = "#D81E05";	
	}

	else {
		element.style.textDecoration = "none";
		element.style.color = "#4B5F67";
	}

}
