function setActiveFormTable(thisFormTableID) {
	thisFormTableID = document.getElementById("searchTable" + thisFormTableID);
	document.getElementById("searchTable1").style.background = "#F2F2F2";
	document.getElementById("searchTable1").style.border = "1px #D0D0D0 solid";
	document.getElementById("searchTable1").getElementsByTagName("th")[0].getElementsByTagName("b")[0].style.borderBottom = "1px #D0D0D0 solid";
	document.getElementById("searchTable2").style.background = "#F2F2F2";
	document.getElementById("searchTable2").style.border = "1px #D0D0D0 solid";
	document.getElementById("searchTable2").getElementsByTagName("th")[0].getElementsByTagName("b")[0].style.borderBottom = "1px #D0D0D0 solid";
	document.getElementById("searchTable3").style.background = "#F2F2F2";
	document.getElementById("searchTable3").style.border = "1px #D0D0D0 solid";
	document.getElementById("searchTable3").getElementsByTagName("th")[0].getElementsByTagName("b")[0].style.borderBottom = "1px #D0D0D0 solid";
	document.getElementById("searchTable4").style.background = "#F2F2F2";
	document.getElementById("searchTable4").style.border = "1px #D0D0D0 solid";
	document.getElementById("searchTable4").getElementsByTagName("th")[0].getElementsByTagName("b")[0].style.borderBottom = "1px #D0D0D0 solid";
	thisFormTableID.style.backgroundColor = "#FFFFD6";
	thisFormTableID.style.border = "1px #FFD400 solid";
	thisFormTableID.getElementsByTagName("th")[0].getElementsByTagName("b")[0].style.borderBottom = "1px #FFD400 solid";
}

function MouseOverFacility(strFacilityId) {
	if (document.getElementById("facility_details_" + strFacilityId).style.display == 'none' || document.getElementById("facility_details_" + strFacilityId).style.display == '')
	{
		var objTR;
		objTR = document.getElementById("facility_" + strFacilityId).getElementsByTagName("td");
		for (var i = 0; i < objTR.length; i++)
		{
			objTR[i].style.backgroundColor = "#ffffd6";
			objTR[i].style.borderBottom = "1px #FFD400 solid";
			objTR[i].style.borderTop = "1px #FFD400 solid";
		}
	}
}

function MouseOutFacility(strFacilityId) {
	if (document.getElementById("facility_details_" + strFacilityId).style.display == 'none' || document.getElementById("facility_details_" + strFacilityId).style.display == '')
	{
		FacilityRowToOriginalState(strFacilityId);
	}
}

function ToggleFacilityDetails(strFacilityId) {
	var objLink = document.getElementById("facility_details_link_" + strFacilityId);
	if (document.getElementById("facility_details_" + strFacilityId).style.display == 'none' || document.getElementById("facility_details_" + strFacilityId).style.display == '')
	{
		var objTR;
		objTR = document.getElementById("facility_" + strFacilityId).getElementsByTagName("td");
		objLink.className = "link-expanded-content";
		DisplaySection("facility_details_" + strFacilityId, "table-row");
		for (var i = 0; i < objTR.length; i++)
		{
			objTR[i].style.backgroundColor = "#ffffd6";
			objTR[i].style.borderBottom = "1px #ffffd6 solid";
			objTR[i].style.borderTop = "1px #FFD400 solid";
		}
	}
	else
	{
		objLink.className = "link-expandable-content";
		HideSection("facility_details_" + strFacilityId);
		FacilityRowToOriginalState(strFacilityId);
	}
}

function FacilityRowToOriginalState(strFacilityId) {
	var objTR;
	objTR = document.getElementById("facility_" + strFacilityId).getElementsByTagName("td");
//	if (document.getElementById("facility_" + strFacilityId).className.toLowerCase() == "featured")
//	{
//		for (var i = 0; i < objTR.length; i++)
//		{
//			objTR[i].style.backgroundColor = "#F2F2F2";
//			objTR[i].style.borderBottom = "1px #D0D0D0 solid";
//			objTR[i].style.borderTop = "1px #D0D0D0 solid";
//		}
//	}
//	else
//	{
		for (var i = 0; i < objTR.length; i++)
		{
			objTR[i].style.backgroundColor = "#ffffff";
			objTR[i].style.borderBottom = "1px #ffffff solid";
			objTR[i].style.borderTop = "1px #ffffff solid";
		}
//	}
}