/* Clickable table rows in match lists  */


function matchLinks() {
	if(document.getElementById('currentMatchList')) {
		var matchLinks = document.getElementById('currentMatchList').getElementsByTagName('tr');
		for (var i=0; i<matchLinks.length; i++) {
			matchLinks[i].onmouseover=function() {
				this.className+="hover";
			}
			matchLinks[i].onmouseout=function() {
				this.className=this.className.replace(new RegExp("hover\\b"), "");
			}
		} 
	}
}
window.onload = matchLinks;
