// JavaScript Document

//*************Change BackGround Cell***********************
function ChangeColorCell(BColor, TDName)
{ 
	 theStyle = eval("document.all." + TDName + ".style"); 
	 theStyle.backgroundColor = BColor;
	 FixColorCell();
}
//*************End of Change BackGround Cell***********************
//*************Fix Color of BackGround Cell***********************
function FixColorCell()
{ 
	 var AppPath = document.URL;
	 if ((AppPath == "http://www.lebanon-support.org/Testing/index.php") || (AppPath == "http://www.lebanon-support.org/Testing/") || (AppPath == "http://lebanon-support.org/Testing/index.php") || (AppPath == "http://lebanon-support.org/Testing/")) {
	 	ChangeColorCell('#C176D6', 'TDHome');
	  }
	 else if ((AppPath == "http://www.lebanon-support.org/Testing/aboutus.php") || (AppPath == "http://lebanon-support.org/Testing/aboutus.php")) {
		ChangeColorCell('#F89619', 'TDAboutUs');
	  }
	 else if ((AppPath == "http://www.lebanon-support.org/Testing/viewresources.php") || (AppPath == "http://lebanon-support.org/Testing/viewresources.php")) {
	 	ChangeColorCell('#61ADCD', 'TDResources');
	  }
	 else if ((AppPath == "http://www.lebanon-support.org/Testing/SearchReliefBodies.php") || (AppPath == "http://lebanon-support.org/Testing/SearchReliefBodies.php")) {
	 	ChangeColorCell('#C73A25', 'TDReports');
	  }
	 else if ((AppPath == "http://www.lebanon-support.org/Testing/vacancies.php") || (AppPath == "http://lebanon-support.org/Testing/vacancies.php")) {
	 	ChangeColorCell('#BE741E', 'TDVacancies');
	  }
	 else if ((AppPath == "http://www.lebanon-support.org/Testing/links.php") || (AppPath == "http://lebanon-support.org/Testing/links.php")) {
	 	ChangeColorCell('#3FBFEF', 'TDLinks');
	  }
	 else if ((AppPath == "http://www.lebanon-support.org/Testing/contactus.php") || (AppPath == "http://lebanon-support.org/Testing/contactus.php")) {
	 	ChangeColorCell('#F8D304', 'TDContactUs');
	  }
}
//*************End of Fix Color of BackGround Cell***********************


