/**
 * @author LEC
 * for use with the Issues Pages. This file sets the color of the header backgrounds based on the URL
 */
function setHeaderColor()
{
	
		var matrix = {G:"#97861c", BR:"#b86b1a", R:"#9f2d38"};
		var checkString = window.location.toString();
		color = "#71753b";
		
		for(var item in matrix)
		{
			if(checkString.indexOf("c=" + item) > -1)
			{
				color = matrix[item];
				break;
			}
		}
		try{
			var headerBox = document.getElementById("IssueHeader");
			headerBox.style.background = color;	
		}catch(err){
			//window.alert(err);
		}
}

