function tableHover(){
	var cells = document.getElementsByTagName('td');
	if (cells){
		for( var i = 0; i < cells.length; i++){
			cells[i].onmouseover = function(){
				this.parentNode.className = 'hover';
			}
			cells[i].onmouseout = function(){
				this.parentNode.className = this.parentNode.className.replace('hover', '');
			}
		}
	}
}

if (window.addEventListener){
	window.addEventListener('load', tableHover, false);
}
else if (window.attachEvent){
	window.attachEvent('onload', tableHover);
}