
function dataHighLight(){
	
	trArray = document.getElementById('dataTable').getElementsByTagName('tr');
	
	for(i=0; i<trArray.length; i++){
		if (window.addEventListener) {
			trArray[i].addEventListener("mouseover", function(){
				this.getElementsByTagName('th')[0].style.backgroundColor = "#251C20";
				this.getElementsByTagName('th')[0].style.color = "#fff";
				tdArray = this.getElementsByTagName('td');
				for(itd=0; itd<tdArray.length; itd++){
					tdArray[itd].style.backgroundColor = "#251C20";
					tdArray[itd].style.color = "#fff";
					
				}
			}, false);
			trArray[i].addEventListener("mouseout", function(){
				this.getElementsByTagName('th')[0].style.backgroundColor = "#E0DEDB";
				this.getElementsByTagName('th')[0].style.color = "#333";
				tdArray = this.getElementsByTagName('td');
				for(itd=0; itd<tdArray.length; itd++){
					tdArray[itd].style.backgroundColor = "#fff";
					tdArray[itd].style.color = "#333";
				}
			}, false);
		}
		if (window.attachEvent) {
			trArray[i].attachEvent("onmouseover", function(){
				event.srcElement.parentNode.getElementsByTagName('th')[0].style.backgroundColor = "#251C20";
				event.srcElement.parentNode.getElementsByTagName('th')[0].style.color = "#fff";
				tdArray = event.srcElement.parentNode.getElementsByTagName('td');
				for(itd=0; itd<tdArray.length; itd++){
					tdArray[itd].style.backgroundColor = "#251C20";
					tdArray[itd].style.color = "#fff";
					
				}
			});
			trArray[i].attachEvent("onmouseout", function(){
				event.srcElement.parentNode.getElementsByTagName('th')[0].style.backgroundColor = "#E0DEDB";
				event.srcElement.parentNode.getElementsByTagName('th')[0].style.color = "#333";
				tdArray = event.srcElement.parentNode.getElementsByTagName('td');
				for(itd=0; itd<tdArray.length; itd++){
					tdArray[itd].style.backgroundColor = "#fff";
					tdArray[itd].style.color = "#333";
				}
			});
		}
	}
	
}
